[Bug 212861] [tmpfs] uchg files can be removed by root

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 13 06:47:18 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212861

--- Comment #3 from Ngie Cooper <ngie at FreeBSD.org> ---
(In reply to Edward Tomasz Napierala from comment #2)

Sure.

Oy.. this is amusing:

$ touch /tmp/uchg.file
$ chflags uchg /tmp/uchg.file
$ rm -f /tmp/uchg.file
rm: /tmp/uchg.file: Operation not permitted
$ sudo rm -f /tmp/uchg.file
$ rm /tmp/uchg.file
rm: /tmp/uchg.file: No such file or directory

This means that the test will at the very least need to be run by an
unprivileged user... but why can root always remove the file..? Hmm..

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list