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

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

Issue 1930223002: Allow sysinfo in the GPU policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_linux/bpf_gpu_policy_linux.cc
diff --git a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
index 077a710e9e9e5b991ebce7c8cfff1b09beab4f3e..d356897d9e0740668884c496307960ca5c91dddb 100644
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
@@ -262,6 +262,7 @@ ResultExpr GpuProcessPolicy::EvaluateSyscall(int sysno) const {
case __NR_mprotect:
// TODO(jln): restrict prctl.
case __NR_prctl:
+ case __NR_sysinfo:
return Allow();
#if !defined(__aarch64__)
case __NR_access:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698