[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
PATCH: add ifdefs in loader.c for SELINUX
- From: Elliot Peele <elliot rpath com>
- To: anaconda-devel-list redhat com
- Subject: PATCH: add ifdefs in loader.c for SELINUX
- Date: Wed, 13 Dec 2006 16:03:47 -0500
Patch to add some missing ifdefs in loader.c for selinux.
Elliot
diff -r 7a59a1e81932 loader2/loader.c
--- a/loader2/loader.c Wed Dec 13 13:55:49 2006 -0500
+++ b/loader2/loader.c Wed Dec 13 15:09:28 2006 -0500
@@ -84,8 +84,10 @@
#include "net.h"
#include "telnetd.h"
+#ifdef USESELINUX
#include <selinux/selinux.h>
#include "selinux.h"
+#endif
#include "../isys/imount.h"
#include "../isys/isys.h"
@@ -1557,6 +1559,7 @@ int main(int argc, char ** argv) {
/* now load SELinux policy before exec'ing anaconda and the shell
* (if we're using SELinux) */
+ #ifdef USESELINUX
if (FL_SELINUX(flags)) {
if (mount("/selinux", "/selinux", "selinuxfs", 0, NULL)) {
logMessage(ERROR, "failed to mount /selinux: %s, disabling SELinux", strerror(errno));
@@ -1574,6 +1577,7 @@ int main(int argc, char ** argv) {
}
}
}
+ #endif
logMessage(INFO, "getting ready to spawn shell now");
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]