Lines Matching refs:ret
221 int ret = InitXpm(jitfortEnable, idType, ownerId);
222 APPSPAWN_CHECK(ret == 0, return ret, "set xpm region failed: %{public}d", ret);
234 int ret = setgroups(dacInfo->gidCount, (const gid_t *)(&dacInfo->gidTable[0]));
235 APPSPAWN_CHECK(ret == 0, return errno,
245 ret = setresgid(dacInfo->gid, dacInfo->gid, dacInfo->gid);
247 ret = setresgid(dacInfo->gid, dacInfo->gid, dacInfo->gid);
249 APPSPAWN_CHECK(ret == 0, return errno,
252 ret = SetSeccompFilter(content, property);
253 APPSPAWN_CHECK(ret == 0, return ret, "Failed to set setSeccompFilter");
258 ret = setresuid(dacInfo->uid, dacInfo->uid, dacInfo->uid);
259 APPSPAWN_CHECK(ret == 0, return errno,
359 int ret = SetProcessName(content, property);
360 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
366 ret = SetAppAccessToken(content, property);
367 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
374 int ret = SetEnvInfo(content, property);
375 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
382 int ret = SetInternetPermission(property);
383 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
384 return ret;
399 int ret = SetKeepCapabilities(content, property);
400 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
401 ret = SetXpmConfig(content, property);
402 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
404 ret = SetProcessName(content, property);
405 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
407 ret = SetUidGid(content, property);
408 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
410 ret = SetFileDescriptors(content, property);
411 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
413 ret = SetCapabilities(content, property);
414 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
416 ret = SetSelinuxCon(content, property) == -1;
417 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
419 ret = WaitForDebugger(property);
420 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
432 int ret = SetUidGidFilter(content);
433 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret);
434 return ret;
446 int ret = GetParameter(param, "", tmp, sizeof(tmp));
447 APPSPAWN_LOGV("CheckEnabled key %{public}s ret %{public}d result: %{public}s", param, ret, tmp);
448 int enabled = (ret > 0 && strcmp(tmp, value) == 0);
528 int ret = setenv(keyBuffer, value, 1);
529 APPSPAWN_CHECK(ret == 0, return -1, "failed setenv %{public}s, %{public}s", keyBuffer, value);