From: Dwight Engen Date: Thu, 15 Aug 2013 18:08:00 +0000 (-0400) Subject: xfs: ioctl check for capabilities in the current user namespace X-Git-Tag: v3.12-rc1~80^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd5e2aa8653665ae1cc60f7aca1069abdbcad3f6;p=pandora-kernel.git xfs: ioctl check for capabilities in the current user namespace Use inode_capable() to check if SUID|SGID bits should be cleared to match similar check in inode_change_ok(). The check for CAP_LINUX_IMMUTABLE was not modified since all other file systems also check against init_user_ns rather than current_user_ns. Only allow changing of projid from init_user_ns. Reviewed-by: Dave Chinner Reviewed-by: Gao feng Signed-off-by: Dwight Engen Signed-off-by: Ben Myers --- Reading git-diff-tree failed