]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xfs: invalidate cached acl if set via ioctl
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 3 Nov 2015 01:56:17 +0000 (12:56 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 3 Nov 2015 01:56:17 +0000 (12:56 +1100)
commit47e1bf640558237b79d3009fb7dfe157f12f4f7a
tree8fbbf691d4618d7e484eb11242b1343f88cdaa67
parent09cb22d2a57b51d7d052dfe508f260abc67b69b6
xfs: invalidate cached acl if set via ioctl

Setting or removing the "SGI_ACL_[FILE|DEFAULT]" attributes via the
XFS_IOC_ATTRMULTI_BY_HANDLE ioctl completely bypasses the POSIX ACL
infrastructure, like setting the "trusted.SGI_ACL_[FILE|DEFAULT]" xattrs
did until commit 6caa1056.  Similar to that commit, invalidate cached
acls when setting/removing them via the ioctl as well.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_acl.h
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_xattr.c