MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mac_system_check_sysctl

Function mac_system_check_sysctl

freebsd/security/mac/mac_system.c:221–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 "struct sysctl_oid *", "struct sysctl_req *");
220
221int
222mac_system_check_sysctl(struct ucred *cred, struct sysctl_oid *oidp,
223 void *arg1, int arg2, struct sysctl_req *req)
224{
225 int error;
226
227 /*
228 * XXXMAC: We would very much like to assert the SYSCTL_LOCK here,
229 * but since it's not exported from kern_sysctl.c, we can't.
230 */
231 MAC_POLICY_CHECK_NOSLEEP(system_check_sysctl, cred, oidp, arg1, arg2,
232 req);
233 MAC_CHECK_PROBE3(system_check_sysctl, error, cred, oidp, req);
234
235 return (error);
236}

Callers 1

sysctl_rootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected