Re: [PATCH v2 0/2] wireless: Allow wiphy/hwsim management from user namespaces

2016-05-13 Thread Martin Willi
Hi Johannes, > So I think you should change the "wmediumd_portid" variable to live > in struct hwsim_net and then allow HWSIM_CMD_REGISTER to be done > inside the net namespace. > > With that, and making the other few wmediumd related operations > namespace aware, we would be able to run wmediumd

Re: [PATCH v2 0/2] wireless: Allow wiphy/hwsim management from user namespaces

2016-05-12 Thread Johannes Berg
Hi Martin, Thanks for the update. I've applied your patch now, but I think we need to do some work around the wmediumd abstraction. Right now, you allowed HWSIM_CMD_REGISTER only from init_net, which is mostly fine. However, it means that a wmediumd running in init_net will see frames from the

[PATCH v2 0/2] wireless: Allow wiphy/hwsim management from user namespaces

2016-05-09 Thread Martin Willi
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 suc