HomeFreeBSD

Check permissions in zfs_space().

Description

Check permissions in zfs_space().

This isn't done on Solaris because on this OS zfs_space() can
only be called with an opened file handle. Since the addition of
zpl_truncate_range() this isn't the case anymore, so we need to
enforce access rights.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #334

Details

Provenance
Etienne Dechamps <etienne.dechamps@ovh.net>Authored on Sep 2 2011, 7:37 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 9 2012, 11:20 PM
Parents
rG5cb63a57f8d2: Implement the truncate_range() inode operation.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGaec69371a6a2: Check permissions in zfs_space(). (authored by Etienne Dechamps <etienne.dechamps@ovh.net>).Feb 9 2012, 11:20 PM