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

Issue 66723007: Make sandbox/linux/seccomp-bpf/ follow the style guide. (Closed)

Created:
7 years, 1 month ago by jln (very slow on Chromium)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, agl, jln+watch_chromium.org, Jorge Lucangeli Obes
Visibility:
Public.

Description

Make sandbox/linux/seccomp-bpf/ follow the style guide. This CL has mostly be generated with clang-format and should not introduce any code change other than reformatting. BUG=316486 R=markus@chromium.org, rsesek@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234013

Patch Set 1 #

Patch Set 2 : Also reformat unittests. #

Total comments: 10

Patch Set 3 : Restore linux_seccomp.h #

Patch Set 4 : (empty) rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1439 lines, -1344 lines) Patch
M sandbox/linux/seccomp-bpf/basicblock.h View 2 chunks +8 lines, -10 lines 0 comments Download
M sandbox/linux/seccomp-bpf/basicblock.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M sandbox/linux/seccomp-bpf/bpf_tests.h View 1 5 chunks +14 lines, -20 lines 0 comments Download
M sandbox/linux/seccomp-bpf/codegen.h View 3 chunks +32 lines, -29 lines 0 comments Download
M sandbox/linux/seccomp-bpf/codegen.cc View 25 chunks +175 lines, -164 lines 0 comments Download
M sandbox/linux/seccomp-bpf/die.h View 2 chunks +13 lines, -14 lines 0 comments Download
M sandbox/linux/seccomp-bpf/die.cc View 4 chunks +18 lines, -17 lines 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode.h View 7 chunks +28 lines, -23 lines 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode.cc View 2 chunks +22 lines, -24 lines 0 comments Download
M sandbox/linux/seccomp-bpf/instruction.h View 3 chunks +6 lines, -7 lines 0 comments Download
M sandbox/linux/seccomp-bpf/port.h View 1 chunk +15 lines, -16 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.h View 11 chunks +21 lines, -21 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 32 chunks +309 lines, -281 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_policy_forward.h View 1 chunk +3 lines, -4 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc View 1 59 chunks +265 lines, -221 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall.h View 3 chunks +56 lines, -41 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_iterator.h View 3 chunks +3 lines, -6 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_iterator.cc View 4 chunks +11 lines, -15 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall_unittest.cc View 8 chunks +57 lines, -43 lines 0 comments Download
M sandbox/linux/seccomp-bpf/trap.h View 4 chunks +17 lines, -24 lines 0 comments Download
M sandbox/linux/seccomp-bpf/trap.cc View 17 chunks +42 lines, -46 lines 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.h View 3 chunks +3 lines, -4 lines 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.cc View 13 chunks +252 lines, -246 lines 0 comments Download
M sandbox/linux/tests/main.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/tests/unit_tests.h View 1 2 chunks +37 lines, -33 lines 0 comments Download
M sandbox/linux/tests/unit_tests.cc View 1 9 chunks +27 lines, -26 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jln (very slow on Chromium)
This CL is just reformatting code, mostly with clang-format. I don't think manual review would ...
7 years, 1 month ago (2013-11-08 20:14:08 UTC) #1
Markus (顧孟勤)
I am sure this is fine, if you automatically reformatted and if the unittests still ...
7 years, 1 month ago (2013-11-08 20:48:11 UTC) #2
jln (very slow on Chromium)
On 2013/11/08 20:48:11, Markus (顧孟勤) wrote: > I am sure this is fine, if you ...
7 years, 1 month ago (2013-11-08 20:53:05 UTC) #3
Robert Sesek
Overall LGTM. I did go through it, but it was mostly just skimming. https://codereview.chromium.org/66723007/diff/150001/sandbox/linux/seccomp-bpf/die.cc File ...
7 years, 1 month ago (2013-11-08 21:14:33 UTC) #4
jln (very slow on Chromium)
Thanks Robert! https://codereview.chromium.org/66723007/diff/150001/sandbox/linux/seccomp-bpf/die.cc File sandbox/linux/seccomp-bpf/die.cc (right): https://codereview.chromium.org/66723007/diff/150001/sandbox/linux/seccomp-bpf/die.cc#newcode83 sandbox/linux/seccomp-bpf/die.cc:83: if (HANDLE_EINTR(SandboxSyscall(__NR_write, 2, s.c_str(), s.length()))) { On ...
7 years, 1 month ago (2013-11-08 21:22:36 UTC) #5
Markus (顧孟勤)
lgtm https://codereview.chromium.org/66723007/diff/150001/sandbox/linux/seccomp-bpf/die.cc File sandbox/linux/seccomp-bpf/die.cc (right): https://codereview.chromium.org/66723007/diff/150001/sandbox/linux/seccomp-bpf/die.cc#newcode83 sandbox/linux/seccomp-bpf/die.cc:83: if (HANDLE_EINTR(SandboxSyscall(__NR_write, 2, s.c_str(), s.length()))) { On 2013/11/08 ...
7 years, 1 month ago (2013-11-08 21:24:18 UTC) #6
jln (very slow on Chromium)
https://codereview.chromium.org/66723007/diff/150001/sandbox/linux/seccomp-bpf/die.cc File sandbox/linux/seccomp-bpf/die.cc (right): https://codereview.chromium.org/66723007/diff/150001/sandbox/linux/seccomp-bpf/die.cc#newcode83 sandbox/linux/seccomp-bpf/die.cc:83: if (HANDLE_EINTR(SandboxSyscall(__NR_write, 2, s.c_str(), s.length()))) { On 2013/11/08 21:24:18, ...
7 years, 1 month ago (2013-11-08 21:36:05 UTC) #7
jln (very slow on Chromium)
7 years, 1 month ago (2013-11-08 21:58:10 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 manually as r234013 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698