Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/secmodel/keylock build fix for keylock secmodel(9).
details: https://anonhg.NetBSD.org/src/rev/6200916d007d
branches: trunk
changeset: 771915:6200916d007d
user: jym <jym%NetBSD.org@localhost>
date: Thu Dec 08 11:01:59 2011 +0000
description:
build fix for keylock secmodel(9).
diffstat:
sys/secmodel/keylock/secmodel_keylock.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r d5cc33e3829b -r 6200916d007d sys/secmodel/keylock/secmodel_keylock.c
--- a/sys/secmodel/keylock/secmodel_keylock.c Thu Dec 08 03:34:44 2011 +0000
+++ b/sys/secmodel/keylock/secmodel_keylock.c Thu Dec 08 11:01:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: secmodel_keylock.c,v 1.6 2011/12/04 19:25:00 jym Exp $ */
+/* $NetBSD: secmodel_keylock.c,v 1.7 2011/12/08 11:01:59 jym Exp $ */
/*-
* Copyright (c) 2009 Marc Balmer <marc%msys.ch@localhost>
* Copyright (c) 2006 Elad Efrat <elad%NetBSD.org@localhost>
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: secmodel_keylock.c,v 1.6 2011/12/04 19:25:00 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: secmodel_keylock.c,v 1.7 2011/12/08 11:01:59 jym Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -70,10 +70,13 @@
#include <miscfs/specfs/specdev.h>
+#include <secmodel/secmodel.h>
#include <secmodel/keylock/keylock.h>
static kauth_listener_t l_system, l_process, l_network, l_machdep, l_device;
+static secmodel_t keylock_sm;
+
SYSCTL_SETUP(sysctl_security_keylock_setup,
"sysctl security keylock setup")
{
@@ -142,7 +145,7 @@
kauth_unlisten_scope(l_machdep);
kauth_unlisten_scope(l_device);
- error = secmodel_deregister(&keylock_sm);
+ error = secmodel_deregister(keylock_sm);
if (error != 0)
printf("secmodel_keylock_stop: secmodel_deregister "
"returned %d\n", error);
Home |
Main Index |
Thread Index |
Old Index