Lines Matching refs:dacInfo
101 AppSpawnMsgDacInfo *dacInfo = (AppSpawnMsgDacInfo *)GetAppProperty(property, TLV_DAC_INFO);
102 APPSPAWN_CHECK(dacInfo != NULL, return APPSPAWN_TLV_NONE,
106 if (dacInfo->uid != 0) {
229 AppSpawnMsgDacInfo *dacInfo = (AppSpawnMsgDacInfo *)GetAppProperty(property, TLV_DAC_INFO);
230 APPSPAWN_CHECK(dacInfo != NULL, return APPSPAWN_TLV_NONE,
234 int ret = setgroups(dacInfo->gidCount, (const gid_t *)(&dacInfo->gidTable[0]));
236 "setgroups failed: %{public}d, gids.size=%{public}u", errno, dacInfo->gidCount);
240 gid_t gid = dacInfo->gid / UID_BASE;
242 APPSPAWN_LOGE("SetUidGid invalid uid for nwebspawn %{public}d", dacInfo->gid);
245 ret = setresgid(dacInfo->gid, dacInfo->gid, dacInfo->gid);
247 ret = setresgid(dacInfo->gid, dacInfo->gid, dacInfo->gid);
250 "setgid(%{public}u) failed: %{public}d", dacInfo->gid, errno);
258 ret = setresuid(dacInfo->uid, dacInfo->uid, dacInfo->uid);
260 "setuid(%{public}u) failed: %{public}d", dacInfo->uid, errno);