]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/start.c
confile: add lxc.proc.* to set proc filesystem
[mirror_lxc.git] / src / lxc / start.c
index a8acfea17164464fb088afc4aedd3fd40ac1a6da..c301d7f0b81450b411a02d2a8424c3961a02f2b2 100644 (file)
@@ -1386,6 +1386,12 @@ static int lxc_spawn(struct lxc_handler *handler)
                goto out_delete_net;
        }
 
+       if (!lxc_list_empty(&conf->procs)) {
+               ret = setup_proc_filesystem(&conf->procs, handler->pid);
+               if (ret < 0)
+                       goto out_delete_net;
+       }
+
        /* Tell the child to continue its initialization. We'll get
         * LXC_SYNC_CGROUP when it is ready for us to setup cgroups.
         */