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

Function mac_vnode_check_link

freebsd/security/mac/mac_vfs.c:529–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527 "struct vnode *", "struct componentname *");
528
529int
530mac_vnode_check_link(struct ucred *cred, struct vnode *dvp,
531 struct vnode *vp, struct componentname *cnp)
532{
533 int error;
534
535 ASSERT_VOP_LOCKED(dvp, "mac_vnode_check_link");
536 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_link");
537
538 MAC_POLICY_CHECK(vnode_check_link, cred, dvp, dvp->v_label, vp,
539 vp->v_label, cnp);
540 MAC_CHECK_PROBE4(vnode_check_link, error, cred, dvp, vp, cnp);
541
542 return (error);
543}
544
545MAC_CHECK_PROBE_DEFINE3(vnode_check_listextattr, "struct ucred *",
546 "struct vnode *", "int");

Callers 1

kern_linkat_vpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected