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

Issue 248633004: Non-SFI NaCl: Clean up seccomp for syscalls which return EPERM (Closed)

Created:
6 years, 8 months ago by hamaji
Modified:
6 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Non-SFI NaCl: Clean up seccomp for syscalls which return EPERM - getegid, geteuid, getgid, and getuid now return EPERM instead of raising SIGSYS. This simplifies the test code. - Define a macro for sandbox tests for syscalls which return EPERM to reduce the size of not interesting test cases. - Pass five zeros after syscall number to syscall() so that tests will not be flaky due to uninitialized values on stack. BUG=359285 TEST=nacl_loader_unittests, trybots Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266317

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : handle review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -125 lines) Patch
M components/nacl/loader/nonsfi/nonsfi_sandbox.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc View 1 2 1 chunk +24 lines, -122 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
hamaji
6 years, 8 months ago (2014-04-24 15:55:08 UTC) #1
jln (very slow on Chromium)
lgtm https://chromiumcodereview.appspot.com/248633004/diff/20001/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc File components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc (right): https://chromiumcodereview.appspot.com/248633004/diff/20001/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc#newcode350 components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc:350: #define RESTRICT_SYSCALL_EPERM_TEST(name) \ maybe align the "\"?
6 years, 8 months ago (2014-04-24 16:39:00 UTC) #2
Mark Seaborn
LGTM https://codereview.chromium.org/248633004/diff/20001/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc File components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc (right): https://codereview.chromium.org/248633004/diff/20001/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc#newcode354 components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc:354: BPF_ASSERT_EQ(-1, syscall(__NR_ ## name, 0, 0, 0, 0, ...
6 years, 8 months ago (2014-04-24 16:41:28 UTC) #3
hamaji
https://codereview.chromium.org/248633004/diff/20001/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc File components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc (right): https://codereview.chromium.org/248633004/diff/20001/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc#newcode350 components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc:350: #define RESTRICT_SYSCALL_EPERM_TEST(name) \ On 2014/04/24 16:39:00, jln wrote: > ...
6 years, 8 months ago (2014-04-25 00:13:26 UTC) #4
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-25 00:13:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/248633004/40001
6 years, 8 months ago (2014-04-25 00:15:32 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 01:02:38 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-25 01:02:39 UTC) #8
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-25 02:01:27 UTC) #9
hamaji
The CQ bit was unchecked by hamaji@chromium.org
6 years, 8 months ago (2014-04-25 02:01:28 UTC) #10
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-25 02:01:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/248633004/40001
6 years, 8 months ago (2014-04-25 02:06:53 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 02:50:24 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-25 02:50:25 UTC) #14
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-25 04:04:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/248633004/40001
6 years, 8 months ago (2014-04-25 08:23:33 UTC) #16
commit-bot: I haz the power
6 years, 8 months ago (2014-04-26 02:09:34 UTC) #17
Message was sent while issue was closed.
Change committed as 266317

Powered by Google App Engine
This is Rietveld 408576698