Source-Changes-HG archive

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

[src/trunk]: src/sys/net We only care about KAUTH_NETWORK_ROUTE.



details:   https://anonhg.NetBSD.org/src/rev/86e56c26796c
branches:  trunk
changeset: 747847:86e56c26796c
user:      elad <elad%NetBSD.org@localhost>
date:      Sat Oct 03 02:22:22 2009 +0000

description:
We only care about KAUTH_NETWORK_ROUTE.

diffstat:

 sys/net/route.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 1868e4c2b201 -r 86e56c26796c sys/net/route.c
--- a/sys/net/route.c   Sat Oct 03 02:06:11 2009 +0000
+++ b/sys/net/route.c   Sat Oct 03 02:22:22 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.119 2009/10/02 23:16:21 elad Exp $ */
+/*     $NetBSD: route.c,v 1.120 2009/10/03 02:22:22 elad Exp $ */
 
 /*-
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -93,7 +93,7 @@
 #include "opt_route.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.119 2009/10/02 23:16:21 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.120 2009/10/03 02:22:22 elad Exp $");
 
 #include <sys/param.h>
 #include <sys/sysctl.h>
@@ -273,6 +273,9 @@
        result = KAUTH_RESULT_DEFER;
        rtm = arg1;
 
+       if (action != KAUTH_NETWORK_ROUTE)
+               return result;
+
        if (rtm->rtm_type == RTM_GET)
                result = KAUTH_RESULT_ALLOW;
 



Home | Main Index | Thread Index | Old Index