]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: Defined MS_REC and MS_SLAVE if not set
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 25 Feb 2014 19:59:30 +0000 (14:59 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 25 Feb 2014 20:22:26 +0000 (15:22 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/attach.c
src/lxc/lxc_usernsexec.c

index 325ce53a6b6a0b245465fff7e6da4343b72d29ba..842a509af6b2629464b8954b40051ff0a5977ce7 100644 (file)
 #  define SOCK_CLOEXEC                02000000
 #endif
 
+#ifndef MS_REC
+#define MS_REC 16384
+#endif
+
+#ifndef MS_SLAVE
+#define MS_SLAVE (1<<19)
+#endif
+
 lxc_log_define(lxc_attach, lxc);
 
 static struct lxc_proc_context_info *lxc_proc_get_context_info(pid_t pid)
index f06cf5b2f451f95c6eda592c1bd7d71a158136de..2efc687eac328b2aa75b3a91ce28c31b53268bb0 100644 (file)
 #include "namespace.h"
 #include "utils.h"
 
+#ifndef MS_REC
+#define MS_REC 16384
+#endif
+
+#ifndef MS_SLAVE
+#define MS_SLAVE (1<<19)
+#endif
+
 int unshare(int flags);
 
 static void usage(const char *name)