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

Function mac_vnode_execve_will_transition

freebsd/security/mac/mac_vfs.c:355–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355int
356mac_vnode_execve_will_transition(struct ucred *old, struct vnode *vp,
357 struct label *interpvplabel, struct image_params *imgp)
358{
359 int result;
360
361 ASSERT_VOP_LOCKED(vp, "mac_vnode_execve_will_transition");
362
363 result = 0;
364 /* No sleeping since the process lock will be held by the caller. */
365 MAC_POLICY_BOOLEAN_NOSLEEP(vnode_execve_will_transition, ||, old, vp,
366 vp->v_label, interpvplabel, imgp, imgp->execlabel);
367
368 return (result);
369}
370
371MAC_CHECK_PROBE_DEFINE3(vnode_check_access, "struct ucred *",
372 "struct vnode *", "accmode_t");

Callers 1

do_execveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected