lkml.org 
[lkml]   [1998]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: sys_chown() hits symlinks
Date
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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.056 / U:2.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site