| 753 | "struct vnode *", "struct vnode *", "struct componentname *"); |
| 754 | |
| 755 | int |
| 756 | mac_vnode_check_rename_to(struct ucred *cred, struct vnode *dvp, |
| 757 | struct vnode *vp, int samedir, struct componentname *cnp) |
| 758 | { |
| 759 | int error; |
| 760 | |
| 761 | ASSERT_VOP_LOCKED(dvp, "mac_vnode_check_rename_to"); |
| 762 | ASSERT_VOP_LOCKED(vp, "mac_vnode_check_rename_to"); |
| 763 | |
| 764 | MAC_POLICY_CHECK(vnode_check_rename_to, cred, dvp, dvp->v_label, vp, |
| 765 | vp != NULL ? vp->v_label : NULL, samedir, cnp); |
| 766 | MAC_CHECK_PROBE4(vnode_check_rename_to, error, cred, dvp, vp, cnp); |
| 767 | return (error); |
| 768 | } |
| 769 | |
| 770 | MAC_CHECK_PROBE_DEFINE2(vnode_check_revoke, "struct ucred *", |
| 771 | "struct vnode *"); |