Changeset View
Changeset View
Standalone View
Standalone View
contrib/capsicum-test/sysctl.cc
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#include "capsicum.h" | |||||
#include "capsicum-test.h" | |||||
#ifdef HAVE_SYSCTL | |||||
#include <sys/sysctl.h> | |||||
// Certain sysctls are permitted in capability mode, but most are not. Test | |||||
// for the ones that should be, and try one or two that shouldn't. | |||||
asomers: This comment isn't accurate, but I suspect that it's an upstream problem. | |||||
ngieAuthorUnsubmitted Done Inline ActionsCorrect. ngie: Correct. | |||||
TEST(Sysctl, Capability) { | |||||
int oid[2] = {CTL_KERN, KERN_OSRELDATE}; | |||||
int ii; | |||||
size_t len = sizeof(ii); | |||||
EXPECT_OK(sysctl(oid, 2, &ii, &len, NULL, 0)); | |||||
} | |||||
#endif |
This comment isn't accurate, but I suspect that it's an upstream problem.