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

Unified Diff: components/nacl/loader/nonsfi/nonsfi_sandbox.cc

Issue 248633004: Non-SFI NaCl: Clean up seccomp for syscalls which return EPERM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: handle review comments Created 6 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 | components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nonsfi/nonsfi_sandbox.cc
diff --git a/components/nacl/loader/nonsfi/nonsfi_sandbox.cc b/components/nacl/loader/nonsfi/nonsfi_sandbox.cc
index 78e065295b90f7b2763abe4d54429503ca1664b9..11cfa717bb1ddc6a632d807701ae37fb2e3d19c3 100644
--- a/components/nacl/loader/nonsfi/nonsfi_sandbox.cc
+++ b/components/nacl/loader/nonsfi/nonsfi_sandbox.cc
@@ -154,12 +154,11 @@ bool IsGracefullyDenied(int sysno) {
case __NR_geteuid32:
case __NR_getgid32:
case __NR_getuid32:
-#elif defined(__x86_64__)
+#endif
case __NR_getegid:
case __NR_geteuid:
case __NR_getgid:
case __NR_getuid:
-#endif
// tcmalloc calls madvise in TCMalloc_SystemRelease.
case __NR_madvise:
// EPERM instead of SIGSYS as glibc tries to open files in /proc.
« no previous file with comments | « no previous file | components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698