From: Christian Brauner Date: Sun, 27 Jan 2019 12:14:24 +0000 (+0100) Subject: conf: append 0 0 to nesting helpers mount entries X-Git-Tag: lxc-3.2.0~172^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc691e340e7e1fe032dd47822e460fa86d1dba58;p=thirdparty%2Flxc.git conf: append 0 0 to nesting helpers mount entries Otherwise musl's getmntent_r() parser will fail. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index d12808350..9cb67b464 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2397,8 +2397,8 @@ static int setup_mount(const struct lxc_conf *conf, * access them as a side effect without explicitly allowing it. */ static const char nesting_helpers[] = -"proc dev/.lxc/proc proc create=dir,optional\n" -"sys dev/.lxc/sys sysfs create=dir,optional\n"; +"proc dev/.lxc/proc proc create=dir,optional 0 0\n" +"sys dev/.lxc/sys sysfs create=dir,optional 0 0\n"; FILE *make_anonymous_mount_file(struct lxc_list *mount, bool include_nesting_helpers)