1 #include "capsicum.h" 2 #include "capsicum-test.h" 3 4 #include <sys/sysctl.h> 5 6 // Certain sysctls are permitted in capability mode, but most are not. Test 7 // for the ones that should be, and try one or two that shouldn't. 8 TEST(Sysctl, Capability) { 9 int oid[2] = {CTL_KERN, KERN_OSRELDATE}; 10 int ii; 11 size_t len = sizeof(ii); 12 EXPECT_OK(sysctl(oid, 2, &ii, &len, NULL, 0)); 13 } 14