mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-23 07:00:17 +00:00
commit
27ae29effd
@ -17,9 +17,9 @@
|
||||
"chown root appspawn /dev/pids",
|
||||
"chown root appspawn /dev/pids/tasks",
|
||||
"chown root appspawn /dev/pids/cgroup.procs",
|
||||
"chmod 0755 /dev/pids",
|
||||
"chmod 0755 /dev/pids/tasks",
|
||||
"chmod 0755 /dev/pids/cgroup.procs"
|
||||
"chmod 0750 /dev/pids",
|
||||
"chmod 0750 /dev/pids/tasks",
|
||||
"chmod 0750 /dev/pids/cgroup.procs"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -194,7 +194,7 @@ static int ProcessMgrAddApp(const AppSpawnMgr *content, const AppSpawnedProcessI
|
||||
APPSPAWN_LOGV("ProcessMgrAddApp %{public}d %{public}d to cgroup ", appInfo->pid, appInfo->uid);
|
||||
int ret = GetCgroupPath(appInfo, path, sizeof(path));
|
||||
APPSPAWN_CHECK(ret == 0, return -1, "Failed to get real path errno: %{public}d", errno);
|
||||
(void)CreateSandboxDir(path, 0755); // 0755 default mode
|
||||
(void)CreateSandboxDir(path, 0750); // 0750 default mode
|
||||
uint32_t pathLen = strlen(path);
|
||||
ret = strcat_s(path, sizeof(path), "cgroup.procs");
|
||||
APPSPAWN_CHECK(ret == 0, return ret, "Failed to strcat_s errno: %{public}d", errno);
|
||||
|
Loading…
Reference in New Issue
Block a user