diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2002-10-30 17:56:57 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2002-10-30 17:56:57 +0000 |
| commit | b914de36c0be97b198fb7ae76c0013933a3c5c9c (patch) | |
| tree | 28dc5ac7a288e9d5b8d25e23b9c642940599a61c /sys/kern/kern_mac.c | |
| parent | 47a67661058a36c7afda55840bce6efb001bc399 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_mac.c')
| -rw-r--r-- | sys/kern/kern_mac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_mac.c b/sys/kern/kern_mac.c index bb2e3ef78b4c..5c3da06b452b 100644 --- a/sys/kern/kern_mac.c +++ b/sys/kern/kern_mac.c @@ -1864,7 +1864,7 @@ mac_execve_will_transition(struct ucred *old, struct vnode *vp) } int -mac_check_vnode_access(struct ucred *cred, struct vnode *vp, int flags) +mac_check_vnode_access(struct ucred *cred, struct vnode *vp, int acc_mode) { int error; @@ -1873,7 +1873,7 @@ mac_check_vnode_access(struct ucred *cred, struct vnode *vp, int flags) if (!mac_enforce_fs) return (0); - MAC_CHECK(check_vnode_access, cred, vp, &vp->v_label, flags); + MAC_CHECK(check_vnode_access, cred, vp, &vp->v_label, acc_mode); return (error); } @@ -2074,7 +2074,7 @@ mac_check_vnode_mprotect(struct ucred *cred, struct vnode *vp, int prot) } int -mac_check_vnode_open(struct ucred *cred, struct vnode *vp, mode_t acc_mode) +mac_check_vnode_open(struct ucred *cred, struct vnode *vp, int acc_mode) { int error; |
