| 353 | } |
| 354 | |
| 355 | int |
| 356 | mac_vnode_execve_will_transition(struct ucred *old, struct vnode *vp, |
| 357 | struct label *interpvplabel, struct image_params *imgp) |
| 358 | { |
| 359 | int result; |
| 360 | |
| 361 | ASSERT_VOP_LOCKED(vp, "mac_vnode_execve_will_transition"); |
| 362 | |
| 363 | result = 0; |
| 364 | /* No sleeping since the process lock will be held by the caller. */ |
| 365 | MAC_POLICY_BOOLEAN_NOSLEEP(vnode_execve_will_transition, ||, old, vp, |
| 366 | vp->v_label, interpvplabel, imgp, imgp->execlabel); |
| 367 | |
| 368 | return (result); |
| 369 | } |
| 370 | |
| 371 | MAC_CHECK_PROBE_DEFINE3(vnode_check_access, "struct ucred *", |
| 372 | "struct vnode *", "accmode_t"); |