freebsd-skq/tests/sys/audit
Enji Cooper cdb9318eed Don't leave path behind when executing :chflags_success
Prior to this change a `SF_IMMUTABLE` chflagsat(2)'ed file (`path`) was left
behind, which sabotaged kyua(1) from being able to clean up the work directory,
This resulted in unnecessary work for folks having to clean up the work
directory on non-disposable systems, which defaults to `/tmp`. Use `UF_OFFLINE`
instead of `SF_IMMUTABLE`, in part because setting `SF_IMMUTABLE` isn't relevant
to the test and `SF_IMMUTABLE` cannot be cleared at all securelevels, as pointed
out by @asomers.

Additional work is required to catch cases like this upfront in the future to
avoid tester headache. See PR # 247765 for more details/followup.

Suggested by:	asomers
Reviewed By:	asomers, #tests
MFC after:	1 week
PR:		247761
Sponsored by:	DellEMC
Differential Revision: https://reviews.freebsd.org/D25561
2020-07-12 17:16:57 +00:00
..
administrative.c audit(4) tests: require /etc/rc.d/auditd 2018-12-17 18:11:06 +00:00
file-attribute-access.c Fix audit of chflagsat, lgetfh, and setfib 2018-07-22 14:11:52 +00:00
file-attribute-modify.c Don't leave path behind when executing :chflags_success 2020-07-12 17:16:57 +00:00
file-close.c tests: audit: mark closefrom test an expected fail for now 2020-04-14 23:36:03 +00:00
file-create.c audit(4): Fix file descriptor leaks in ATF tests 2018-06-13 17:01:57 +00:00
file-delete.c audit(4): Fix file descriptor leaks in ATF tests 2018-06-13 17:01:57 +00:00
file-read.c
file-write.c audit(4): Fix file descriptor leaks in ATF tests 2018-06-13 17:01:57 +00:00
inter-process.c audit(4): add tests for pipe, posix_openpt, shm_open, and shm_unlink 2018-06-26 19:26:07 +00:00
ioctl.c audit(4): add tests for ioctl(2) 2018-06-19 01:32:33 +00:00
Makefile Make audit tests depend on /dev/auditpipe. This should fix 2020-06-18 15:41:16 +00:00
miscellaneous.c audit(4): add tests for sysctl(3) and sysarch(2) 2018-07-29 20:34:44 +00:00
network.c Fix audit of chflagsat, lgetfh, and setfib 2018-07-22 14:11:52 +00:00
open.c audit(4): improve formatting in tests/sys/audit/open.c 2018-06-15 15:36:10 +00:00
process-control.c Fix and simplify code by using ATF_REQUIRE_FEATURE macro 2019-04-01 14:21:32 +00:00
utils.c audit(4): add tests for _exit(2), cap_enter(2), and cap_getmode(2) 2018-07-17 15:12:55 +00:00
utils.h