]> git.baikalelectronics.ru Git - kernel.git/commit
RAMFS NOMMU: missed POSIX UID/GID inode attribute checking
authorBryan Wu <bryan.wu@analog.com>
Tue, 5 Jun 2007 03:02:01 +0000 (11:02 +0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Jun 2007 00:11:13 +0000 (17:11 -0700)
commit92532f2ea43bd340a4cf1472456b8a02b6dda89a
treeb756deeb0873f18ad8711db7dba948ca8d698d6f
parent9a5714c5bed86d9aae3aad40c9a1ee81864a96b1
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 <bryan.wu@analog.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ramfs/file-nommu.c