Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/secmodel KAUTH_MACHDEP_SVS_DISABLE is deprecated.



details:   https://anonhg.NetBSD.org/src/rev/f52311260d8f
branches:  trunk
changeset: 932587:f52311260d8f
user:      alnsn <alnsn%NetBSD.org@localhost>
date:      Mon May 11 19:36:39 2020 +0000

description:
KAUTH_MACHDEP_SVS_DISABLE is deprecated.

sysctl machdep.svs.enabled can't be changed anymore
at runtime because it's now a boot option.

diffstat:

 sys/secmodel/securelevel/secmodel_securelevel.c |  5 +++--
 sys/secmodel/suser/secmodel_suser.c             |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r 64b422cb2362 -r f52311260d8f sys/secmodel/securelevel/secmodel_securelevel.c
--- a/sys/secmodel/securelevel/secmodel_securelevel.c   Mon May 11 19:17:46 2020 +0000
+++ b/sys/secmodel/securelevel/secmodel_securelevel.c   Mon May 11 19:36:39 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: secmodel_securelevel.c,v 1.34 2020/03/16 21:20:12 pgoyette Exp $ */
+/* $NetBSD: secmodel_securelevel.c,v 1.35 2020/05/11 19:36:39 alnsn 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.34 2020/03/16 21:20:12 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: secmodel_securelevel.c,v 1.35 2020/05/11 19:36:39 alnsn Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_insecure.h"
@@ -480,6 +480,7 @@
                break;
 
        case KAUTH_MACHDEP_SVS_DISABLE:
+               /* Deprecated. */
                if (securelevel > 0)
                        result = KAUTH_RESULT_DENY;
                break;
diff -r 64b422cb2362 -r f52311260d8f sys/secmodel/suser/secmodel_suser.c
--- a/sys/secmodel/suser/secmodel_suser.c       Mon May 11 19:17:46 2020 +0000
+++ b/sys/secmodel/suser/secmodel_suser.c       Mon May 11 19:36:39 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: secmodel_suser.c,v 1.52 2020/03/16 21:20:12 pgoyette Exp $ */
+/* $NetBSD: secmodel_suser.c,v 1.53 2020/05/11 19:36:40 alnsn Exp $ */
 /*-
  * Copyright (c) 2006 Elad Efrat <elad%NetBSD.org@localhost>
  * All rights reserved.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: secmodel_suser.c,v 1.52 2020/03/16 21:20:12 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: secmodel_suser.c,v 1.53 2020/05/11 19:36:40 alnsn Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -847,6 +847,7 @@
        case KAUTH_MACHDEP_UNMANAGEDMEM:
        case KAUTH_MACHDEP_PXG:
        case KAUTH_MACHDEP_SVS_DISABLE:
+               /* Deprecated. */
                if (isroot)
                        result = KAUTH_RESULT_ALLOW;
                break;



Home | Main Index | Thread Index | Old Index