Page MenuHomeFreeBSD

net80211: factor out the priv(9) checks into OS specifc code.
ClosedPublic

Authored by bz on Sep 23 2020, 10:06 PM.
Tags
None
Referenced Files
F105956751: D26541.diff
Mon, Dec 23, 2:34 AM
Unknown Object (File)
Wed, Dec 18, 2:04 PM
Unknown Object (File)
Wed, Dec 4, 4:19 PM
Unknown Object (File)
Oct 27 2024, 10:13 PM
Unknown Object (File)
Oct 12 2024, 10:32 AM
Unknown Object (File)
Oct 5 2024, 2:06 AM
Unknown Object (File)
Oct 4 2024, 7:37 PM
Unknown Object (File)
Oct 3 2024, 12:09 PM

Details

Summary

Factor out the priv(9) checks into OS specifc code so other OSes can equally
implement them.
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.
NetBSD might want to pass in cmd, ic, ifp.

PR:		249403
Sponsored by:	Rubicon Communications, LLC (d/b/a "Netgate")

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33786
Build 31003: arc lint + arc unit

Event Timeline

bz requested review of this revision.Sep 23 2020, 10:06 PM
This revision is now accepted and ready to land.Sep 24 2020, 3:00 AM
sys/net80211/ieee80211_freebsd.c
122

Why 0 here?

bz marked an inline comment as done.Oct 18 2020, 5:29 PM
bz added inline comments.
sys/net80211/ieee80211_freebsd.c
122

Because we don't have an ioctl cmd here anymore (others might have/need in their code).

This revision was automatically updated to reflect the committed changes.
bz marked an inline comment as done.