Messages in this thread | | | Date | Sat, 3 Apr 1999 06:53:56 -0500 (EST) | From | Alexander Viro <> | 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/
| |