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

Function mac_vnode_check_read_impl

freebsd/security/mac/mac_vfs.c:668–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666 "struct vnode *");
667
668int
669mac_vnode_check_read_impl(struct ucred *active_cred, struct ucred *file_cred,
670 struct vnode *vp)
671{
672 int error;
673
674 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_read");
675
676 MAC_POLICY_CHECK(vnode_check_read, active_cred, file_cred, vp,
677 vp->v_label);
678 MAC_CHECK_PROBE3(vnode_check_read, error, active_cred, file_cred,
679 vp);
680
681 return (error);
682}
683
684MAC_CHECK_PROBE_DEFINE2(vnode_check_readdir, "struct ucred *",
685 "struct vnode *");

Callers 1

mac_vnode_check_readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected