[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

going to securelevel=2 directly from boot



I want to force my firwall to go secureleve =2 as soon as init tries going
multi-user. From what I see in init's source, going to level 1 is hard coded
in. what will conceivably break if I were to instead hard code it to '2'?

Yes, I can use rc.securelevel to do a sysctl() just wondering if I can cut out
this step.

Also anyone remember the bit about rc.shutdown and getting it to run the 
machine goes to single user? Well upon reading the source I realized that
I want to code to execute in init.c's single_user() and more specifically 
inside the following IF condition.

if (getsecuritylevel() > 0)
	setsecuritylevel(0);

Am I insane?


Visit your host, monkey.org