lkml.org 
[lkml]   [1996]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Proposal: restrict link(2)

> Worse still! The new copy of the file can have different access
> protections; it could even be made world-readable!

Um.. for what it's worth, here's an example of a case where this might
be significant.

$ mkdir groupdir
$ chmod groupdir 750
$ chgrp devel groupdir
$ cd groupdir
$ touch BetaReport
$ chgrp prof BetaReport
$ chmod 664 BetaReport
$ emacs BetaReport

If hardlinks to non-writeable files are prohibitted, then the system
would prevent BetaReport from being updated except by people who are
in both "devel" and "prof", and from being read by anyone outside
"devel". Nested directories could be used to "and" group permission
requirements, and hard links could be used to "or" group permission
requirements.

As things currently stand, someone in "devel" can trivially give
write access to BetaReport to all people in "prof", even if the
intersection of devel and prof is but a small fraction of devel. The
system, as it currently stands, wouldn't even leave a record of who
did this.

Hopefully, this is enough description to allow the idea to be
discussed on its merits (or lack).

--
Raul

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