rfkill: do not allow userspace to override ALL RADIOS OFF
commit4ca859ac9a74d7d56a093b0694562e40868ad9d2
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 29 Jun 2008 13:50:36 +0000 (29 10:50 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 29 Jun 2008 13:50:36 +0000 (29 10:50 -0300)
treea7d7d953b06d188a690f0f4c9323810f1f4a1f2d
parent0e22dd2dc3d84c10f52c07b12026b9bb226d3a3b
rfkill: do not allow userspace to override ALL RADIOS OFF

SW_RFKILL_ALL is the "emergency power-off all radios" input event.  It must
be handled, and must always do the same thing as far as the rfkill system
is concerned: all transmitters are to go *immediately* offline.

For safety, do NOT allow userspace to override EV_SW SW_RFKILL_ALL OFF.  As
long as rfkill-input is loaded, that event will *always* be processed, and
it will *always* force all rfkill switches to disable all wireless
transmitters, regardless of user_claim attribute or anything else.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
net/rfkill/rfkill-input.c
net/rfkill/rfkill-input.h
net/rfkill/rfkill.c