From: Dave Chinner Date: Sun, 1 Feb 2015 23:17:51 +0000 (+1100) Subject: xfs: XFS_IOCTL_SETXATTR can run in user namespaces X-Git-Tag: fixes-v4.0-rc1~157^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41c145271d79eae508321340b727d3e3c9a66664;p=pandora-kernel.git 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 Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- Reading git-diff-tree failed