public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* super root shell/mode/api
@ 2009-05-17 13:06 Andrea
  2009-05-17 15:02 ` Andi Kleen
  2009-05-18  9:35 ` Alan Cox
  0 siblings, 2 replies; 12+ messages in thread
From: Andrea @ 2009-05-17 13:06 UTC (permalink / raw)
  To: linux-kernel


Hello!

I'm a C/C++ Open Source Software Developer / SysAdmin.

Excuse my English, it's not my first language.

First thank You for Linux, I'm using it since 1998!

Some days ago I've lost some important data on a Linux
machine, because of an out of memory and swap situation.

When I was coding on c-64 and it crashes I pressed my
Cartridge button and could save what I wanted, execute
code and so on. Some may remember this old school times :)

Now 20 years has passed and a web page can block my whole
machine?!?!?!?

1989 c-64 higher data safety then 2009 Linux?!?!?

I've read the OOM discussion and I know that it's not easy 
to find a perfect solution, but don't implementing any 
solution is the worst solution at all.

I know there is an OOM handling, but the only thing that
happened was the hard disk light flashing for more or less 30 minutes
and I was forced to press the reset button and my data was lost :(

I think it would be simply awesome to have a Linux Kernel mode
similar to the c-64 cartridge concept.

Maybe call it in honor to the c-64 'cartridge freeze mode' or so :)

You hit a button combination and you enter in a Linux Kernel ncurses menu
and/or shell and/or GUI, where you can for example:

save processes, memory e.g. from 0x00000 - 0xFFFFF
protected ssh/telnet access
examine memory dumps
hex editor
assembler/disassembler
statistics
password protected area
anti root-kit/virus tool (the 'cartridge freeze mode' can be loaded from protected memory or even protected media for this case)
anti virus modules
swap out processes that take too much memory
all thinks you can do with SysRq Keys
terminate processes
search for graphics
screen-shots
backup
hibernation
core dumps
top like screen
virtual machines 
grep text in ascii, unicode
continue everything: freeze and defreeze
the shell could be accessible always without freezing everything, like a super root shell/mode/api
you can load user executables/modules for this mode too

That would rock!

Please consider doing something similar!

Thanks for reading!

Regards

Andrea Gedda



      

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: super root shell/mode/api
@ 2009-05-17 17:13 Andrea
  0 siblings, 0 replies; 12+ messages in thread
From: Andrea @ 2009-05-17 17:13 UTC (permalink / raw)
  To: andi; +Cc: linux-kernel


Thanks.

I'll take a look.

In order to be able to dump/terminate viruses, attacks and OOM processes an
admin should have the possibility to *quickly* SIGSTP *all* processes except
vga consoles and to switch from X11 to vga, maybe with SysRq.

Is this possible?

Andrea Gedda


      

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <cCSbU-L3-17@gated-at.bofh.it>]
* Re: super root shell/mode/api
@ 2009-05-19 14:36 Andrea
  2009-05-19 14:54 ` Alan Cox
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Andrea @ 2009-05-19 14:36 UTC (permalink / raw)
  To: 7eggert; +Cc: linux-kernel


> If there is a malware with root privileges, this would be of no use. You are
> 0wned.
> 
> If there is a malware with user privileges, stopping these processes will
> be enough.
> 
> So why bother?

That's exactly the problem a remote attacker or virus
can gain root and you are completely powerless. You want
to save data? The attacker just logs you out before you
can run any command. You can't even backup or save
data! You are owned. Yes.

With this super shell/mode/menu in less then one second, you stop
everything - a global SIGSTP - and gain control over your machine!

You can save all memory, e.g. for controlling what happened 
or data recovery, sigstop without hurry all processes that seems
a problem and so on.

Then when you have saved everything, made a backup of the hdd,
stopped the processes with viruses or too much memory you can
unfreeze the system - a global SIGCONT and it was like stopping
the time. Attackers, viruses, OOM processes are stopped in less
then one second. You can go back to the system whenever you
want. You the console user finally have power. 

The value of such a tool is only evident once you had it.

I can give you a lot of other reasons, but I must work now,
maybe in some days.

Regards.

Andrea Gedda



      

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-05-23 13:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-17 13:06 super root shell/mode/api Andrea
2009-05-17 15:02 ` Andi Kleen
2009-05-18  9:35 ` Alan Cox
2009-05-18 16:12   ` Henrique de Moraes Holschuh
2009-05-20  4:36     ` Willy Tarreau
2009-05-20  6:03       ` Sitsofe Wheeler
  -- strict thread matches above, loose matches on Subject: below --
2009-05-17 17:13 Andrea
     [not found] <cCSbU-L3-17@gated-at.bofh.it>
2009-05-18 22:56 ` Bodo Eggert
2009-05-19 14:36 Andrea
2009-05-19 14:54 ` Alan Cox
2009-05-23 13:23 ` Bodo Eggert
2009-05-23 13:50 ` Joao Correia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox