attach: setup /proc limits

parent 42b09f94
...@@ -1354,6 +1354,13 @@ int lxc_attach(const char *name, const char *lxcpath, ...@@ -1354,6 +1354,13 @@ int lxc_attach(const char *name, const char *lxcpath,
"cgroups", pid); "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 */ /* Setup resource limits */
if (!lxc_list_empty(&init_ctx->container->lxc_conf->limits)) { if (!lxc_list_empty(&init_ctx->container->lxc_conf->limits)) {
ret = setup_resource_limits(&init_ctx->container->lxc_conf->limits, pid); ret = setup_resource_limits(&init_ctx->container->lxc_conf->limits, pid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment