lkml.org 
[lkml]   [1999]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject(Sticky bit on files) Re: Subject: Re: ext3 to include capabilities?


On Sat, 3 Apr 1999, Albert D. Cahalan wrote:

> I know what it was and is used for. I think we have a bug.
> As you can see below, Digital UNIX _does_ let a normal user
> set the sticky bit on a directory:

Sure it does. Yes, looking at SunOS manpage (and behaviour on
tmpfs, ufs and nfs) it looks like sticky bit on regular files is
explicitly prohibited from being changed by non-root. *BSD simply don't
allow sticky bit on regulars (and ignore it if it was set by something
else). Compatibility with ancient times. So we probably shouldn't allow
users to set it on regular files. Maybe shouldn't allow to mess with it at
all. AFAICS we should do it in fs/attr.c::inode_change_ok() (to cover NFSD
too).


-
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/

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