misc/149495: chflags sappend on zfs not working right
Daniel Zhelev
daniel at zhelev.biz
Tue Aug 10 12:10:03 UTC 2010
>Number: 149495
>Category: misc
>Synopsis: chflags sappend on zfs not working right
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 10 12:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Daniel Zhelev
>Release: 8.1-RELEASE
>Organization:
none
>Environment:
root at wolfdale~# uname -a
FreeBSD wolfdale.sgate.org 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
root at wolfdale~#
>Description:
chmod o= /var/log/critical
chflags sappnd /var/log/critical
chflags sappnd /var/log/critical/*
root at wolfdale/var/log/critical# echo "test" > critical.log
critical.log: Operation not permitted.
root at wolfdale/var/log/critical# echo "test" >> critical.log
root at wolfdale/var/log/critical# grep test critical.log
Filesystem 1K-blocks Used Avail Capacity Mounted on
zroot/var/log 5242880 106 5242774 0% /var/log
root at wolfdale~# sysctl kern.securelevel
kern.securelevel: 1
Flag sappnd/sappend is permitting also write to file not only delete on ZFS mounts.
Submitting but-report since it is marked as done in http://wiki.freebsd.org/ZFS
Not tested other flags, please contact me if you need me to.
>How-To-Repeat:
Described above.
>Fix:
Using zvol with UFS on it - workaround
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list