From 716a8aa8aa12036af3ebe29b3cf6e44f14e41baa Mon Sep 17 00:00:00 2001 From: cheng_jinsong Date: Fri, 14 Oct 2022 02:19:14 +0000 Subject: [PATCH] x86 Signed-off-by: cheng_jinsong --- services/modules/seccomp/BUILD.gn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/modules/seccomp/BUILD.gn b/services/modules/seccomp/BUILD.gn index 3813a009..db241eb6 100755 --- a/services/modules/seccomp/BUILD.gn +++ b/services/modules/seccomp/BUILD.gn @@ -68,7 +68,7 @@ ohos_prebuilt_seccomp("system_filter") { sources = [] if (target_cpu == "arm") { sources += [ "seccomp_policy/system_arm.seccomp.policy" ] - } else if (target_cpu == "arm64") { + } else if (target_cpu == "arm64" || target_cpu == "x86_64") { sources += [ # 64-bit machine also need check use 32-bit syscall "seccomp_policy/system_arm.seccomp.policy", @@ -88,7 +88,7 @@ ohos_prebuilt_seccomp("appspawn_filter") { sources = [] if (target_cpu == "arm") { sources += [ "seccomp_policy/spawn_arm.seccomp.policy" ] - } else if (target_cpu == "arm64") { + } else if (target_cpu == "arm64" || target_cpu == "x86_64") { sources += [ # 64-bit machine also need check use 32-bit syscall "seccomp_policy/spawn_arm.seccomp.policy", @@ -107,7 +107,7 @@ ohos_prebuilt_seccomp("appspawn_filter") { ohos_prebuilt_seccomp("nwebspawn_filter") { if (target_cpu == "arm") { sources = [ "seccomp_policy/renderer_arm.seccomp.policy" ] - } else if (target_cpu == "arm64") { + } else if (target_cpu == "arm64" || target_cpu == "x86_64") { sources = [ "seccomp_policy/renderer_arm64.seccomp.policy" ] } @@ -123,7 +123,7 @@ ohos_prebuilt_seccomp("app_filter") { sources = [] if (target_cpu == "arm") { sources += [ "seccomp_policy/app_arm.seccomp.policy" ] - } else if (target_cpu == "arm64") { + } else if (target_cpu == "arm64" || target_cpu == "x86_64") { sources += [ # 64-bit machine also need check use 32-bit syscall "seccomp_policy/app_arm.seccomp.policy", -- GitLab