PATCH: add ifdefs in loader.c for SELINUX

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

 



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");
     

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux