From 9453a033ff789531fb2c3a78d4c2d377c56d0461 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Wed, 31 Jul 2002 00:03:26 +0000 Subject: [PATCH] Reduce the memory footprint of MAC in the base system by halving the number of policy slots to 4. (Having run a quick errand, time to start on phase 2 of the MAC integration) Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs --- sys/security/mac/mac_framework.h | 2 +- sys/sys/mac.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/security/mac/mac_framework.h b/sys/security/mac/mac_framework.h index 7ea1fe13d6f..05aa0a9e9aa 100644 --- a/sys/security/mac/mac_framework.h +++ b/sys/security/mac/mac_framework.h @@ -184,7 +184,7 @@ int __mac_set_proc(struct mac *_mac_p); * and various other messes. */ -#define MAC_MAX_POLICIES 8 +#define MAC_MAX_POLICIES 4 struct label { int l_flags; diff --git a/sys/sys/mac.h b/sys/sys/mac.h index 7ea1fe13d6f..05aa0a9e9aa 100644 --- a/sys/sys/mac.h +++ b/sys/sys/mac.h @@ -184,7 +184,7 @@ int __mac_set_proc(struct mac *_mac_p); * and various other messes. */ -#define MAC_MAX_POLICIES 8 +#define MAC_MAX_POLICIES 4 struct label { int l_flags;