Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2019 18:25:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        testing@freebsd.org
Subject:   [Bug 236857] Fix sysctl check for some sys/audit/process-control tests
Message-ID:  <bug-236857-32464@https.bugs.freebsd.org/bugzilla/>

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

            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@freebsd.org
          Reporter: olivier@freebsd.org

Created attachment 203217
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D203217&action=
=3Dedit
patch to skip tests if kernel build without CAPABILITIES

There are two tests that check if kern.features.security_capability_mode is
correctly set (=3D1) , but if a kernel without CAPABILITIES these tests fai=
led
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/pro=
cess-con
trol.c:1518: 0 !=3D 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)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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)

--=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-236857-32464>