]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: XFS_IOCTL_SETXATTR can run in user namespaces
authorDave Chinner <dchinner@redhat.com>
Sun, 1 Feb 2015 23:17:51 +0000 (10:17 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 1 Feb 2015 23:17:51 +0000 (10:17 +1100)
commit57c535fac32fa39fb32ca89ebbcaa862bc6a9130
treec22e4607190bca41d2e45445ec41277d41be0aca
parenta93a04c6ef968f27267d8ee9c378f81a827156d4
xfs: XFS_IOCTL_SETXATTR can run in user namespaces

Currently XFS_IOCTL_SETXATTR will fail if run in a user namespace as
it it not allowed to change project IDs. The current code, however,
also prevents any other change being made as well, so things like
extent size hints cannot be set in user namespaces. This is wrong,
so only disallow access to project IDs and related flags from inside
the init namespace.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_ioctl.c