Lines Matching refs:isRet
84 bool isRet = longProcName == NULL || len <= 0; in SetProcessName() local
85 APPSPAWN_CHECK(!isRet, return -EINVAL, "process name is nullptr or length error"); in SetProcessName()
95 isRet = strncpy_s(shortName, MAX_LEN_SHORT_NAME, pos, copyLen) != EOK; in SetProcessName()
96 APPSPAWN_CHECK(!isRet, return -EINVAL, "strncpy_s short name error: %{public}d", errno); in SetProcessName()
99 isRet = prctl(PR_SET_NAME, shortName) == -1; in SetProcessName()
100 APPSPAWN_CHECK(!isRet, return -errno, "prctl(PR_SET_NAME) error: %{public}d", errno); in SetProcessName()
103 isRet = memset_s(longProcName, (size_t)longProcNameLen, 0, (size_t)longProcNameLen) != EOK; in SetProcessName()
104 APPSPAWN_CHECK(!isRet, return -EINVAL, "Failed to memset long process name"); in SetProcessName()
107 isRet = strncpy_s(longProcName, longProcNameLen, appProperty->processName, len) != EOK; in SetProcessName()
108 APPSPAWN_CHECK(!isRet, return -EINVAL, in SetProcessName()
119 bool isRet = prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) == -1; in SetKeepCapabilities() local
120 APPSPAWN_CHECK(!isRet, return -errno, "set keepcaps failed: %{public}d", errno); in SetKeepCapabilities()
130 bool isRet = memset_s(&cap_header, sizeof(cap_header), 0, sizeof(cap_header)) != EOK; in SetCapabilities() local
131 APPSPAWN_CHECK(!isRet, return -EINVAL, "Failed to memset cap header"); in SetCapabilities()
137 isRet = memset_s(&cap_data, sizeof(cap_data), 0, sizeof(cap_data)) != EOK; in SetCapabilities()
138 APPSPAWN_CHECK(!isRet, return -EINVAL, "Failed to memset cap data"); in SetCapabilities()
159 isRet = capset(&cap_header, &cap_data[0]) == -1; in SetCapabilities()
160 APPSPAWN_CHECK(!isRet, return -errno, "capset failed: %{public}d", errno); in SetCapabilities()
161 isRet = SetSelinuxCon(content, client) == -1; in SetCapabilities()
162 APPSPAWN_CHECK(!isRet, return -EPERM, "Failed to set selinux context"); in SetCapabilities()
175 bool isRet = access(debugSoPath, F_OK) != 0; in InitDebugParams() local
176 APPSPAWN_CHECK(!isRet, return, "access failed, errno = %{public}d", errno); in InitDebugParams()
227 …bool isRet = setgroups(appProperty->property.gidCount, (const gid_t *)(&appProperty->property.gidT… in SetUidGid() local
228 APPSPAWN_CHECK(!isRet, return -errno, in SetUidGid()
254 …isRet = setresgid(appProperty->property.gid, appProperty->property.gid, appProperty->property.gid)… in SetUidGid()
255 APPSPAWN_CHECK(!isRet, return -errno, in SetUidGid()
266 …isRet = setresuid(appProperty->property.uid, appProperty->property.uid, appProperty->property.uid)… in SetUidGid()
267 APPSPAWN_CHECK(!isRet, return -errno, in SetUidGid()