made container running as non root

This commit is contained in:
Antoine 2020-07-19 23:29:55 +02:00
parent 76f7d7d1af
commit 5064b440a2
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ container_t *initialize_container(struct clone_args cloneArgs)
{
container_t *c = (container_t *)malloc(sizeof(container_t));
// in order new net ns, new mount ns, new hostname ns, new pid ns, child ns
c->_cloneFlags = CLONE_NEWNET | CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | CLONE_NEWPID | CLONE_NEWCGROUP;
c->_cloneFlags = CLONE_NEWUSER | CLONE_NEWNET | CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | CLONE_NEWPID | CLONE_NEWCGROUP;
c->cloneArgs = cloneArgs;
return c;
}