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

Function mac_vnode_check_relabel

freebsd/security/mac/mac_vfs.c:719–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717 "struct vnode *", "struct label *");
718
719static int
720mac_vnode_check_relabel(struct ucred *cred, struct vnode *vp,
721 struct label *newlabel)
722{
723 int error;
724
725 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_relabel");
726
727 MAC_POLICY_CHECK(vnode_check_relabel, cred, vp, vp->v_label, newlabel);
728 MAC_CHECK_PROBE3(vnode_check_relabel, error, cred, vp, newlabel);
729
730 return (error);
731}
732
733MAC_CHECK_PROBE_DEFINE4(vnode_check_rename_from, "struct ucred *",
734 "struct vnode *", "struct vnode *", "struct componentname *");

Callers 1

vn_setlabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected