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

Function mac_vnode_check_rename_from

freebsd/security/mac/mac_vfs.c:736–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734 "struct vnode *", "struct vnode *", "struct componentname *");
735
736int
737mac_vnode_check_rename_from(struct ucred *cred, struct vnode *dvp,
738 struct vnode *vp, struct componentname *cnp)
739{
740 int error;
741
742 ASSERT_VOP_LOCKED(dvp, "mac_vnode_check_rename_from");
743 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_rename_from");
744
745 MAC_POLICY_CHECK(vnode_check_rename_from, cred, dvp, dvp->v_label, vp,
746 vp->v_label, cnp);
747 MAC_CHECK_PROBE4(vnode_check_rename_from, error, cred, dvp, vp, cnp);
748
749 return (error);
750}
751
752MAC_CHECK_PROBE_DEFINE4(vnode_check_rename_to, "struct ucred *",
753 "struct vnode *", "struct vnode *", "struct componentname *");

Callers 1

kern_renameat_macFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected