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
Unknown Object (File)
Thu, Mar 28, 8:18 PM
Unknown Object (File)
Feb 7 2024, 5:23 PM
Unknown Object (File)
Jan 12 2024, 6:18 AM
Unknown Object (File)
Jan 10 2024, 1:56 AM
Unknown Object (File)
Nov 8 2023, 12:49 AM
Unknown Object (File)
Oct 30 2023, 6:22 PM
Unknown Object (File)
Oct 6 2023, 11:45 PM
Unknown Object (File)
Sep 2 2023, 5:58 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.