summaryrefslogtreecommitdiffstats
path: root/fs/cachefiles
diff options
context:
space:
mode:
authorJan Kara2015-05-21 16:05:56 +0200
committerAl Viro2015-06-24 00:01:10 +0200
commita6de82cab123beaf9406024943caa0242f0618b0 (patch)
tree747d73350fb02ca51306530630766dd28b8d0548 /fs/cachefiles
parentfs: Call security_ops->inode_killpriv on truncate (diff)
downloadkernel-qcow2-linux-a6de82cab123beaf9406024943caa0242f0618b0.tar.gz
kernel-qcow2-linux-a6de82cab123beaf9406024943caa0242f0618b0.tar.xz
kernel-qcow2-linux-a6de82cab123beaf9406024943caa0242f0618b0.zip
xfs: Correctly lock inode when removing suid and file capabilities
Currently XFS calls file_remove_privs() without holding i_mutex. This is wrong because that function can end up messing with file permissions and file capabilities stored in xattrs for which we need i_mutex held. Fix the problem by grabbing iolock exclusively when we will need to change anything in permissions / xattrs. Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cachefiles')
0 files changed, 0 insertions, 0 deletions