From 737fb907a7404c307ff25e8be4926c67937c0ad7 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sun, 13 Aug 2017 00:14:08 +0000 Subject: [PATCH] Make root-privileges a requirement for the test Some of the testcases try to manipulate sysctls that require root privileges, e.g., "kern.sync_on_panic". Make root-privileges a hard requirement so the tests don't raise false positives due to privilege issues when calling sysctlbyname(3) on writable sysctls. MFC after: 1 week --- lib/libcasper/services/cap_sysctl/tests/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libcasper/services/cap_sysctl/tests/Makefile b/lib/libcasper/services/cap_sysctl/tests/Makefile index f8625ab98449..cd0f3bb5d749 100644 --- a/lib/libcasper/services/cap_sysctl/tests/Makefile +++ b/lib/libcasper/services/cap_sysctl/tests/Makefile @@ -8,4 +8,6 @@ LIBADD+= nv WARNS?= 3 +TEST_METADATA.sysctl_test+= required_user="root" + .include