[Bug 236857] Fix sysctl check for some sys/audit/process-control tests
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Mar 28 18:25:36 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236857
Bug ID: 236857
Summary: Fix sysctl check for some sys/audit/process-control
tests
Product: Base System
Version: 12.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: tests
Assignee: testing at freebsd.org
Reporter: olivier at freebsd.org
Created attachment 203217
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=203217&action=edit
patch to skip tests if kernel build without CAPABILITIES
There are two tests that check if kern.features.security_capability_mode is
correctly set (=1) , but if a kernel without CAPABILITIES these tests failed
because non existing sysctl.
Before patch:
NANOBSD# kyua test sys/audit/process-control:cap_enter_success
sys/audit/process-control:cap_enter_success -> failed:
/var/jenkins/workspace/ocafirmware_build-master/FreeBSD/tests/sys/audit/process-con
trol.c:1518: 0 != sysctlbyname(capname, &capinfo, &len, NULL, 0) [0.003s]
Results file id is usr_tests.20190328-140620-191316
Results saved to /root/.kyua/store/results.usr_tests.20190328-140620-191316.db
0/1 passed (1 failed)
==============
After patch:
NANOBSD# kyua test sys/audit/process-control:cap_enter_success
sys/audit/process-control:cap_enter_success -> skipped: sysctl
kern.features.security_capability_mode doesn't exist [0.003s]
Results file id is usr_tests.20190328-181625-015778
Results saved to /root/.kyua/store/results.usr_tests.20190328-181625-015778.db
1/1 passed (0 failed)
NANOBSDx# kyua test sys/audit/process-control:cap_getmode_success
sys/audit/process-control:cap_getmode_success -> skipped: sysctl
kern.features.security_capability_mode doesn't exist [0.003s]
Results file id is usr_tests.20190328-181746-138037
Results saved to /root/.kyua/store/results.usr_tests.20190328-181746-138037.db
1/1 passed (0 failed)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-testing
mailing list