mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2025-02-18 19:18:12 +00:00
!365 app进程支持seccomp-BPF策略使能
Merge pull request !365 from 夏不白/seccomp_app_v2
This commit is contained in:
commit
c41d515381
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user