| 219 | "struct sysctl_oid *", "struct sysctl_req *"); |
| 220 | |
| 221 | int |
| 222 | mac_system_check_sysctl(struct ucred *cred, struct sysctl_oid *oidp, |
| 223 | void *arg1, int arg2, struct sysctl_req *req) |
| 224 | { |
| 225 | int error; |
| 226 | |
| 227 | /* |
| 228 | * XXXMAC: We would very much like to assert the SYSCTL_LOCK here, |
| 229 | * but since it's not exported from kern_sysctl.c, we can't. |
| 230 | */ |
| 231 | MAC_POLICY_CHECK_NOSLEEP(system_check_sysctl, cred, oidp, arg1, arg2, |
| 232 | req); |
| 233 | MAC_CHECK_PROBE3(system_check_sysctl, error, cred, oidp, req); |
| 234 | |
| 235 | return (error); |
| 236 | } |