| 490 | #endif |
| 491 | #define mac_vnode_check_mmap_enabled() __predict_false(mac_vnode_check_mmap_fp_flag) |
| 492 | static inline int |
| 493 | mac_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 | |
| 503 | int mac_vnode_check_open_impl(struct ucred *cred, struct vnode *vp, |
| 504 | accmode_t accmode); |
no test coverage detected