RE: reading links in proc - permission denied

Ray Olszewski (ray@comarre.com)
Sat, 14 Jun 2003 14:10:12 -0700


I am unclear what purpose the long rant about "[p]erfect capitalistic
system" handling of software bugs has to do with an operating system and
applications that most of get for free, so I'll skip that part.

What governs access to a file is ownership and permissions on the file
itself, not on symlinks to it (which are customarily lrwxrwxrwx on Linux
filesystems). This is not mysterious. It's just old-hat Unix.

At 01:55 PM 6/14/2003 -0700, linda w. wrote:

> > -----Original Message-----
> > From: hurtta@leija.mh.fmi.fi [mailto:hurtta@leija.mh.fmi.fi]
> > Are you sure that 'top' uses that 'exe' ?
>---
> Not at all...in fact was told it doesn't. Apparently, though,
>the listed permissions on the links are arbitrary and the system
>fairly well ignores them.
>
> I vaguely remember someone once saying that even if a symlink
>had permissions lrxw------, it could still be used by group and
>others. I don't know if that was or is still true -- certainly doesn't
>seem consistent, but when dealing with computer systems made by
>many different humans, inconsistency seems inevitable -- even when
>made by 1 human, that person can be inconsistent over time.
>
> And people wonder why computer security is so hard to 'get right'.
[rest deleted]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/