From dc691e340e7e1fe032dd47822e460fa86d1dba58 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 27 Jan 2019 13:14:24 +0100 Subject: [PATCH] conf: append 0 0 to nesting helpers mount entries Otherwise musl's getmntent_r() parser will fail. Signed-off-by: Christian Brauner --- src/lxc/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.2