From 2bf6c7c405b1b49a3304e846700303938d8dc782 Mon Sep 17 00:00:00 2001 From: elad Date: Sat, 3 Oct 2009 02:22:22 +0000 Subject: [PATCH] We only care about KAUTH_NETWORK_ROUTE. --- sys/net/route.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/net/route.c b/sys/net/route.c index 71d575863a70..91b193631b9b 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -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 -__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 #include @@ -273,6 +273,9 @@ route_listener_cb(kauth_cred_t cred, kauth_action_t action, void *cookie, result = KAUTH_RESULT_DEFER; rtm = arg1; + if (action != KAUTH_NETWORK_ROUTE) + return result; + if (rtm->rtm_type == RTM_GET) result = KAUTH_RESULT_ALLOW;