Re: [PATCH] devfs and symlinks--2.3.48

From: Richard Gooch (rgooch@atnf.csiro.au)
Date: Thu Mar 02 2000 - 02:52:47 EST


Matthew Vanecek writes:
> This is a multi-part message in MIME format.

Yuk! MIME!

> When you make symlinks, either by hand or with devfsd, in /dev, they
> always end up with perms of lr-xr-xr-x. I'm not sure that this is
> really important, or what effect it has on programs accessing them (if
> any--don't think anyone's using lstat anymore...), but it's not like any
> other links in the system. This little patch makes sure that the links
> are create 'normally', with perms set to lrwxrwxrwx.

Grrrr. I don't want to change this.

Also, if people want to send patches, please send them to the devfs
maintainer (you know where to find me) instead.

> I don't know why this was the way it was, other than not wanting to
> type the extra 10 or so characters, but if someone wants to explain
> a logical reason why the perms should be lr-xr-xr-x, I'd be happy to
> listen. :) Otherwise, maybe we want to exercise a little consistency
> with the rest of the system? Just a thought...

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.

                                Regards,

                                        Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca

-
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:11 EST