| 623 | #endif |
| 624 | #define mac_vnode_check_write_enabled() __predict_false(mac_vnode_check_write_fp_flag) |
| 625 | static inline int |
| 626 | mac_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, |
| 627 | struct vnode *vp) |
| 628 | { |
| 629 | |
| 630 | mac_vnode_assert_locked(vp, "mac_vnode_check_write"); |
| 631 | if (mac_vnode_check_write_enabled()) |
| 632 | return (mac_vnode_check_write_impl(active_cred, file_cred, vp)); |
| 633 | return (0); |
| 634 | } |
| 635 | |
| 636 | int mac_vnode_check_unlink(struct ucred *cred, struct vnode *dvp, |
| 637 | struct vnode *vp, struct componentname *cnp); |
no test coverage detected