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

Function mac_vnode_check_unlink

freebsd/security/mac/mac_vfs.c:912–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

910 "struct vnode *", "struct vnode *", "struct componentname *");
911
912int
913mac_vnode_check_unlink(struct ucred *cred, struct vnode *dvp,
914 struct vnode *vp, struct componentname *cnp)
915{
916 int error;
917
918 ASSERT_VOP_LOCKED(dvp, "mac_vnode_check_unlink");
919 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_unlink");
920
921 MAC_POLICY_CHECK(vnode_check_unlink, cred, dvp, dvp->v_label, vp,
922 vp->v_label, cnp);
923 MAC_CHECK_PROBE4(vnode_check_unlink, error, cred, dvp, vp, cnp);
924
925 return (error);
926}
927
928MAC_CHECK_PROBE_DEFINE3(vnode_check_write, "struct ucred *",
929 "struct ucred *", "struct vnode *");

Callers 2

kern_funlinkatFunction · 0.85
kern_frmdiratFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected