Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/secmodel/securelevel Create securelevel variable under s...
details: https://anonhg.NetBSD.org/src/rev/b368176e4c98
branches: trunk
changeset: 747811:b368176e4c98
user: elad <elad%NetBSD.org@localhost>
date: Fri Oct 02 20:15:07 2009 +0000
description:
Create securelevel variable under securelevel node.
diffstat:
sys/secmodel/securelevel/secmodel_securelevel.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 7919e6daa931 -r b368176e4c98 sys/secmodel/securelevel/secmodel_securelevel.c
--- a/sys/secmodel/securelevel/secmodel_securelevel.c Fri Oct 02 19:50:37 2009 +0000
+++ b/sys/secmodel/securelevel/secmodel_securelevel.c Fri Oct 02 20:15:07 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: secmodel_securelevel.c,v 1.14 2009/10/02 18:50:14 elad Exp $ */
+/* $NetBSD: secmodel_securelevel.c,v 1.15 2009/10/02 20:15:07 elad Exp $ */
/*-
* Copyright (c) 2006 Elad Efrat <elad%NetBSD.org@localhost>
* All rights reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: secmodel_securelevel.c,v 1.14 2009/10/02 18:50:14 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: secmodel_securelevel.c,v 1.15 2009/10/02 20:15:07 elad Exp $");
#ifdef _KERNEL_OPT
#include "opt_insecure.h"
@@ -118,6 +118,13 @@
NULL, 0, __UNCONST("Traditional NetBSD: Securelevel"), 0,
CTL_CREATE, CTL_EOL);
+ sysctl_createv(clog, 0, &rnode, NULL,
+ CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
+ CTLTYPE_INT, "securelevel",
+ SYSCTL_DESCR("System security level"),
+ secmodel_securelevel_sysctl, 0, NULL, 0,
+ CTL_CREATE, CTL_EOL);
+
/* Compatibility: kern.securelevel */
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT,
Home |
Main Index |
Thread Index |
Old Index