Page MenuHomeFreeBSD

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

Authored by bz on Wed, Sep 23, 10:06 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

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

bz requested review of this revision.Wed, Sep 23, 10:06 PM
This revision is now accepted and ready to land.Thu, Sep 24, 3:00 AM
sys/net80211/ieee80211_freebsd.c
122 ↗(On Diff #77463)

Why 0 here?

bz marked an inline comment as done.Sun, Oct 18, 5:29 PM
bz added inline comments.
sys/net80211/ieee80211_freebsd.c
122 ↗(On Diff #77463)

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.