]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: factor out the priv(9) checks into OS specifc code.
authorbz <bz@FreeBSD.org>
Sun, 18 Oct 2020 21:34:04 +0000 (21:34 +0000)
committerbz <bz@FreeBSD.org>
Sun, 18 Oct 2020 21:34:04 +0000 (21:34 +0000)
commitf5f73da0c265a691768a71dff1cf3c12e537e76b
tree34835b86a6d4a020c85f3afd1e63bbedfe8ac158
parent9a50431145cc6da068ac931ff2269dbbcb180220
net80211: factor out the priv(9) checks into OS specifc code.

Factor out the priv(9) checks into OS specifc code so other OSes can equally
implement them.  This sorts out those XXX in the net80211 code.
We provide 3 arguments (cmd, vap, ifp) where available to the functions, in
order to allow other OSes to use that data but also in case we'd add auditing
to these check to have the information available. For now the arguments are
marked __unused.

PR: 249403
Reported by: martin(NetBSD)
Reviewed by: adrian, martin(NetBSD)
MFC after: 10 days
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")
Differential Revision: https://reviews.freebsd.org/D26541
sys/net80211/ieee80211_freebsd.c
sys/net80211/ieee80211_freebsd.h
sys/net80211/ieee80211_ioctl.c