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

Function mac_system_check_swapoff

freebsd/security/mac/mac_system.c:205–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 "struct vnode *");
204
205int
206mac_system_check_swapoff(struct ucred *cred, struct vnode *vp)
207{
208 int error;
209
210 ASSERT_VOP_LOCKED(vp, "mac_system_check_swapoff");
211
212 MAC_POLICY_CHECK(system_check_swapoff, cred, vp, vp->v_label);
213 MAC_CHECK_PROBE2(system_check_swapoff, error, cred, vp);
214
215 return (error);
216}
217
218MAC_CHECK_PROBE_DEFINE3(system_check_sysctl, "struct ucred *",
219 "struct sysctl_oid *", "struct sysctl_req *");

Callers 1

swapoff_oneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected