Check permissions in zfs_space().
authorEtienne Dechamps <etienne.dechamps@ovh.net>
Fri, 2 Sep 2011 07:37:53 +0000 (09:37 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Feb 2012 23:20:37 +0000 (15:20 -0800)
commitaec69371a6a2e94534809c5e9ba22e7b0e276937
treebac20a647918ac6f517dae45e4d4fe1352a380e2
parent5cb63a57f8d2d1a94e65b4710bfbb221b1a71700
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
module/zfs/zfs_vnops.c