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/6330e7959896
branches:  trunk
changeset: 1025900:6330e7959896
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 d1bfaa3dc3a3 -r 6330e7959896 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