BugTraq
/proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 05:16PM
Pavel Machek (pavel ucw cz) (4 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 04:01PM
Tony Finch (dot dotat at) (3 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 01:06PM
Pavel Machek (pavel ucw cz)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 10:48PM
Matthew Dempsky (matthew dempsky org) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 11:29AM
Tony Finch (dot dotat at) (2 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 08:39PM
psz maths usyd edu au (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 28 2009 10:31PM
Glynn Clements (glynn gclements plus com)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 04:59PM
Matthew Dempsky (matthew dempsky org)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 25 2009 10:13AM
Pavel Kankovsky (peak argo troja mff cuni cz)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 24 2009 01:55AM
Daryl Tester (dt-bugtraq handcraftedcomputers com au)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 07:57PM
Dan Yefimov (dan lightwave net ru) (2 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 24 2009 06:46AM
Derek Martin (code pizzashack org) (1 replies)
Re: /proc filesystem allows bypassing directory permissions onLinux Oct 26 2009 06:37PM
Ansgar Wiechers (bugtraq planetcobalt net) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 08:34PM
Derek Martin (code pizzashack org) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 09:08PM
Pavel Machek (pavel ucw cz) (2 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 11:47PM
psz maths usyd edu au (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 24 2009 07:02PM
Pavel Machek (pavel ucw cz) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 25 2009 12:40AM
psz maths usyd edu au (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 10:42AM
Dan Yefimov (dan lightwave net ru)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 09:24PM
Dan Yefimov (dan lightwave net ru) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 09:56PM
Pavel Machek (pavel ucw cz) (2 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 06:14PM
Joel Maslak (jmaslak antelope net)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 23 2009 10:31PM
Dan Yefimov (dan lightwave net ru) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 26 2009 04:14PM
Stephen Harris (bugtraq spuddy org) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 11:04AM
Vincent Zweije vincent+bugtraq (at) sense.xs4all (dot) nl [email concealed] (vincent+bugtraq sense xs4all nl) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 27 2009 05:09PM
Dan Yefimov (dan lightwave net ru) (3 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 28 2009 09:27PM
Pavel Machek (pavel ucw cz) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 29 2009 03:24PM
Dan Yefimov (dan lightwave net ru) (1 replies)
Re: /proc filesystem allows bypassing directory permissions onLinux Oct 29 2009 07:20PM
Pavel Machek (pavel ucw cz) (1 replies)
Re: /proc filesystem allows bypassing directory permissions onLinux Oct 29 2009 08:10PM
Jim Paris (jim jtan com) (2 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 30 2009 05:57PM
Marco Verschuur (marco osp nl)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 30 2009 05:22PM
Marco Verschuur (marco osp nl) (2 replies)
Re: /proc filesystem allows bypassing directory permissions onLinux Oct 30 2009 05:40PM
Jim Paris (jim jtan com) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Nov 02 2009 05:53PM
Martin Rex (Martin Rex sap com) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Nov 02 2009 07:53PM
Pavel Machek (pavel ucw cz) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Nov 02 2009 08:56PM
Gabor Gombas (gombasg sztaki hu) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Nov 02 2009 11:33PM
Martin Rex (Martin Rex sap com) (3 replies)
Re: /proc filesystem allows bypassing directory permissions on Nov 04 2009 08:29PM
Pavel Kankovsky (peak argo troja mff cuni cz)
Re: /proc filesystem allows bypassing directory permissions on Nov 03 2009 01:06PM
Dan Yefimov (dan lightwave net ru)
Re: /proc filesystem allows bypassing directory permissions on Nov 03 2009 09:32AM
Gabor Gombas (gombasg sztaki hu) (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Nov 03 2009 11:17PM
psz maths usyd edu au (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Nov 04 2009 08:06AM
Gabor Gombas (gombasg sztaki hu) (3 replies)
Re: /proc filesystem allows bypassing directory permissions on Nov 04 2009 10:15AM
psz maths usyd edu au (1 replies)
Re: /proc filesystem allows bypassing directory permissions on Nov 04 2009 11:40AM
Gabor Gombas (gombasg sztaki hu)
Re: /proc filesystem allows bypassing directory permissions on Nov 04 2009 08:32AM
Pavel Machek (pavel ucw cz)
Re: /proc filesystem allows bypassing directory permissions on Nov 04 2009 08:31AM
Pavel Machek (pavel ucw cz)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 30 2009 05:38PM
Pavel Machek (pavel ucw cz) (2 replies)
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 30 2009 06:27PM
Marco Verschuur (marco osp nl)
Pavel,

Proc does not need to be fixed, because /proc is referring to a file
inode.
And due to the fact that it's being presented in /proc as an fd, you
treat it
as an fd, therefor your expectations do not match.

Your assumptions is; because you accessed the world writable file via
a read-only fd, you also expect the file to appear as read-only in /
proc.
There is the mis-match.

The idea of /proc is to refer to files being opened by the process,
while RETAINING the original INODE attributes, regardless of the fact
that
this particular process accessed the file via read-only access.

You are expecting transactional behavior in /proc, where /proc only
registers object information.

I think this discussion had never existed if they used another name for
the 'fd' placeholder in /proc... Because then you wouldn't linked the
/proc fd to the fd being used within the actual process space.

And I think you would agree about your mis-interpretation earlier if
not so
many people had the same mis-interpretation of the virtual /proc
mechanism
(I hope you don't get me wrong; I'm not taking this personal or being
rude to you,
because that's definitely NOT my intention).

Best regards,
Marco

On 30 okt 2009, at 18:38, Pavel Machek wrote:

> Hi!
>
>> Your assumption that the same file descriptor is being re-opened is
>> wrong!
>> The file descriptor retrieved via /proc is a new one. It is not the
>> same as the
>> initial read-only.
>
> True, we were just being sloppy with the words. But it does not matter
> one iota.
>
>> As Martin Rex already explained yesterday, /proc is all virtual.
>> The item referred as fd in /proc is not a real file descriptor and as
>> of that, that 'not-tfor-real file descriptor' is also not re-opend
>> and so does
>> not become read-write.
>
> True.
>
>> Imagen:
>> - a house surrounded with a fence with all doors unlocked (file with
>> perm 0666)
>> - a drive-way leads to the gate in the fence and the gate is
>> unlocked (dir with perms 777)
>> - next we put a lock on the gate and don't give guest the key (dir
>> with perms 700)
>> - guest cannot access the house because he can't pass the gate
>> - now we take an airplane and parachute guest straight into the
>> perimeter of the fence (/proc access)
>> - guest can access the house (write the file), because the house has
>> all doors unlocked
>
> Exactly, and I'm saying that airplanes should not exist (fix the
> /proc). Martin Rex had another solution -- allow fcntl() to remove
> read-only and append-only limitations, so that behaviour is at least
> explicit.
>
> Pavel
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[ reply ]
Re: /proc filesystem allows bypassing directory permissions on Linux Oct 28 2009 08:28PM
Vincent Zweije (vzweije zweije nl)


 

Privacy Statement
Copyright 2010, SecurityFocus