projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75cb850
)
nspawn: fix HAVE_SELINUX ifdef
author
Tom Gundersen
<teg@jklm.no>
Wed, 5 Feb 2014 16:07:20 +0000
(17:07 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Thu, 6 Feb 2014 16:30:01 +0000
(17:30 +0100)
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index
57818f9
..
f904ebe
100644
(file)
--- 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
+#if
def
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
+#if
def
HAVE_SELINUX
if (arg_process_label)
if (setexeccon(arg_process_label) < 0)
log_error("setexeccon(\"%s\") failed: %m", arg_process_label);