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

Function mac_system_check_auditctl

freebsd/security/mac/mac_audit.c:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 "struct vnode *");
116
117int
118mac_system_check_auditctl(struct ucred *cred, struct vnode *vp)
119{
120 int error;
121 struct label *vl;
122
123 ASSERT_VOP_LOCKED(vp, "mac_system_check_auditctl");
124
125 vl = (vp != NULL) ? vp->v_label : NULL;
126 MAC_POLICY_CHECK(system_check_auditctl, cred, vp, vl);
127 MAC_CHECK_PROBE2(system_check_auditctl, error, cred, vp);
128
129 return (error);
130}
131
132MAC_CHECK_PROBE_DEFINE2(system_check_auditon, "struct ucred *", "int");
133

Callers 1

sys_auditctlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected