diff --git a/sys/secmodel/bsd44/secmodel_bsd44.c b/sys/secmodel/bsd44/secmodel_bsd44.c index 32e425bf66e4..e27465d1f381 100644 --- a/sys/secmodel/bsd44/secmodel_bsd44.c +++ b/sys/secmodel/bsd44/secmodel_bsd44.c @@ -1,4 +1,4 @@ -/* $NetBSD: secmodel_bsd44.c,v 1.9 2007/01/16 00:11:39 elad Exp $ */ +/* $NetBSD: secmodel_bsd44.c,v 1.10 2007/01/16 11:53:00 elad Exp $ */ /*- * Copyright (c) 2006 Elad Efrat * All rights reserved. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: secmodel_bsd44.c,v 1.9 2007/01/16 00:11:39 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: secmodel_bsd44.c,v 1.10 2007/01/16 11:53:00 elad Exp $"); #include #include @@ -101,6 +101,8 @@ secmodel_bsd44_start(void) secmodel_bsd44_suser_start(); secmodel_bsd44_securelevel_start(); + + secmodel_register(); } #if defined(_LKM) @@ -109,6 +111,8 @@ secmodel_bsd44_stop(void) { secmodel_bsd44_suser_stop(); secmodel_bsd44_securelevel_stop(); + + secmodel_deregister(); } #endif /* _LKM */ diff --git a/sys/secmodel/overlay/secmodel_overlay.c b/sys/secmodel/overlay/secmodel_overlay.c index 31ea9cda6d1f..7a707343ee55 100644 --- a/sys/secmodel/overlay/secmodel_overlay.c +++ b/sys/secmodel/overlay/secmodel_overlay.c @@ -1,4 +1,4 @@ -/* $NetBSD: secmodel_overlay.c,v 1.7 2007/01/16 00:11:39 elad Exp $ */ +/* $NetBSD: secmodel_overlay.c,v 1.8 2007/01/16 11:53:00 elad Exp $ */ /*- * Copyright (c) 2006 Elad Efrat * All rights reserved. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: secmodel_overlay.c,v 1.7 2007/01/16 00:11:39 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: secmodel_overlay.c,v 1.8 2007/01/16 11:53:00 elad Exp $"); #include #include @@ -184,6 +184,8 @@ secmodel_overlay_start(void) secmodel_overlay_machdep_cb, NULL); kauth_listen_scope(KAUTH_SCOPE_DEVICE, secmodel_overlay_device_cb, NULL); + + secmodel_register(); } void