From: Al Viro Date: Wed, 23 Mar 2011 19:52:50 +0000 (-0400) Subject: deal with races in /proc/*/{syscall,stack,personality} X-Git-Tag: v2.6.39-rc1~99^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9712bc12c40c172e393f85a9b2ba8db4bf59509;p=pandora-kernel.git deal with races in /proc/*/{syscall,stack,personality} All of those are rw-r--r-- and all are broken for suid - if you open a file before the target does suid-root exec, you'll be still able to access it. For personality it's not a big deal, but for syscall and stack it's a real problem. Fix: check that task is tracable for you at the time of read(). Signed-off-by: Al Viro --- Reading git-diff-tree failed