In linux, compiling and running the following program as a normal user
crashes the system. I was wondering how to limit the amount of RAM each
person has access to, or setting aside a certain amount or RAM to root.
/* Crashes a linux box by eating up all ram */
malloc(1); /* Allocate 1 byte of memory */
It might also be alloc, I'm not sure which is for Linux. This will make
the system unsuable until you do a hard reboot with the power switch.