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

Function mac_vnode_check_lookup_impl

freebsd/security/mac/mac_vfs.c:567–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565 "struct vnode *", "struct componentname *");
566
567int
568mac_vnode_check_lookup_impl(struct ucred *cred, struct vnode *dvp,
569 struct componentname *cnp)
570{
571 int error;
572
573 ASSERT_VOP_LOCKED(dvp, "mac_vnode_check_lookup");
574
575 if ((cnp->cn_flags & NOMACCHECK) != 0)
576 return (0);
577 MAC_POLICY_CHECK(vnode_check_lookup, cred, dvp, dvp->v_label, cnp);
578 MAC_CHECK_PROBE3(vnode_check_lookup, error, cred, dvp, cnp);
579
580 return (error);
581}
582
583MAC_CHECK_PROBE_DEFINE4(vnode_check_mmap, "struct ucred *", "struct vnode *",
584 "int", "int");

Callers 1

mac_vnode_check_lookupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected