From: Christian Brauner Date: Sun, 21 Jan 2018 14:20:19 +0000 (+0100) Subject: attach: setup /proc limits X-Git-Tag: lxc-3.0.0.beta1~66^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb2ada6f4d1f2e813976b79bd128c59c6f273275;p=thirdparty%2Flxc.git attach: setup /proc limits Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 06e4af566..63e000195 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -1354,6 +1354,13 @@ int lxc_attach(const char *name, const char *lxcpath, "cgroups", pid); } + /* Setup /proc limits */ + if (!lxc_list_empty(&init_ctx->container->lxc_conf->procs)) { + ret = setup_proc_filesystem(&init_ctx->container->lxc_conf->procs, pid); + if (ret < 0) + goto on_error; + } + /* Setup resource limits */ if (!lxc_list_empty(&init_ctx->container->lxc_conf->limits)) { ret = setup_resource_limits(&init_ctx->container->lxc_conf->limits, pid);