diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2002-11-08 18:04:00 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2002-11-08 18:04:00 +0000 |
| commit | 9fa3506ecdd70a18ee49ede6d14bff0a28716ab4 (patch) | |
| tree | 94c9056b7e25038cd9bc0451a0843b3eb2732681 /sys/kern/kern_mac.c | |
| parent | 4afbdabf500ccd90520d8bc21bf3ee40cfcf5345 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_mac.c')
| -rw-r--r-- | sys/kern/kern_mac.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_mac.c b/sys/kern/kern_mac.c index 9f76f050d131..69fa5ad73bce 100644 --- a/sys/kern/kern_mac.c +++ b/sys/kern/kern_mac.c @@ -1307,7 +1307,7 @@ mac_execve_transition(struct ucred *old, struct ucred *new, struct vnode *vp, return; MAC_PERFORM(execve_transition, old, new, vp, &vp->v_label, - interpvnodelabel, imgp); + interpvnodelabel, imgp, imgp->execlabel); } int @@ -1323,7 +1323,7 @@ mac_execve_will_transition(struct ucred *old, struct vnode *vp, result = 0; MAC_BOOLEAN(execve_will_transition, ||, old, vp, &vp->v_label, - interpvnodelabel, imgp); + interpvnodelabel, imgp, imgp->execlabel); return (result); } @@ -1428,7 +1428,8 @@ mac_check_vnode_exec(struct ucred *cred, struct vnode *vp, if (!mac_enforce_process && !mac_enforce_fs) return (0); - MAC_CHECK(check_vnode_exec, cred, vp, &vp->v_label, imgp); + MAC_CHECK(check_vnode_exec, cred, vp, &vp->v_label, imgp, + imgp->execlabel); return (error); } |
