nsjconf->cgroup_mem_mount, nsjconf->cgroup_mem_parent, (int)pid);
LOG_D("Create '%s' for PID=%d", mem_cgroup_path, (int)pid);
if (mkdir(mem_cgroup_path, 0700) == -1 && errno != EEXIST) {
- PLOG_E("mkdir('%s', 0711) failed", mem_cgroup_path);
+ PLOG_E("mkdir('%s', 0700) failed", mem_cgroup_path);
return false;
}
nsjconf->cgroup_pids_mount, nsjconf->cgroup_pids_parent, (int)pid);
LOG_D("Create '%s' for PID=%d", pids_cgroup_path, (int)pid);
if (mkdir(pids_cgroup_path, 0700) == -1 && errno != EEXIST) {
- PLOG_E("mkdir('%s', 0711) failed", pids_cgroup_path);
+ PLOG_E("mkdir('%s', 0700) failed", pids_cgroup_path);
return false;
}
nsjconf->cgroup_net_cls_mount, nsjconf->cgroup_net_cls_parent, (int)pid);
LOG_D("Create '%s' for PID=%d", net_cls_cgroup_path, (int)pid);
if (mkdir(net_cls_cgroup_path, 0700) == -1 && errno != EEXIST) {
- PLOG_E("mkdir('%s', 0711) failed", net_cls_cgroup_path);
+ PLOG_E("mkdir('%s', 0700) failed", net_cls_cgroup_path);
return false;
}
if (fd >= 0) {
close(fd);
} else {
- PLOG_W("open('%s', O_CREAT|O_RDONLY|O_CLOEXEC, 0700)", dst);
+ PLOG_W("open('%s', O_CREAT|O_RDONLY|O_CLOEXEC, 0644)", dst);
}
}