From a37f8a381395d76af80ea5de58b74a03b74e2b1a Mon Sep 17 00:00:00 2001 From: elad Date: Wed, 10 Jan 2007 11:20:20 +0000 Subject: [PATCH] Make 'securelevel' internal to the secmodel. --- sys/secmodel/bsd44/secmodel_bsd44_securelevel.c | 6 +++--- sys/sys/systm.h | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/secmodel/bsd44/secmodel_bsd44_securelevel.c b/sys/secmodel/bsd44/secmodel_bsd44_securelevel.c index a867ea5fea7d..05e4d76af609 100644 --- a/sys/secmodel/bsd44/secmodel_bsd44_securelevel.c +++ b/sys/secmodel/bsd44/secmodel_bsd44_securelevel.c @@ -1,4 +1,4 @@ -/* $NetBSD: secmodel_bsd44_securelevel.c,v 1.28 2007/01/09 12:57:56 elad Exp $ */ +/* $NetBSD: secmodel_bsd44_securelevel.c,v 1.29 2007/01/10 11:20:21 elad Exp $ */ /*- * Copyright (c) 2006 Elad Efrat * All rights reserved. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: secmodel_bsd44_securelevel.c,v 1.28 2007/01/09 12:57:56 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: secmodel_bsd44_securelevel.c,v 1.29 2007/01/10 11:20:21 elad Exp $"); #ifdef _KERNEL_OPT #include "opt_insecure.h" @@ -54,7 +54,7 @@ __KERNEL_RCSID(0, "$NetBSD: secmodel_bsd44_securelevel.c,v 1.28 2007/01/09 12:57 #include -int securelevel; +static int securelevel; static kauth_listener_t l_system, l_process, l_network, l_machdep, l_device; diff --git a/sys/sys/systm.h b/sys/sys/systm.h index ed9d8df0d035..c888ab33fcbe 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -1,4 +1,4 @@ -/* $NetBSD: systm.h,v 1.191 2006/12/31 10:35:53 elad Exp $ */ +/* $NetBSD: systm.h,v 1.192 2007/01/10 11:20:20 elad Exp $ */ /*- * Copyright (c) 1982, 1988, 1991, 1993 @@ -61,7 +61,6 @@ struct uio; struct vnode; struct vmspace; -extern int securelevel; /* system security level */ extern const char *panicstr; /* panic message */ extern int doing_shutdown; /* shutting down */