!1386 XPM添加临时豁免应用JIT管控机制

Merge pull request !1386 from 团辉/master
This commit is contained in:
openharmony_ci 2024-08-22 08:25:34 +00:00 committed by Gitee
commit 881aa59f3b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,7 @@ typedef enum {
APP_FLAGS_ISOLATED_SECCOMP_TYPE, APP_FLAGS_ISOLATED_SECCOMP_TYPE,
APP_FLAGS_ISOLATED_NETWORK, APP_FLAGS_ISOLATED_NETWORK,
APP_FLAGS_ISOLATED_DATAGROUP, APP_FLAGS_ISOLATED_DATAGROUP,
APP_FLAGS_TEMP_JIT = 28,
MAX_FLAGS_INDEX = 63, MAX_FLAGS_INDEX = 63,
} AppFlagsIndex; } AppFlagsIndex;

View File

@ -211,6 +211,9 @@ static int SetXpmConfig(const AppSpawnMgr *content, const AppSpawningCtx *proper
idType = PROCESS_OWNERID_DEBUG; idType = PROCESS_OWNERID_DEBUG;
} else if (ownerInfo == NULL) { } else if (ownerInfo == NULL) {
idType = PROCESS_OWNERID_COMPAT; idType = PROCESS_OWNERID_COMPAT;
} else if (CheckAppMsgFlagsSet(property, APP_FLAGS_TEMP_JIT)) {
idType = PROCESS_OWNERID_APP_TEMP_ALLOW;
ownerId = ownerInfo->ownerId;
} else { } else {
idType = PROCESS_OWNERID_APP; idType = PROCESS_OWNERID_APP;
ownerId = ownerInfo->ownerId; ownerId = ownerInfo->ownerId;