[systemd-commits] src/nspawn

Tom Gundersen tomegun at kemper.freedesktop.org
Thu Feb 6 08:30:31 PST 2014


 src/nspawn/nspawn.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5d63309cf5a6fc5256391fa4ddb72cf68e2e27e5
Author: Tom Gundersen <teg at jklm.no>
Date:   Wed Feb 5 17:07:20 2014 +0100

    nspawn: fix HAVE_SELINUX ifdef

diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 57818f9..f904ebe 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -41,7 +41,7 @@
 #include <sys/socket.h>
 #include <linux/netlink.h>
 #include <sys/eventfd.h>
-#if HAVE_SELINUX
+#ifdef HAVE_SELINUX
 #include <selinux/selinux.h>
 #endif
 
@@ -1534,7 +1534,7 @@ int main(int argc, char *argv[]) {
                         } else
                                 env_use = (char**) envp;
 
-#if HAVE_SELINUX
+#ifdef HAVE_SELINUX
                         if (arg_process_label)
                                 if (setexeccon(arg_process_label) < 0)
                                         log_error("setexeccon(\"%s\") failed: %m", arg_process_label);



More information about the systemd-commits mailing list