Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2002 08:48:29 -0400 (EDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Adam Migus <amigus@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   Re: PERFORCE change 17686 for review
Message-ID:  <Pine.NEB.3.96L.1020919084802.61544C-100000@fledge.watson.org>
In-Reply-To: <200209190051.g8J0peKG030717@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
It would, at some point, be useful to figure out why the sysctl code
panics if you do this, but now is probably not the moment. :-)

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Network Associates Laboratories

On Wed, 18 Sep 2002, Adam Migus wrote:

> http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17686
> 
> Change 17686 by amigus@amigus_caster on 2002/09/18 17:50:40
> 
> 	Fix crash when MAC_DEBUG is undefined.
> 
> Affected files ...
> 
> .. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#270 edit
> 
> Differences ...
> 
> ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#270 (text+ko) ====
> 
> @@ -98,17 +98,6 @@
>  
>  SYSCTL_NODE(_security, OID_AUTO, mac, CTLFLAG_RW, 0,
>      "TrustedBSD MAC policy controls");
> -SYSCTL_NODE(_security_mac, OID_AUTO, debug, CTLFLAG_RW, 0,
> -    "TrustedBSD MAC debug info");
> -SYSCTL_NODE(_security_mac_debug, OID_AUTO, counters, CTLFLAG_RW, 0,
> -    "TrustedBSD MAC object counters");
> -
> -static int	mac_debug_label_fallback = 0;
> -SYSCTL_INT(_security_mac_debug, OID_AUTO, label_fallback, CTLFLAG_RW,
> -    &mac_debug_label_fallback, 0, "Filesystems should fall back to fs label"
> -    "when label is corrupted.");
> -TUNABLE_INT("security.mac.debug_label_fallback",
> -    &mac_debug_label_fallback);
>  
>  #ifndef MAC_MAX_POLICIES
>  #define	MAC_MAX_POLICIES	8
> @@ -178,6 +167,19 @@
>      "copy-on-write semantics, or by removing all write access");
>  
>  #ifdef MAC_DEBUG
> +SYSCTL_NODE(_security_mac, OID_AUTO, debug, CTLFLAG_RW, 0,
> +    "TrustedBSD MAC debug info");
> +
> +static int	mac_debug_label_fallback = 0;
> +SYSCTL_INT(_security_mac_debug, OID_AUTO, label_fallback, CTLFLAG_RW,
> +    &mac_debug_label_fallback, 0, "Filesystems should fall back to fs label"
> +    "when label is corrupted.");
> +TUNABLE_INT("security.mac.debug_label_fallback",
> +    &mac_debug_label_fallback);
> +
> +SYSCTL_NODE(_security_mac_debug, OID_AUTO, counters, CTLFLAG_RW, 0,
> +    "TrustedBSD MAC object counters");
> +
>  static unsigned int nmacmbufs, nmaccreds, nmacifnets, nmacbpfdescs,
>      nmacsockets, nmacmounts, nmactemp, nmacvnodes, nmacdevfsdirents,
>      nmacipqs, nmacpipes, nmacprocs;
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1020919084802.61544C-100000>