[PATCH]: chcon: no longer abort on SELinux disabled kernel
From:
Ondřej Vašík
Subject:
[PATCH]: chcon: no longer abort on SELinux disabled kernel
Date:
Mon, 05 Oct 2009 09:32:12 +0200
Hello,
as reported in https://bugzilla.redhat.com/show_bug.cgi?id=527142 by
Yanko Kaneti, chcon aborts on SELinux disabled kernel due to missing
check for SELinux enabled kernel. Attached patch is fixing the issue.
Additionally - for consistency - error message of this check in runcon
was changed to not hardcode "runcon" program name.
Greetings,
Ondřej Vašík