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

Function mac_vnode_check_mmap

freebsd/security/mac/mac_framework.h:492–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490#endif
491#define mac_vnode_check_mmap_enabled() __predict_false(mac_vnode_check_mmap_fp_flag)
492static inline int
493mac_vnode_check_mmap(struct ucred *cred, struct vnode *vp, int prot,
494 int flags)
495{
496
497 mac_vnode_assert_locked(vp, "mac_vnode_check_mmap");
498 if (mac_vnode_check_mmap_enabled())
499 return (mac_vnode_check_mmap_impl(cred, vp, prot, flags));
500 return (0);
501}
502
503int mac_vnode_check_open_impl(struct ucred *cred, struct vnode *vp,
504 accmode_t accmode);

Callers 1

vm_mmap_vnodeFunction · 0.85

Calls 2

mac_vnode_assert_lockedFunction · 0.85

Tested by

no test coverage detected