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

Function mac_vnode_check_rename_to

freebsd/security/mac/mac_vfs.c:755–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753 "struct vnode *", "struct vnode *", "struct componentname *");
754
755int
756mac_vnode_check_rename_to(struct ucred *cred, struct vnode *dvp,
757 struct vnode *vp, int samedir, struct componentname *cnp)
758{
759 int error;
760
761 ASSERT_VOP_LOCKED(dvp, "mac_vnode_check_rename_to");
762 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_rename_to");
763
764 MAC_POLICY_CHECK(vnode_check_rename_to, cred, dvp, dvp->v_label, vp,
765 vp != NULL ? vp->v_label : NULL, samedir, cnp);
766 MAC_CHECK_PROBE4(vnode_check_rename_to, error, cred, dvp, vp, cnp);
767 return (error);
768}
769
770MAC_CHECK_PROBE_DEFINE2(vnode_check_revoke, "struct ucred *",
771 "struct vnode *");

Callers 1

vfs_syscalls.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected