cvs commit: src/lib/libc/sys chmod.2

Bruce Evans bde at zeta.org.au
Wed Dec 13 07:51:10 PST 2006


On Wed, 13 Dec 2006, Pawel Jakub Dawidek wrote:

> pjd         2006-12-13 13:22:58 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    lib/libc/sys         chmod.2
>  Log:
>  Append-only flag also denies chmod(2). Is this correct behaviour?

I don't like it, but it follows from a literal interpretation of "only".
I think the append-only flag should only have applied to data, (including
clobbering of the data by removing the file), but in some cases you
may actually want the current semantics of the flag (immutable attributes
(except for mtime and atime via append and read) together with immutable
old-data), and there is currently no other way to specify this.

The main incorrect behaviour near here is no-unlink denying chflags(2).
This bug is is already documented (not as a bug).  The no-unlink flag
should at most deny chflags() of itself.

Bruce


More information about the cvs-all mailing list