Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys more strip(4) removal, this time in kauth(9)
details: https://anonhg.NetBSD.org/src/rev/b108a7865cb1
branches: trunk
changeset: 372925:b108a7865cb1
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Jan 05 17:36:53 2023 +0000
description:
more strip(4) removal, this time in kauth(9)
diffstat:
share/examples/secmodel/secmodel_example.c | 13 ++-----------
sys/secmodel/suser/secmodel_suser.c | 17 ++---------------
sys/sys/kauth.h | 6 +++---
3 files changed, 7 insertions(+), 29 deletions(-)
diffs (99 lines):
diff -r 913de058392f -r b108a7865cb1 share/examples/secmodel/secmodel_example.c
--- a/share/examples/secmodel/secmodel_example.c Thu Jan 05 15:13:57 2023 +0000
+++ b/share/examples/secmodel/secmodel_example.c Thu Jan 05 17:36:53 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: secmodel_example.c,v 1.28 2018/08/25 09:54:37 maxv Exp $ */
+/* $NetBSD: secmodel_example.c,v 1.29 2023/01/05 17:36:53 jakllsch Exp $ */
/*
* This file is placed in the public domain.
@@ -13,7 +13,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: secmodel_example.c,v 1.28 2018/08/25 09:54:37 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: secmodel_example.c,v 1.29 2023/01/05 17:36:53 jakllsch Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -515,15 +515,6 @@
}
break;
- case KAUTH_NETWORK_INTERFACE_STRIP:
- switch ((u_long)arg0) {
- case KAUTH_REQ_NETWORK_INTERFACE_STRIP_ADD:
- default:
- result = KAUTH_RESULT_DEFER;
- break;
- }
- break;
-
case KAUTH_NETWORK_ROUTE:
break;
diff -r 913de058392f -r b108a7865cb1 sys/secmodel/suser/secmodel_suser.c
--- a/sys/secmodel/suser/secmodel_suser.c Thu Jan 05 15:13:57 2023 +0000
+++ b/sys/secmodel/suser/secmodel_suser.c Thu Jan 05 17:36:53 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: secmodel_suser.c,v 1.55 2020/09/08 14:12:57 christos Exp $ */
+/* $NetBSD: secmodel_suser.c,v 1.56 2023/01/05 17:36:53 jakllsch 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.55 2020/09/08 14:12:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: secmodel_suser.c,v 1.56 2023/01/05 17:36:53 jakllsch Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -700,19 +700,6 @@
break;
- case KAUTH_NETWORK_INTERFACE_STRIP:
- switch (req) {
- case KAUTH_REQ_NETWORK_INTERFACE_STRIP_ADD:
- if (isroot)
- result = KAUTH_RESULT_ALLOW;
- break;
-
- default:
- break;
- }
-
- break;
-
case KAUTH_NETWORK_INTERFACE_TUN:
switch (req) {
case KAUTH_REQ_NETWORK_INTERFACE_TUN_ADD:
diff -r 913de058392f -r b108a7865cb1 sys/sys/kauth.h
--- a/sys/sys/kauth.h Thu Jan 05 15:13:57 2023 +0000
+++ b/sys/sys/kauth.h Thu Jan 05 17:36:53 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kauth.h,v 1.87 2022/03/27 16:16:39 christos Exp $ */
+/* $NetBSD: kauth.h,v 1.88 2023/01/05 17:36:53 jakllsch Exp $ */
/*-
* Copyright (c) 2005, 2006 Elad Efrat <elad%NetBSD.org@localhost>
@@ -256,7 +256,7 @@
KAUTH_NETWORK_SOCKET,
KAUTH_NETWORK_INTERFACE_PPP,
KAUTH_NETWORK_INTERFACE_SLIP,
- KAUTH_NETWORK_INTERFACE_STRIP,
+ KAUTH_NETWORK_INTERFACE_STRIP, /* obsolete */
KAUTH_NETWORK_INTERFACE_TUN,
KAUTH_NETWORK_INTERFACE_BRIDGE,
KAUTH_NETWORK_IPSEC,
@@ -298,7 +298,7 @@
KAUTH_REQ_NETWORK_SOCKET_SETPRIV,
KAUTH_REQ_NETWORK_INTERFACE_PPP_ADD,
KAUTH_REQ_NETWORK_INTERFACE_SLIP_ADD,
- KAUTH_REQ_NETWORK_INTERFACE_STRIP_ADD,
+ KAUTH_REQ_NETWORK_INTERFACE_STRIP_ADD, /* obsolete */
KAUTH_REQ_NETWORK_INTERFACE_TUN_ADD,
KAUTH_REQ_NETWORK_IPV6_HOPBYHOP,
KAUTH_REQ_NETWORK_INTERFACE_BRIDGE_GETPRIV,
Home |
Main Index |
Thread Index |
Old Index