Re: [PATCH] devfs and symlinks--2.3.48

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Thu Mar 02 2000 - 19:49:36 EST


Richard Gooch wrote:
> Symlink permissions should not matter. The kernel doesn't care, and
> neither should applications. If some application out there is doing
> lstat(2), I'd rather break it and see it fixed, since it's probably
> broken in other ways too.

For procfs, symlink permissions do matter.

You can't readlink a procfs symlink that's not readable by you.
I'm thinking of /proc/N/cwd.

I don't know what other permissions are implied, but `ls -l
/proc/self/fd' shows me three symlinks with lrwx------ permission and
one with lr-x------ permission. There might even be a reason.

enjoy,
-- Jamie

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



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:13 EST