<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Andrew , <o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">For container with a&nbsp; mount namespaces&nbsp; and bind mounted&nbsp; controllers into its file tree,. I was able to check spawn a callback to check creation of subgroups or spawn a program.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">However using the libct_container_enter_execv() to enter a program in container is returning failure (-1). Attached is the program with failing enter_exec() &nbsp;but working spawn code ..
<o:p></o:p></p>
<p class="MsoNormal">&nbsp;Wanted to check if I am wrongly programming the parameters for &nbsp;libct_container_enter_execv. &nbsp;Tried &nbsp;libct_container_enter_cb() and that fails too with &nbsp;-1.<o:p></o:p></p>
<p class="MsoNormal">Hence thought of getting pointers to debug the issue further<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Qn 2 : <o:p></o:p></p>
<p class="MsoNormal">&nbsp;how do we spawn a &nbsp;container process in one of the subgroups created under the container file tree which has all the cgroup controllers bind mounted.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Qn3: <o:p></o:p></p>
<p class="MsoNormal">Also , <o:p></o:p></p>
<p class="MsoNormal">For a container with cgroups&nbsp; and without any namespaces&nbsp; (not even mount) , I am looking to check if the following functionalities would&nbsp; be supported by libct .
<o:p></o:p></p>
<p class="MsoNormal">-Ability to create container with a default subgroup ,&nbsp; configure default&nbsp; subgroup and start a&nbsp; container process in the default subgroup.<o:p></o:p></p>
<p class="MsoNormal">- Ability to create and configure additional subgroups and then move process from default subgroup to other already configured subgroups.
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Monali<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>