Re: mount(2) in 2.3.99pre9!!!

From: H. Peter Anvin (
Date: Thu Jun 01 2000 - 20:00:36 EST

Followup to: <>
By author: Chris Evans <>
In newsgroup:
> > Yes, we must check that it's not immutable/append-only (the former already
> > checked, the latter... OK, needs to be added). But parent?
> > Look: if we can add/remove on parent the permissions on mountpoint do not
> > matter at all, because of your scenario. So maybe we need to check the
> > parent (+ imm/a-o on the mountpoint, as usual) and to fsck with
> > permissions on the mountpoint...
> Sounds cool - as long as we we cater for S_ISVTX (I think we do), and
> perform the checks even if a privileged user is doing the operation -
> don't want immutable/append-only circumventions :)

It's not. Think of what happens when an unprivileged user creates
10000 aliases of a large directory. Bye-bye, backups...

This really *does* need to be a privileged operation.


<> at work, <> in private!
"Unix gives you enough rope to shoot yourself in the foot."

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

This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:13 EST