[ 
https://issues.apache.org/jira/browse/MESOS-5410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15297764#comment-15297764
 ] 

Nirav commented on MESOS-5410:
------------------------------

Hi,
Or we can add a macro in the file. I tried adding that,and it worked well. 
Since that would help in future.

#ifndef CLONE_NEWCGROUP
#define CLONE_NEWCGROUP 0x02000000
#endif

and

nstypes["cgroup"] = CLONE_NEWCGROUP;

I can submit the required patch.

> Support cgroup namespace in unified container
> ---------------------------------------------
>
>                 Key: MESOS-5410
>                 URL: https://issues.apache.org/jira/browse/MESOS-5410
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Qian Zhang
>            Assignee: Qian Zhang
>
> In Linux 4.6 kernel, a new namespace (cgroup namespace) was introduced to 
> make a process can be created in its own cgroup namespace so that the global 
> cgroup hierarchy will not be leaked to the process. See the following link 
> for more details about this namespace:
> http://man7.org/linux/man-pages/man7/cgroup_namespaces.7.html
> We need to support this namespace in unified container to provide better 
> isolation for the containers created by Mesos.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to