diff options
| author | Jan Kara <jack@ucw.cz> | 2005-03-13 00:25:50 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-13 00:25:50 -0800 |
| commit | 03b734f799ce03d90b3b12b994761d7d21577094 (patch) | |
| tree | 8fa4b5fe45ef1a067bdb99f3bfe88e8e1d9ce511 /kernel | |
| parent | 8599d0a28fb4ab69c13261a63d3a30c596c7d2ef (diff) | |
[PATCH] Allow admin to enable only some of the Magic-Sysrq functions
Allow admin to enable only some of the Magic-Sysrq functions. This allows
admin to disable sysrq functions he considers dangerous (e.g. sending kill
signal, remounting fs RO) while keeping the possibility to use the others
(e.g. debug deadlocks by dumps of processes etc.).
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/power/poweroff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/power/poweroff.c b/kernel/power/poweroff.c index 73cabf6f4781..715081b2d829 100644 --- a/kernel/power/poweroff.c +++ b/kernel/power/poweroff.c @@ -32,7 +32,8 @@ static void handle_poweroff(int key, struct pt_regs *pt_regs, static struct sysrq_key_op sysrq_poweroff_op = { .handler = handle_poweroff, .help_msg = "powerOff", - .action_msg = "Power Off" + .action_msg = "Power Off", + .enable_mask = SYSRQ_ENABLE_BOOT, }; static int pm_sysrq_init(void) |
