chiark / gitweb /
bus: properly unmap mapped area
[elogind.git] / src / nspawn / nspawn.c
index b91b0b8a91f4bccc9011028e20a101bb9506fbf7..32cfe05dcd409f353a0f924b827ac78687298933 100644 (file)
@@ -39,6 +39,7 @@
 #include <sys/signalfd.h>
 #include <grp.h>
 #include <linux/fs.h>
+#include <linux/netlink.h>
 #include <sys/un.h>
 #include <sys/socket.h>
 
@@ -1227,7 +1228,6 @@ static bool audit_enabled(void) {
                 close_nointr_nofail(fd);
                 return true;
         }
-
         return false;
 }
 
@@ -1296,7 +1296,7 @@ int main(int argc, char *argv[]) {
                 goto finish;
         }
 
-        if (audit_enabled()) {
+        if (arg_boot && audit_enabled()) {
                 log_warning("The kernel auditing subsystem is known to be incompatible with containers.\n"
                             "Please make sure to turn off auditing with 'audit=0' on the kernel command\n"
                             "line before using systemd-nspawn. Sleeping for 5s...\n");