]> git.baikalelectronics.ru Git - kernel.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)
commit192d053fbaa825503b5ab7ee34d7e33c54dfd296
tree8fbbf691d4618d7e484eb11242b1343f88cdaa67
parent63645344422b625862b65a68e0476d9b98b53854
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