kern/122047: [ext2fs] incorrect handling of UF_IMMUTABLE / UF_APPEND, flag on EXT2FS (maybe others)

Julian Elischer julian at elischer.org
Mon Jun 2 07:27:45 UTC 2008


Ighighi wrote:
> On Linux, only the root user may set/clear the immutable/append flags
> on ext2 filesystems... Shouldn't FreeBSD do this too, as a POLA?

No I think it should preserver the BSD scheme where being able to
change the immutable bits is controlled by the system secure level.
(and your UID of course). At least I think that is what I would
expect. (All file systems to behave about the same for a
particular OS.


> 
> Anyway the attached patch extends the previous one by making it possible
> to follow the current Linux convention by setting the sysctl to 0.
> Setting it to 1, allows normal users to set them as well, and setting it
> to -1 preserves current (though erroneous) FreeBSD behavior.


> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"



More information about the freebsd-fs mailing list