Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/blacklist/bin Disable routing perms check for now.



details:   https://anonhg.NetBSD.org/src/rev/6f2dc2bfe732
branches:  trunk
changeset: 745795:6f2dc2bfe732
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 12 19:47:32 2020 +0000

description:
Disable routing perms check for now.

diffstat:

 external/bsd/blacklist/bin/conf.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r a4bc2a15f42a -r 6f2dc2bfe732 external/bsd/blacklist/bin/conf.c
--- a/external/bsd/blacklist/bin/conf.c Thu Mar 12 19:36:33 2020 +0000
+++ b/external/bsd/blacklist/bin/conf.c Thu Mar 12 19:47:32 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.29 2020/03/12 19:35:11 christos Exp $       */
+/*     $NetBSD: conf.c,v 1.30 2020/03/12 19:47:32 christos Exp $       */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: conf.c,v 1.29 2020/03/12 19:35:11 christos Exp $");
+__RCSID("$NetBSD: conf.c,v 1.30 2020/03/12 19:47:32 christos Exp $");
 
 #include <stdio.h>
 #ifdef HAVE_LIBUTIL_H
@@ -1005,7 +1005,8 @@
 #ifdef AF_ROUTE
 static int
 conf_route_perm(int fd) {
-#if defined(RTM_IFANNOUNCE) && defined(RT_ROUNDUP)
+/* Disable for now, the access check in the routing socket uses curlwp */
+#if defined(RTM_IFANNOUNCE) && defined(RT_ROUNDUP) && 0
        /*
         * Send a routing message that is not supported to check for access
         * We expect EOPNOTSUPP for having access, since we are sending a



Home | Main Index | Thread Index | Old Index