Init cgroups with -Me

This commit is contained in:
Jagger 2016-06-19 19:36:56 +02:00
parent 1a9de4ef91
commit e981cbc730

View File

@ -61,6 +61,10 @@ static int subprocNewProc(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int
LOG_E("Couldn't initialize net user namespace");
exit(1);
}
if (cgroupInitNsFromParent(nsjconf, syscall(__NR_getpid)) == false) {
LOG_E("Couldn't initialize net user namespace");
exit(1);
}
} else {
char doneChar;
if (utilReadFromFd(pipefd, &doneChar, sizeof(doneChar)) != sizeof(doneChar)) {