From: Christoph Hellwig Date: Tue, 9 Dec 2008 09:47:34 +0000 (-0500) Subject: [XFS] use inode_change_ok for setattr permission checking X-Git-Tag: v2.6.29-rc1~552^2~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4cd747ee6c3ba1e7727878e3fce482d0d8c0136;p=pandora-kernel.git [XFS] use inode_change_ok for setattr permission checking Instead of implementing our own checks use inode_change_ok to check for necessary permission in setattr. There is a slight change in behaviour as inode_change_ok doesn't allow i_mode updates to add the suid or sgid without superuser privilegues while the old XFS code just stripped away those bits from the file mode. (First sent on Semptember 29th) Signed-off-by: Christoph Hellwig Signed-off-by: Lachlan McIlroy --- Reading git-diff-tree failed