OSDN Git Service

nl80211: Reject disconnect commands except from conn_owner
authorAndrew Zaborowski <andrew.zaborowski@intel.com>
Tue, 22 May 2018 00:46:02 +0000 (02:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 May 2018 09:56:26 +0000 (11:56 +0200)
commitbad2929733635f80f99930b252757c70372356fe
tree34bbc339721e33ed796b4bb9f636ede2da2ff20e
parent232aa23ec354029a58280e79d815ee4746c0bbb2
nl80211: Reject disconnect commands except from conn_owner

Reject NL80211_CMD_DISCONNECT, NL80211_CMD_DISASSOCIATE,
NL80211_CMD_DEAUTHENTICATE and NL80211_CMD_ASSOCIATE commands
from clients other than the connection owner set in the connect,
authenticate or associate commands, if it was set.

The main point of this check is to prevent chaos when two processes
try to use nl80211 at the same time, it's not a security measure.
The same thing should possibly be done for JOIN_IBSS/LEAVE_IBSS and
START_AP/STOP_AP.

Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c