mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2025-02-17 02:29:23 +00:00
commit
86c93499e2
@ -26,9 +26,9 @@ void LoadExtendLib(AppSpawnContent *content)
|
||||
#endif
|
||||
APPSPAWN_LOGI("MainThread::LoadAbilityLibrary. Start calling dlopen acelibdir.");
|
||||
#ifndef APPSPAWN_TEST
|
||||
void *AceAbilityLib = NULL;
|
||||
AceAbilityLib = dlopen(acelibdir, RTLD_NOW | RTLD_GLOBAL);
|
||||
APPSPAWN_CHECK(AceAbilityLib != NULL, return, "Fail to dlopen %s, [%s]", acelibdir, dlerror());
|
||||
void *aceAbilityLib = NULL;
|
||||
aceAbilityLib = dlopen(acelibdir, RTLD_NOW | RTLD_GLOBAL);
|
||||
APPSPAWN_CHECK(aceAbilityLib != NULL, return, "Fail to dlopen %s, [%s]", acelibdir, dlerror());
|
||||
#endif
|
||||
APPSPAWN_LOGI("Success to dlopen %s", acelibdir);
|
||||
APPSPAWN_LOGI("MainThread::LoadAbilityLibrary. End calling dlopen");
|
||||
|
@ -34,6 +34,7 @@ void SetAppAccessToken(struct AppSpawnContent_ *content, AppSpawnClient *client)
|
||||
void SetSelinuxCon(struct AppSpawnContent_ *content, AppSpawnClient *client)
|
||||
{
|
||||
#ifdef WITH_SELINUX
|
||||
UNUSED(content);
|
||||
AppSpawnClientExt *appProperty = (AppSpawnClientExt *)client;
|
||||
HapContext hapContext;
|
||||
int32_t ret = hapContext.HapDomainSetcontext(appProperty->property.apl, appProperty->property.processName);
|
||||
|
@ -99,6 +99,7 @@ APPSPAWN_STATIC void AddAppInfo(pid_t pid, const char *processName)
|
||||
|
||||
APPSPAWN_STATIC void ProcessTimer(const TimerHandle taskHandle, void *context)
|
||||
{
|
||||
UNUSED(context);
|
||||
APPSPAWN_LOGI("timeout stop appspawn");
|
||||
LE_StopLoop(LE_GetDefaultLoop());
|
||||
}
|
||||
|
@ -360,15 +360,13 @@ int SandboxUtils::DoAllMntPointsMount(const ClientSocket::AppProperty *appProper
|
||||
{
|
||||
std::string bundleName = appProperty->bundleName;
|
||||
if (appConfig.find(MOUNT_PREFIX) == appConfig.end()) {
|
||||
APPSPAWN_LOGV("mount config is not found, maybe reuslt sandbox launch failed"
|
||||
"app name is %s", bundleName.c_str());
|
||||
APPSPAWN_LOGV("mount config is not found, app name is %s", bundleName.c_str());
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool checkFlag = false;
|
||||
if (appConfig.find(FLAGS) != appConfig.end()) {
|
||||
std::string flagsStr = appConfig[FLAGS].get<std::string>();
|
||||
if ((ConvertFlagStr(flagsStr) & appProperty->flags) &&
|
||||
if ((ConvertFlagStr(appConfig[FLAGS].get<std::string>()) & appProperty->flags) &&
|
||||
bundleName.find("wps") != std::string::npos) {
|
||||
checkFlag = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user