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

Function mac_vnode_check_mmap_impl

freebsd/security/mac/mac_vfs.c:586–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584 "int", "int");
585
586int
587mac_vnode_check_mmap_impl(struct ucred *cred, struct vnode *vp, int prot,
588 int flags)
589{
590 int error;
591
592 ASSERT_VOP_LOCKED(vp, "mac_vnode_check_mmap");
593
594 MAC_POLICY_CHECK(vnode_check_mmap, cred, vp, vp->v_label, prot, flags);
595 MAC_CHECK_PROBE4(vnode_check_mmap, error, cred, vp, prot, flags);
596
597 return (error);
598}
599
600void
601mac_vnode_check_mmap_downgrade(struct ucred *cred, struct vnode *vp,

Callers 1

mac_vnode_check_mmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected