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

Function mac_vnode_check_readlink_impl

freebsd/security/mac/mac_vfs.c:703–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701 "struct vnode *");
702
703int
704mac_vnode_check_readlink_impl(struct ucred *cred, struct vnode *vp)
705{
706 int error;
707
708 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_readlink");
709
710 MAC_POLICY_CHECK(vnode_check_readlink, cred, vp, vp->v_label);
711 MAC_CHECK_PROBE2(vnode_check_readlink, error, cred, vp);
712
713 return (error);
714}
715
716MAC_CHECK_PROBE_DEFINE3(vnode_check_relabel, "struct ucred *",
717 "struct vnode *", "struct label *");

Callers 1

mac_vnode_check_readlinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected