!365 app进程支持seccomp-BPF策略使能

Merge pull request !365 from 夏不白/seccomp_app_v2
This commit is contained in:
openharmony_ci 2022-08-27 07:08:03 +00:00 committed by Gitee
commit c41d515381
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -70,7 +70,15 @@ int SetSeccompFilter(struct AppSpawnContent_ *content, AppSpawnClient *client)
APPSPAWN_LOGE("NwebspawnServer::Failed to set NWEBSPAWN seccomp filter");
return -1;
} else {
APPSPAWN_LOGE("NwebspawnServer::Success to set NWEBSPAWN seccomp filter");
APPSPAWN_LOGI("NwebspawnServer::Success to set NWEBSPAWN seccomp filter");
return 0;
}
#else
if (!SetSeccompPolicy(APP)) {
APPSPAWN_LOGE("AppSpawnServer::Failed to set APP seccomp filter");
return -1;
} else {
APPSPAWN_LOGI("AppSpawnServer::Success to set APP seccomp filter");
return 0;
}
#endif