Chromium Code Reviews
DescriptionReland: Add seccomp sandbox for non-SFI NaCl
This is the reland of https://codereview.chromium.org/196793023/
In the old patch, ldflags! for ASan was specified in nacl_loader target,
which is a static_library. Now we set this in nacl_helper target. The
diff from the previous change is:
https://codereview.chromium.org/240783003/
All syscalls except whitelisted ones will cause SIGSYS.
We test the sandbox with BPF_TEST and BPF_TEST_DEATH, which
appropriately fork the process so the main process of the test
will never enable the sandbox.
TEST=Our app works with this sandbox on i686 and ARM
TEST=Build chrome and nacl_helper on i686, x86-64, and ARM
TEST=./out/Release/components_unittests --gtest_filter='NaClNonSfi*'
TEST=SFI NaCl apps still work
TEST=trybots
BUG=359285
R=jln@chromium.org, mseaborn@chromium.org
TBR=jochen
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264651
Patch Set 1 #
Total comments: 2
Patch Set 2 : fix asan test #
Total comments: 6
Patch Set 3 : #
Total comments: 5
Patch Set 4 : #Messages
Total messages: 17 (0 generated)
|