All pastes #751387 Raw Edit

Meins

public text v1 · immutable
#751387 ·published 2007-10-27 10:25 UTC
rendered paste body
diff -upNr initng.orign/src/main.c initng-0.6.10.1/src/main.c
--- initng.orign/src/main.c	2007-03-24 05:12:56.000000000 +0100
+++ initng-0.6.10.1/src/main.c	2007-10-27 12:25:13.000000000 +0200
@@ -414,6 +414,9 @@ int main(int argc, char *argv[], char *e
 	{
 		/*load selinux policy and rexec*/
 #ifdef SELINUX
+		/*we have nothing to do when selinux is disabled*/
+		if(is_selinux_enabled() != 1) goto BOOT;
+
 		FILE *tmp_f;
 		if ((tmp_f = fopen("/selinux/enforce", "r")) != NULL)
 		{