summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_biba
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-10-30 17:56:57 +0000
committerrwatson <rwatson@FreeBSD.org>2002-10-30 17:56:57 +0000
commit27e2336a32675b2cd36865c86a1d9fb1c8259586 (patch)
tree28dc5ac7a288e9d5b8d25e23b9c642940599a61c /sys/security/mac_biba
parent6fdca8338e43b711db64d55811c025e999e87299 (diff)
downloadFreeBSD-src-27e2336a32675b2cd36865c86a1d9fb1c8259586.zip
FreeBSD-src-27e2336a32675b2cd36865c86a1d9fb1c8259586.tar.gz
While 'mode_t' seemed like a good idea for the access mode argument for
MAC access() and open() checks, the argument actually has an int type where it becomes available. Switch to using 'int' for the mode argument throughout the MAC Framework and policy modules. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security/mac_biba')
-rw-r--r--sys/security/mac_biba/mac_biba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c
index b57adfe..97de18a 100644
--- a/sys/security/mac_biba/mac_biba.c
+++ b/sys/security/mac_biba/mac_biba.c
@@ -2147,7 +2147,7 @@ mac_biba_check_vnode_mmap(struct ucred *cred, struct vnode *vp,
static int
mac_biba_check_vnode_open(struct ucred *cred, struct vnode *vp,
- struct label *vnodelabel, mode_t acc_mode)
+ struct label *vnodelabel, int acc_mode)
{
struct mac_biba *subj, *obj;
OpenPOWER on IntegriCloud