[Bug 212861] [tmpfs] uchg files can be removed by root
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Feb 10 02:52:57 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212861
--- Comment #8 from commit-hook at freebsd.org ---
A commit references this bug:
Author: ngie
Date: Fri Feb 10 02:51:54 UTC 2017
New revision: 313514
URL: https://svnweb.freebsd.org/changeset/base/313514
Log:
MFC r307190,r307196,r307204,r307205:
r307190:
Skip :uchg on FreeBSD
Unfortunately removing files with uchg set always succeeds with root on
FreeBSD. Unfortunately running the test as an unprivileged user isn't doable
because mounting tmpfs requires root
PR: 212861
r307196:
Port contrib/netbsd-tests/fs/tmpfs/h_tools.c to FreeBSD
- Add inttypes.h #include for PRId64 macro
- Use FreeBSD's copy of getfh(2), which doesn't include a `fh_size`
parameter.
Use sizeof(fhandle_t) instead as the size of fhp is always fixed as
fhandle_t, unlike NetBSD's copy of fhp, which is void*.
r307204:
Expect :large to fail on FreeBSD
FreeBSD doesn't appear to validate large -o size values like
NetBSD does
PR: 212862
r307205:
Change atf_skip call to atf_expect_fail to make it clear that a failure is
expected
PR: 212861
Suggested by: jmmv
Changes:
_U stable/10/
stable/10/contrib/netbsd-tests/fs/tmpfs/h_tools.c
stable/10/contrib/netbsd-tests/fs/tmpfs/t_mount.sh
stable/10/contrib/netbsd-tests/fs/tmpfs/t_remove.sh
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-fs
mailing list