From: Bryan Wu Date: Tue, 5 Jun 2007 03:02:01 +0000 (+0800) Subject: RAMFS NOMMU: missed POSIX UID/GID inode attribute checking X-Git-Tag: v2.6.22-rc5~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f6038f2170e3335dda09c3dfb0f83110e87019;p=pandora-kernel.git RAMFS NOMMU: missed POSIX UID/GID inode attribute checking This bug was caught by LTP testcase fchmod06 on Blackfin platform. In the manpage of fchmod, "EPERM: The effective UID does not match the owner of the file, and the process is not privileged (Linux: it does not have the CAP_FOWNER capability)." But the ramfs nommu code missed the inode_change_ok POSIX UID/GID verification. This patch fixed this. Signed-off-by: Bryan Wu Cc: David Howells Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed