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

Function mac_vnode_check_stat_impl

freebsd/security/mac/mac_vfs.c:893–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891 "struct vnode *");
892
893int
894mac_vnode_check_stat_impl(struct ucred *active_cred, struct ucred *file_cred,
895 struct vnode *vp)
896{
897 int error;
898
899 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_stat");
900
901 MAC_POLICY_CHECK(vnode_check_stat, active_cred, file_cred, vp,
902 vp->v_label);
903 MAC_CHECK_PROBE3(vnode_check_stat, error, active_cred, file_cred,
904 vp);
905
906 return (error);
907}
908
909MAC_CHECK_PROBE_DEFINE4(vnode_check_unlink, "struct ucred *",
910 "struct vnode *", "struct vnode *", "struct componentname *");

Callers 1

mac_vnode_check_statFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected