From: Stéphane Graber Date: Tue, 25 Feb 2014 19:59:30 +0000 (-0500) Subject: attach: Defined MS_REC and MS_SLAVE if not set X-Git-Tag: lxc-1.0.1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23b116e35fa5d2b7af83433983f6af9eef601728;p=thirdparty%2Flxc.git attach: Defined MS_REC and MS_SLAVE if not set Signed-off-by: Stéphane Graber --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 325ce53a6..842a509af 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -64,6 +64,14 @@ # 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) diff --git a/src/lxc/lxc_usernsexec.c b/src/lxc/lxc_usernsexec.c index f06cf5b2f..2efc687ea 100644 --- a/src/lxc/lxc_usernsexec.c +++ b/src/lxc/lxc_usernsexec.c @@ -44,6 +44,14 @@ #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)