Module Name: src
Committed By: christos
Date: Tue Sep 21 14:59:14 UTC 2021
Modified Files:
src/sys/net: if_gre.c
Log Message:
don't opencode kauth_cred_get()
To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 src/sys/net/if_gre.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_gre.c
diff -u src/sys/net/if_gre.c:1.180 src/sys/net/if_gre.c:1.181
--- src/sys/net/if_gre.c:1.180 Sun Feb 14 14:33:29 2021
+++ src/sys/net/if_gre.c Tue Sep 21 10:59:14 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gre.c,v 1.180 2021/02/14 19:33:29 roy Exp $ */
+/* $NetBSD: if_gre.c,v 1.181 2021/09/21 14:59:14 christos Exp $ */
/*
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_gre.c,v 1.180 2021/02/14 19:33:29 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gre.c,v 1.181 2021/09/21 14:59:14 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_atalk.h"
@@ -1195,7 +1195,7 @@ gre_ioctl(struct ifnet *ifp, const u_lon
case GRESADDRS:
case GRESSOCK:
case GREDSOCK:
- if (kauth_authorize_network(curlwp->l_cred,
+ if (kauth_authorize_network(kauth_cred_get(),
KAUTH_NETWORK_INTERFACE,
KAUTH_REQ_NETWORK_INTERFACE_SETPRIV, ifp, (void *)cmd,
NULL) != 0)