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:30:08 UTC 2008


The following reply was made to PR kern/122047; it has been noted by GNATS.

From: Julian Elischer <julian at elischer.org>
To: Ighighi <ighighi at gmail.com>
Cc: bug-followup at freebsd.org, freebsd-fs at freebsd.org
Subject: Re: kern/122047: [ext2fs] incorrect handling of UF_IMMUTABLE / UF_APPEND,
 flag on EXT2FS (maybe others)
Date: Mon, 02 Jun 2008 00:14:46 -0700

 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-bugs mailing list