Module Name: src
Committed By: christos
Date: Tue Sep 21 15:06:21 UTC 2021
Modified Files:
src/sys/netinet6: in6.c
Log Message:
don't opencode kauth_cred_get()
To generate a diff of this commit:
cvs rdiff -u -r1.282 -r1.283 src/sys/netinet6/in6.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/netinet6/in6.c
diff -u src/sys/netinet6/in6.c:1.282 src/sys/netinet6/in6.c:1.283
--- src/sys/netinet6/in6.c:1.282 Tue Sep 29 15:33:36 2020
+++ src/sys/netinet6/in6.c Tue Sep 21 11:06:21 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.282 2020/09/29 19:33:36 roy Exp $ */
+/* $NetBSD: in6.c,v 1.283 2021/09/21 15:06:21 christos Exp $ */
/* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.282 2020/09/29 19:33:36 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.283 2021/09/21 15:06:21 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -757,7 +757,7 @@ in6_control(struct socket *so, u_long cm
case SIOCAADDRCTL_POLICY:
case SIOCDADDRCTL_POLICY:
- if (kauth_authorize_network(curlwp->l_cred,
+ if (kauth_authorize_network(kauth_cred_get(),
KAUTH_NETWORK_SOCKET,
KAUTH_REQ_NETWORK_SOCKET_SETPRIV,
so, NULL, NULL))