]> git.proxmox.com Git - mirror_lxc.git/commitdiff
conf: append 0 0 to nesting helpers mount entries
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 27 Jan 2019 12:14:24 +0000 (13:14 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 27 Jan 2019 12:16:09 +0000 (13:16 +0100)
Otherwise musl's getmntent_r() parser will fail.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index d12808350d0496c10d11318f28bfe2cd12f68b4e..9cb67b464b5aeed19bc94c0af71c1832c45a854f 100644 (file)
@@ -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)