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

Function mac_system_check_acct

freebsd/security/mac/mac_system.c:157–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 "struct vnode *");
156
157int
158mac_system_check_acct(struct ucred *cred, struct vnode *vp)
159{
160 int error;
161
162 if (vp != NULL) {
163 ASSERT_VOP_LOCKED(vp, "mac_system_check_acct");
164 }
165
166 MAC_POLICY_CHECK(system_check_acct, cred, vp,
167 vp != NULL ? vp->v_label : NULL);
168 MAC_CHECK_PROBE2(system_check_acct, error, cred, vp);
169
170 return (error);
171}
172
173MAC_CHECK_PROBE_DEFINE2(system_check_reboot, "struct ucred *", "int");
174

Callers 1

sys_acctFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected