aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r--fs/xfs/xfs_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
index 0b18776b075e..6152cbe353e8 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -1215,7 +1215,7 @@ xfs_ioctl_setattr(
1215 * cleared upon successful return from chown() 1215 * cleared upon successful return from chown()
1216 */ 1216 */
1217 if ((ip->i_d.di_mode & (S_ISUID|S_ISGID)) && 1217 if ((ip->i_d.di_mode & (S_ISUID|S_ISGID)) &&
1218 !inode_capable(VFS_I(ip), CAP_FSETID)) 1218 !capable_wrt_inode_uidgid(VFS_I(ip), CAP_FSETID))
1219 ip->i_d.di_mode &= ~(S_ISUID|S_ISGID); 1219 ip->i_d.di_mode &= ~(S_ISUID|S_ISGID);
1220 1220
1221 /* 1221 /*