Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2016 06:47:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 212861] [tmpfs] uchg files can be removed by root
Message-ID:  <bug-212861-3630-izDMWXhUgq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-212861-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-212861-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212861

--- Comment #3 from Ngie Cooper <ngie@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..

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212861-3630-izDMWXhUgq>