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

Issue 1053603002: Introduce linux_filter.h and replace #include <linux/filter.h> (Closed)

Created:
5 years, 8 months ago by hidehiko
Modified:
5 years, 8 months ago
CC:
chromium-reviews, rickyz+watch_chromium.org, jln+watch_chromium.org, rickyz (no longer on Chrome), jln (very slow on Chromium), Mark Seaborn, hamaji, mazda
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce linux_filter.h and replace #include <linux/filter.h> Some toolchain (especially PNaCl for Non-SFI build) does not provide the linux/filter.h system header. This CL defines all necessary structs and macros for sandbox, and replace linux/filter.h with the new header. This CL is preparation to enable seccomp-bpf sandbox on nacl_helper_nonsfi. TEST=Ran bots. BUG=358465 Committed: https://crrev.com/168a20642b1ceb7fb49e78417671aaec26f5477a Cr-Commit-Position: refs/heads/master@{#324194}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -32 lines) Patch
M sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/linux/bpf_dsl/codegen.cc View 1 chunk +1 line, -2 lines 0 comments Download
M sandbox/linux/bpf_dsl/codegen_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M sandbox/linux/bpf_dsl/dump_bpf.cc View 2 chunks +17 lines, -13 lines 0 comments Download
M sandbox/linux/bpf_dsl/policy_compiler.cc View 2 chunks +1 line, -1 line 0 comments Download
M sandbox/linux/bpf_dsl/seccomp_macros.h View 1 chunk +0 lines, -3 lines 0 comments Download
M sandbox/linux/bpf_dsl/verifier.cc View 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 2 chunks +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.cc View 1 chunk +1 line, -1 line 0 comments Download
A sandbox/linux/system_headers/linux_filter.h View 1 1 chunk +140 lines, -0 lines 0 comments Download
M sandbox/linux/system_headers/linux_seccomp.h View 1 2 chunks +0 lines, -9 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
hidehiko
Extracted from https://codereview.chromium.org/1029283003/. Could you take a look? Thanks, - hidehiko https://codereview.chromium.org/1053603002/diff/40001/sandbox/linux/bpf_dsl/dump_bpf.cc File sandbox/linux/bpf_dsl/dump_bpf.cc (left): ...
5 years, 8 months ago (2015-04-01 12:10:38 UTC) #4
jln (very slow on Chromium)
https://codereview.chromium.org/1053603002/diff/40001/sandbox/linux/system_headers/linux_filter.h File sandbox/linux/system_headers/linux_filter.h (right): https://codereview.chromium.org/1053603002/diff/40001/sandbox/linux/system_headers/linux_filter.h#newcode24 sandbox/linux/system_headers/linux_filter.h:24: #define BPF_CLASS(code) ((code) & 0x07) Could you add #ifndef ...
5 years, 8 months ago (2015-04-01 21:54:53 UTC) #6
mdempsky
lgtm https://codereview.chromium.org/1053603002/diff/40001/sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc File sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc (right): https://codereview.chromium.org/1053603002/diff/40001/sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc#newcode29 sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc:29: #include "sandbox/linux/system_headers/linux_filter.h" Why is this necessary? https://codereview.chromium.org/1053603002/diff/40001/sandbox/linux/bpf_dsl/dump_bpf.cc File ...
5 years, 8 months ago (2015-04-01 22:06:10 UTC) #7
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/1053603002/diff/40001/sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc File sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc (right): https://codereview.chromium.org/1053603002/diff/40001/sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc#newcode29 sandbox/linux/bpf_dsl/bpf_dsl_unittest.cc:29: #include "sandbox/linux/system_headers/linux_filter.h" On 2015/04/01 ...
5 years, 8 months ago (2015-04-02 09:04:42 UTC) #8
hidehiko
jln@, friendly ping? On 2015/04/02 09:04:42, hidehiko wrote: > Thank you for review. PTAL. > ...
5 years, 8 months ago (2015-04-06 18:56:25 UTC) #9
hidehiko
Chatted offline with mdempsky@, and I'm submitting. jln@, please let me know, if you have ...
5 years, 8 months ago (2015-04-08 05:36:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053603002/60001
5 years, 8 months ago (2015-04-08 05:36:39 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years, 8 months ago (2015-04-08 07:09:58 UTC) #14
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 07:10:53 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/168a20642b1ceb7fb49e78417671aaec26f5477a
Cr-Commit-Position: refs/heads/master@{#324194}

Powered by Google App Engine
This is Rietveld 408576698