diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-10-30 17:56:57 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-10-30 17:56:57 +0000 |
commit | 27e2336a32675b2cd36865c86a1d9fb1c8259586 (patch) | |
tree | 28dc5ac7a288e9d5b8d25e23b9c642940599a61c /sys/security/mac_none | |
parent | 6fdca8338e43b711db64d55811c025e999e87299 (diff) | |
download | FreeBSD-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_none')
-rw-r--r-- | sys/security/mac_none/mac_none.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/mac_none/mac_none.c b/sys/security/mac_none/mac_none.c index 4bcf21f..3eef294 100644 --- a/sys/security/mac_none/mac_none.c +++ b/sys/security/mac_none/mac_none.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); |