Date: Sat, 2 Nov 1996 14:17:46 +1100 From: Bruce Evans <bde@zeta.org.au> To: freebsd-hackers@freebsd.org, taob@io.org Cc: ache@freebsd.org Subject: Re: Effect of UF_APPEND/SF_APPEND on file modes Message-ID: <199611020317.OAA11890@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> Shouldn't I be able to chown/chmod a file with the UF_APPEND or >SF_APPEND flag set? I'm getting EPERM on those operations. Don't know. It seems reasonable to allow it, but *APPEND is generally grouped with *IMMUTABLE in the permissions checks, and it is for all attribute changes - things like `touch' also fail. >I can >delete the file just fine. This seems to be a bugfeature in /bin/rm. unlink(2) fails correctly. /bin/rm seems to attempt to handle the UF_APPEND and UF_IMMUTABLE flags in the the same way for root (by silently blowing them away), but it actually handles them diferrently because access(2) fails for the uchg case so the special handling of UF_IMMUTABLE doesn't get used. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611020317.OAA11890>