[Patch]: SysRQ password protection and such for 2.1.10{7,8pre1}.

Myrdraal (myrdraal@jackalz.dyn.ml.org)
Sun, 28 Jun 1998 15:44:40 -0400


Hi,
I have been pretending that I am a kernel hacker again. The patch attached
will:
* Create /proc/sys/debug/sysrq_enable which allows you to toggle sysrq.
* Create /proc/sys/debug/sysrq_secure which lets you put sysrq in super
secure mode.
* Create /proc/sys/debug/sysrq_password which lets you set the sysrq password
when in secure mode.
Here's how you configure it:
* You can turn sysrq on or off by echoing '1' or '0' to sysrq_enable.
* You can turn super secure mode on or off by echoing '1' or '0' to
sysrq_secure.
* You set the password by echoing it to sysrq_password (Only used in secure
mode.)
Here's how you use it:
* When sysrq_enable is '1' and sysrq_secure is '0' it works exactly the same
as usual.
* When sysrq_secure is '1' and the password is set, you need to authenticate
each time you want to use sysrq. The authentication remains until you use
sysrq for something. When you want to authenticate you:
* Slam alt-sysrq-n,
* _While holding_ alt-sysrq, you type in the password and hit enter (Yes
it's a bit awkward, but how often will you have to do it?)
* Hit alt-sysrq-<whatever command you want to use>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I think with these changes applied that sysrq can be very secure if the
system administrator wants it to bed. And all this without sacrificing
any of the functionality. What do you people out there think of this
patch?
-Myrdraal
-- 
Linux jackalz 2.1.108 #77 Sat Jun 27 00:55:49 EDT 1998 i486
3:30pm  up 1 day, 14:00, 16 users,  load average: 0.00, 0.00, 0.07

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu