Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1862)

Unified Diff: content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc

Issue 784733002: content: bpf: exclude the syscalls if arm64 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
diff --git a/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc b/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
index de0a89f5ed9d16ac485cc356d215fe9ca61a3286..6bc903bb1d229d4bce1c7275a2aa3b80a7e5363a 100644
--- a/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
@@ -108,8 +108,10 @@ class CrosArmGpuBrokerProcessPolicy : public CrosArmGpuProcessPolicy {
// openat allowed.
ResultExpr CrosArmGpuBrokerProcessPolicy::EvaluateSyscall(int sysno) const {
switch (sysno) {
+#if !defined(aarch64)
case __NR_access:
mdempsky 2014/12/07 03:46:40 Do we need to allow __NR_accessat or something els
cometzero 2014/12/07 06:47:38 Hmm. There is no __NR_access on the arm64. Maybe _
leecam 2014/12/07 17:08:24 Yep __NR_faccessat is the replacement for __NR_acc
case __NR_open:
+#endif // !defined(aarch64)
case __NR_openat:
return Allow();
default:

Powered by Google App Engine
This is Rietveld 408576698