diff options
author | Alexey Dobriyan <adobriyan@openvz.org> | 2007-05-08 00:23:35 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 11:14:58 -0700 |
commit | 8948e11f450e6189a79e47d6051c3d5a0b98e3f3 (patch) | |
tree | 8cc904873cc1a8506970cf1e4a328c318a7fc4d7 /fs/ext4 | |
parent | ab1b6f03a10ba1f5638188ab06bf46e33ac3a160 (diff) | |
download | op-kernel-dev-8948e11f450e6189a79e47d6051c3d5a0b98e3f3.zip op-kernel-dev-8948e11f450e6189a79e47d6051c3d5a0b98e3f3.tar.gz |
Allow access to /proc/$PID/fd after setuid()
/proc/$PID/fd has r-x------ permissions, so if process does setuid(), it
will not be able to access /proc/*/fd/. This breaks fstatat() emulation
in glibc.
open("foo", O_RDONLY|O_DIRECTORY) = 4
setuid32(65534) = 0
stat64("/proc/self/fd/4/bar", 0xbfafb298) = -1 EACCES (Permission denied)
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: James Morris <jmorris@namei.org>
Cc: Chris Wright <chrisw@sous-sol.org>
Cc: Ulrich Drepper <drepper@redhat.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Acked-By: Kirill Korotaev <dev@openvz.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions