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

Issue 10837156: Seccomp-bpf: first pass at a non controverial policy cleanup. (Closed)

Created:
8 years, 4 months ago by jln (very slow on Chromium)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Seccomp-bpf: policy cleanup. We do some relatively minor changes to our policies and adopt a baseline on which the GPU and Flash policies are now based. We allow a few more syscalls than we used to to make our sandbox more robust against library updates or rarely exercised codepaths. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150914

Patch Set 1 : #

Total comments: 17

Patch Set 2 : Use a baseline policy. #

Patch Set 3 : Rebase on 10834219. #

Patch Set 4 : Relocate IsFutex #

Patch Set 5 : Add comments about errno for filesystem access system calls. #

Total comments: 18

Patch Set 6 : Address comments from Chris. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -111 lines) Patch
M content/common/sandbox_seccomp_bpf_linux.cc View 1 2 3 4 5 16 chunks +117 lines, -111 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc#newcode204 content/common/sandbox_seccomp_bpf_linux.cc:204: case __NR_chmod: All of these will ENOENT. I have ...
8 years, 4 months ago (2012-08-08 01:29:57 UTC) #1
jln (very slow on Chromium)
This is a first pass at cleaning-up / rationalizing our policies. (This is based on ...
8 years, 4 months ago (2012-08-08 01:31:17 UTC) #2
Markus (顧孟勤)
https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc#newcode383 content/common/sandbox_seccomp_bpf_linux.cc:383: case __NR_wait4: On 2012/08/08 01:29:57, Julien Tinnes wrote: > ...
8 years, 4 months ago (2012-08-08 10:08:42 UTC) #3
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc#newcode383 content/common/sandbox_seccomp_bpf_linux.cc:383: case __NR_wait4: On 2012/08/08 10:08:42, Markus (顧孟勤) wrote: > ...
8 years, 4 months ago (2012-08-08 18:57:28 UTC) #4
Markus (顧孟勤)
https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc#newcode383 content/common/sandbox_seccomp_bpf_linux.cc:383: case __NR_wait4: That would probably work. It's not a ...
8 years, 4 months ago (2012-08-08 21:55:35 UTC) #5
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/10837156/diff/2002/content/common/sandbox_seccomp_bpf_linux.cc#newcode383 content/common/sandbox_seccomp_bpf_linux.cc:383: case __NR_wait4: On 2012/08/08 21:55:35, Markus (顧孟勤) wrote: > ...
8 years, 4 months ago (2012-08-08 23:00:49 UTC) #6
Markus (顧孟勤)
lgtm
8 years, 4 months ago (2012-08-08 23:06:04 UTC) #7
Chris Evans
https://chromiumcodereview.appspot.com/10837156/diff/6004/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/10837156/diff/6004/content/common/sandbox_seccomp_bpf_linux.cc#newcode213 content/common/sandbox_seccomp_bpf_linux.cc:213: case __NR_getdents64: getdents() is not a filesystem syscall. It ...
8 years, 4 months ago (2012-08-09 07:09:15 UTC) #8
jln (very slow on Chromium)
Thanks, PTAL! https://chromiumcodereview.appspot.com/10837156/diff/6004/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/10837156/diff/6004/content/common/sandbox_seccomp_bpf_linux.cc#newcode213 content/common/sandbox_seccomp_bpf_linux.cc:213: case __NR_getdents64: On 2012/08/09 07:09:15, Chris Evans ...
8 years, 4 months ago (2012-08-09 16:59:11 UTC) #9
Chris Evans
LGTM One future idea I had is to later add some rules which speculatively defend ...
8 years, 4 months ago (2012-08-09 17:43:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/10837156/11003
8 years, 4 months ago (2012-08-09 20:44:20 UTC) #11
commit-bot: I haz the power
8 years, 4 months ago (2012-08-09 22:20:39 UTC) #12
Change committed as 150914

Powered by Google App Engine
This is Rietveld 408576698