[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] Rights for hardlinks
On Tue, Mar 23, 1999 at 10:11:08AM -0500, Alexander Viro wrote:
> Access != write permissions.

I think he has a point, though. You can hardlink even to a file with 0 perms.
Such files are immune to the open trick you mention below, but the only way to
get around the linking would be to first create a 700 directory in /tmp and
export TMPDIR=/tmp/foo. This requires trickery in your .profile to find
a suitable foo.

> IMO it's madness. If you are in hostile environment (malicious
> local users) you can (and should) make your homedir accessible only for
> you. The only other place you could care of is /tmp. Needs regular
> cleanups on any box.
> Notice that malicious user can simply *open* the files and there
> is nothing you can do with them. Even if you unlink them they'll stay
> around until the attacker will want to close them. Your point being?
> Uptimes up to hundreds of days are *good* thing on a multi-user box.

see above...

-- arvind

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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