Re: /proc filesystem allows bypassing directory permissions on

2009-11-03 Thread Martin Rex
Gabor Gombas wrote: On Mon, Nov 02, 2009 at 08:53:26PM +0100, Pavel Machek wrote: The link count of a files tells you the number of hard links that are persisted within the same filesystem. It is _NOT_ a promise that there are no other means to access the inode of the file. It

Re: /proc filesystem allows bypassing directory permissions on

2009-11-02 Thread Martin Rex
Jim Paris wrote: Therefor it's totally of no influence what you do with the original directory permission. File access has nothing to do with directory permissions...! Right. However the whole point of this discussion is that that is a non-obvious point, there was no other way that

Re: /proc filesystem allows bypassing directory permissions on

2009-10-29 Thread Martin Rex
Pavel Machek wrote: IMHO; no bug or security issue, just a misunderstanding of the mechanism... Correct. It is a completely flawed assumption. In Unix, an open() of a file checks access permissions as specified in the files inode. If someone wants access control applied to a file, then