netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] wireless: Allow wiphy/hwsim management from user namespaces
@ 2016-05-09 16:33 Martin Willi
       [not found] ` <1462811639-29906-1-git-send-email-martin-jzJueiEJWxp8fCCB1iTX4w@public.gmane.org>
  2016-05-12  9:27 ` [PATCH v2 0/2] wireless: Allow wiphy/hwsim management from user namespaces Johannes Berg
  0 siblings, 2 replies; 5+ messages in thread
From: Martin Willi @ 2016-05-09 16:33 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, netdev

This patch set enables user namespaces having CAP_NET_ADMIN to manage
wiphy devices and create/destroy hwsim radios.

The first patch allows a caller from a non-initial user namespace to run
privileged nl80211 phy/dev operations. The second patch enables hwsim
radio management over Netlink from such namespaces. Together, with these
patches an unprivileged test environment can create user/network
namespaces and set up abitrary simulated wireless networks.

Changes from v1:
  * Use a simple counter in hwsim to assign netgroups to net namespaces.
  * Store hwsim net_generic() data in a struct, add accessors.
  * On namespace exit, do not destroy hwsim radios originally created in
    the initial network namespace.

Martin Willi (2):
  nl80211: Allow privileged operations from user namespaces
  mac80211_hwsim: Allow managing radios from non-initial namespaces

 drivers/net/wireless/mac80211_hwsim.c |  97 +++++++++++++++++++++-
 net/wireless/nl80211.c                | 150 +++++++++++++++++-----------------
 2 files changed, 169 insertions(+), 78 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-13 10:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-09 16:33 [PATCH v2 0/2] wireless: Allow wiphy/hwsim management from user namespaces Martin Willi
     [not found] ` <1462811639-29906-1-git-send-email-martin-jzJueiEJWxp8fCCB1iTX4w@public.gmane.org>
2016-05-09 16:33   ` [PATCH v2 1/2] nl80211: Allow privileged operations " Martin Willi
2016-05-09 16:33   ` [PATCH v2 2/2] mac80211_hwsim: Allow managing radios from non-initial namespaces Martin Willi
2016-05-12  9:27 ` [PATCH v2 0/2] wireless: Allow wiphy/hwsim management from user namespaces Johannes Berg
2016-05-13 10:37   ` Martin Willi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).