My problem with your approach is the following:
How do you define `root' ?
Let's say I get into a situation where freespace <= rootspace. That means that
non-root processes will not be able to get any further pages (if they're lucky,
they'll get malloc=NULL, else they'll just be killed). Fine.
But now comes a process owned by root. What do you do ? This process might be
a getty+sh+ps+kill to clean things up as you hope, but it might also be
sendmail responding to a new connection (or any other root-owned process).
How do you tell one from the other ?
Stefan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/