| 115 | "struct vnode *"); |
| 116 | |
| 117 | int |
| 118 | mac_system_check_auditctl(struct ucred *cred, struct vnode *vp) |
| 119 | { |
| 120 | int error; |
| 121 | struct label *vl; |
| 122 | |
| 123 | ASSERT_VOP_LOCKED(vp, "mac_system_check_auditctl"); |
| 124 | |
| 125 | vl = (vp != NULL) ? vp->v_label : NULL; |
| 126 | MAC_POLICY_CHECK(system_check_auditctl, cred, vp, vl); |
| 127 | MAC_CHECK_PROBE2(system_check_auditctl, error, cred, vp); |
| 128 | |
| 129 | return (error); |
| 130 | } |
| 131 | |
| 132 | MAC_CHECK_PROBE_DEFINE2(system_check_auditon, "struct ucred *", "int"); |
| 133 |