summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_stub
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_stub
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_stub')
-rw-r--r--sys/security/mac_stub/mac_stub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c
index 4bcf21f..3eef294 100644
--- a/sys/security/mac_stub/mac_stub.c
+++ b/sys/security/mac_stub/mac_stub.c
@@ -641,7 +641,7 @@ mac_none_check_system_sysctl(struct ucred *cred, int *name, u_int namelen,
static int
mac_none_check_vnode_access(struct ucred *cred, struct vnode *vp,
- struct label *label, mode_t flags)
+ struct label *label, int acc_mode)
{
return (0);
@@ -747,7 +747,7 @@ mac_none_check_vnode_mprotect(struct ucred *cred, struct vnode *vp,
static int
mac_none_check_vnode_open(struct ucred *cred, struct vnode *vp,
- struct label *filelabel, mode_t acc_mode)
+ struct label *filelabel, int acc_mode)
{
return (0);
OpenPOWER on IntegriCloud