]> git.hungrycats.org Git - linux/commit
[PATCH] compat_do_execve() fix
authorOlaf Hering <olh@suse.de>
Tue, 24 Aug 2004 04:41:13 +0000 (21:41 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:41:13 +0000 (21:41 -0700)
commitdf7d32af22c3ab593727d521021096f677e767e2
tree8c241da57189fccfaa7021aa2c5ac133d6d95401
parent96f2a9c6c0799646421e86e4ffe7710b9c0b1094
[PATCH] compat_do_execve() fix

For some reasons ls -l /proc/$$/exe doesnt work all time for me,
with 2.6.8.1 on ppc64. Sometimes it does, sometimes not. No pattern.
A few printks show that this check in proc_pid_readlink() triggers
an -EACCES:

current->fsuid != inode->i_uid

proc_pid_readlink(755) error -13 ntptrace(11408) fsuid 100 i_uid 0 0
sys_readlink(281) ntptrace(11408) error -13 readlink

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/compat.c