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

Function mac_vnode_check_exec

freebsd/security/mac/mac_vfs.c:476–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474 "struct image_params *");
475
476int
477mac_vnode_check_exec(struct ucred *cred, struct vnode *vp,
478 struct image_params *imgp)
479{
480 int error;
481
482 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_exec");
483
484 MAC_POLICY_CHECK(vnode_check_exec, cred, vp, vp->v_label, imgp,
485 imgp->execlabel);
486 MAC_CHECK_PROBE3(vnode_check_exec, error, cred, vp, imgp);
487
488 return (error);
489}
490
491MAC_CHECK_PROBE_DEFINE3(vnode_check_getacl, "struct ucred *",
492 "struct vnode *", "acl_type_t");

Callers 1

exec_check_permissionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected