summaryrefslogtreecommitdiffstats
path: root/net/rfkill/rfkill-input.h
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh2008-06-23 22:23:07 +0200
committerJohn W. Linville2008-06-26 20:21:22 +0200
commit4081f00dc45abce6bdac352a6354c07ce15db45b (patch)
tree5c1c239eb0e0cfdedf9fdfd0d82bf36c03bfdd99 /net/rfkill/rfkill-input.h
parentrfkill: drop current_state from tasks in rfkill-input (diff)
downloadkernel-qcow2-linux-4081f00dc45abce6bdac352a6354c07ce15db45b.tar.gz
kernel-qcow2-linux-4081f00dc45abce6bdac352a6354c07ce15db45b.tar.xz
kernel-qcow2-linux-4081f00dc45abce6bdac352a6354c07ce15db45b.zip
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> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Cc: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/rfkill/rfkill-input.h')
-rw-r--r--net/rfkill/rfkill-input.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rfkill/rfkill-input.h b/net/rfkill/rfkill-input.h
index 4dae5006fc77..f63d05045685 100644
--- a/net/rfkill/rfkill-input.h
+++ b/net/rfkill/rfkill-input.h
@@ -12,5 +12,6 @@
#define __RFKILL_INPUT_H
void rfkill_switch_all(enum rfkill_type type, enum rfkill_state state);
+void rfkill_epo(void);
#endif /* __RFKILL_INPUT_H */