Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/net80211 Redo revision 1.69: don't opencode kauth_...



details:   https://anonhg.NetBSD.org/src-all/rev/53b0a2574477
branches:  trunk
changeset: 371063:53b0a2574477
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Thu Sep 23 18:21:43 2021 +0200

description:
Redo revision 1.69: don't opencode kauth_cred_get()

diffstat:

 sys/net80211/ieee80211_ioctl.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8042028075de -r 53b0a2574477 sys/net80211/ieee80211_ioctl.c
--- a/sys/net80211/ieee80211_ioctl.c    Mon Sep 20 16:51:59 2021 +0200
+++ b/sys/net80211/ieee80211_ioctl.c    Thu Sep 23 18:21:43 2021 +0200
@@ -97,7 +97,7 @@
 #define        PRIV_NET80211_GETKEY    KAUTH_REQ_NETWORK_INTERFACE_GETPRIV
 #define        PRIV_NET80211_MANAGE    KAUTH_REQ_NETWORK_INTERFACE_SETPRIV
 #define        ieee80211_priv(CHECK, VAP, CMD) \
-       kauth_authorize_network(curlwp->l_cred,KAUTH_NETWORK_INTERFACE, \
+       kauth_authorize_network(kauth_cred_get(),KAUTH_NETWORK_INTERFACE,       \
        CHECK, (VAP)?(VAP)->iv_ifp:NULL,(void*)CMD, NULL)
 #endif
 



Home | Main Index | Thread Index | Old Index