Re: sys_chown() hits symlinks
H. Peter Anvin (hpa@transmeta.com)
18 Jan 1998 11:59:35 GMT
Followup to: <199801180812.AAA12870@sun4.apsoft.com>
By author: Perry Harrington <pedward@sun4.apsoft.com>
In newsgroup: linux.dev.kernel
>
> Sounds like ther kernel is begging for a lsys_chown. I would speculate it
> is so that any joe user can nuke a symlink that he created, otherwise
> wouldn't the root:root semantics be a limiting factor? I know that symlinks
> are lrwxrwxrwx, it's neccessary to set the owner so any joe user can't just
> nuke any symlink (I am aware that current directory owner/perms affect this).
> Symlinks should not be at the mercy of the directory perms, files aren't.
>
Incorrect. Neither the owner nor the mode of a symlink have any
effects, whatsoever.
-hpa
--
PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
See http://www.zytor.com/~hpa/ for web page and full PGP public key
I am Bahá'í -- ask me about it or see http://www.bahai.org/
"To love another person is to see the face of God." -- Les Misérables