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

Unified Diff: sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc

Issue 569713004: Linux sandbox: Disallow get_robust_list and set_robust_list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make set_robust_list return EPERM. Created 6 years, 3 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 | « sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
diff --git a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
index de6ba24f1e5c2de2c1ad66235ae1ca2849fea877..f619ecbd2704e82cfb0436d17528859d92447ef1 100644
--- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
+++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
@@ -400,9 +400,7 @@ bool SyscallSets::IsAllowedProcessStartOrDeath(int sysno) {
// It's difficult to restrict those, but there is attack surface here.
bool SyscallSets::IsAllowedFutex(int sysno) {
switch (sysno) {
- case __NR_get_robust_list:
case __NR_set_robust_list:
- return true;
case __NR_futex:
default:
return false;
jln (very slow on Chromium) 2014/09/15 23:37:46 Can you put __NR_get_robust_list here (before defa
« no previous file with comments | « sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698