lkml.org 
[lkml]   [2008]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PROBLEM?: "permission denied" when accessing /proc/self/fd/* after setuid
On Fri, Aug 08, 2008 at 10:08:21AM +0930, Daryl Tester wrote:
>>> The above environment isn't necessary to replicate the problem, although
>>> what stdout and stderr are attached to has some effect. The attached C
>>> code replicates the issue, but appears to not fail (that is, succeed) if
>>> /proc/self/fd/2 is a terminal (e.g. /dev/pts/X) *and* that terminal is
>>> owned by the same uid that the code uses (in this case, 500). In the
>>> case of an anonymous pipe it appears to fail consistently as the pipe is
>>> owned by root.

Something similar was fixed in 2.6.22, but let me check.



\
 
 \ /
  Last update: 2008-08-08 02:53    [from the cache]
©2003-2011 Jasper Spaans