> Because programs running as root assume
>
> open("blah", O_RDWR)
> write(blah)
>
> will work.
Take a program running as root. Take a CD. Mount it. root is *not*
guaranteed to have everything writable.
> They do NOT expect to have to
>
> open("blah", O_RDWR)
> if (-EPERM)
> chflags("blah", immutable off)
> open("blah", O_RDWR)
Indeed. Case when it would matter, please? Notice that all derivatives of
4.4BSD have independent system and user flags. If you can find security
problems with that - share, I would like to look at the reaction of Theo ;-)
-
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/