<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_external_minijail/parse_seccomp_policy.cc, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/'/>
<entry>
<title>Add support for SECCOMP_RET_LOG.</title>
<updated>2019-06-24T14:02:41+00:00</updated>
<author>
<name>Jorge Lucangeli Obes</name>
<email>jorgelo@google.com</email>
</author>
<published>2019-06-12T18:45:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=32201f8a02ad582aa08b8a71ff2938dc7bc038d1'/>
<id>32201f8a02ad582aa08b8a71ff2938dc7bc038d1</id>
<content type='text'>
Detect at runtime whether SECCOMP_RET_LOG is available and use that for
logging.

Bug: chromium:934859
Test: New unit tests.
Test: On 4.14 device, minijail0 -S -L test/seccomp.policy -- /bin/true.
Test: audit.log shows failing syscall, binary exits successfully.
Test: On &lt;4.14 device, behaves as before.

Change-Id: Ic9da1b5dae2b4b1df50e9d3e6f18c816e93bff87
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Detect at runtime whether SECCOMP_RET_LOG is available and use that for
logging.

Bug: chromium:934859
Test: New unit tests.
Test: On 4.14 device, minijail0 -S -L test/seccomp.policy -- /bin/true.
Test: audit.log shows failing syscall, binary exits successfully.
Test: On &lt;4.14 device, behaves as before.

Change-Id: Ic9da1b5dae2b4b1df50e9d3e6f18c816e93bff87
</pre>
</div>
</content>
</entry>
<entry>
<title>parse_seccomp_policy: Allow to read from stdin</title>
<updated>2018-07-24T22:14:10+00:00</updated>
<author>
<name>Luis Hector Chavez</name>
<email>lhchavez@google.com</email>
</author>
<published>2018-07-22T05:45:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=dacb705c88bed50541b2d76f607389e817081792'/>
<id>dacb705c88bed50541b2d76f607389e817081792</id>
<content type='text'>
When the filename is "-", parse_seccomp_policy will read the policy from
stdin instead of a file.

Bug: None
Test: echo 'read: 1' | ./parse_seccomp_policy --dump - | \
      ./libseccomp/tools/scmp_bpf_disasm

Change-Id: I150d5536e2672a843661be3605e652d250eede7a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the filename is "-", parse_seccomp_policy will read the policy from
stdin instead of a file.

Bug: None
Test: echo 'read: 1' | ./parse_seccomp_policy --dump - | \
      ./libseccomp/tools/scmp_bpf_disasm

Change-Id: I150d5536e2672a843661be3605e652d250eede7a
</pre>
</div>
</content>
</entry>
<entry>
<title>parse_seccomp_policy: Add a --dump flag</title>
<updated>2018-07-13T15:32:25+00:00</updated>
<author>
<name>Luis Hector Chavez</name>
<email>lhchavez@google.com</email>
</author>
<published>2018-07-13T13:28:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=cb4ae3272d8836e1ae7db64cbdd544aece20d978'/>
<id>cb4ae3272d8836e1ae7db64cbdd544aece20d978</id>
<content type='text'>
This change adds a --dump flag to parse_seccomp_policy, to allow people
to inspect the policy with libseccomp's scmp_bpf_disasm. It also moves
the dump_bpf_prog / dump_bpf_filter functions to parse_seccomp_policy.cc
since they were only used in that one file, and formats the file in C++.

Bug: None
Test: make tests
Test: make parse_seccomp_policy
Test: ./parse_seccomp_policy --dump test/seccomp.policy | \
      ./libseccomp/tools/scmp_bpf_disasm

Change-Id: I96d54cae68b5b102f8962e39ff00b35407f45758
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change adds a --dump flag to parse_seccomp_policy, to allow people
to inspect the policy with libseccomp's scmp_bpf_disasm. It also moves
the dump_bpf_prog / dump_bpf_filter functions to parse_seccomp_policy.cc
since they were only used in that one file, and formats the file in C++.

Bug: None
Test: make tests
Test: make parse_seccomp_policy
Test: ./parse_seccomp_policy --dump test/seccomp.policy | \
      ./libseccomp/tools/scmp_bpf_disasm

Change-Id: I96d54cae68b5b102f8962e39ff00b35407f45758
</pre>
</div>
</content>
</entry>
<entry>
<title>Add the 'e' flag to all fopen(3) calls</title>
<updated>2018-07-13T04:10:33+00:00</updated>
<author>
<name>Luis Hector Chavez</name>
<email>lhchavez@google.com</email>
</author>
<published>2018-07-13T04:10:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=a30a206d163bba1fb2fc0e5097a8dddfd78bee68'/>
<id>a30a206d163bba1fb2fc0e5097a8dddfd78bee68</id>
<content type='text'>
This change adds the 'e' flag to all fopen(3) calls so they get
O_CLOEXEC.

Bug: None
Test: make tests
Change-Id: I27eb4e99be4823bca4ed81e95abaa683f4b877d0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change adds the 'e' flag to all fopen(3) calls so they get
O_CLOEXEC.

Bug: None
Test: make tests
Change-Id: I27eb4e99be4823bca4ed81e95abaa683f4b877d0
</pre>
</div>
</content>
</entry>
<entry>
<title>relicense new source files under BSD</title>
<updated>2018-01-23T18:10:19+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2018-01-19T23:59:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=50e31fa7e92cd0cceefa89e65837c1ee04aaf2bb'/>
<id>50e31fa7e92cd0cceefa89e65837c1ee04aaf2bb</id>
<content type='text'>
This project was started as a BSD licensed work, and it remained that
way even after the AOSP move, so make sure new files correctly reflect
that too.  Otherwise we end up with half the files using BSD and the
other half using Apache which is annoying.

Bug: None
Test: grepped for "apache" in all the files
Change-Id: I7cc7c890b42a1ded7552e1852246eaf86ca8428c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This project was started as a BSD licensed work, and it remained that
way even after the AOSP move, so make sure new files correctly reflect
that too.  Otherwise we end up with half the files using BSD and the
other half using Apache which is annoying.

Bug: None
Test: grepped for "apache" in all the files
Change-Id: I7cc7c890b42a1ded7552e1852246eaf86ca8428c
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow redirecting logging to an FD</title>
<updated>2017-09-14T13:16:06+00:00</updated>
<author>
<name>Luis Hector Chavez</name>
<email>lhchavez@google.com</email>
</author>
<published>2017-09-06T03:36:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=114a930ff5d9ad3e2f0bcf0320526e904e511634'/>
<id>114a930ff5d9ad3e2f0bcf0320526e904e511634</id>
<content type='text'>
This change allows redirection of logging facilities, from syslog to a
file.

Bug: None
Test: make tests  // see logging in stderr
Change-Id: Ia45ccb87908f1d4a2f7964a01d11a74da6e9fdb7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change allows redirection of logging facilities, from syslog to a
file.

Bug: None
Test: make tests  // see logging in stderr
Change-Id: Ia45ccb87908f1d4a2f7964a01d11a74da6e9fdb7
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve compiler logging</title>
<updated>2017-09-14T13:16:06+00:00</updated>
<author>
<name>Luis Hector Chavez</name>
<email>lhchavez@google.com</email>
</author>
<published>2017-08-29T02:30:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=7624e716094e37a55662c1b836656c5025856ae2'/>
<id>7624e716094e37a55662c1b836656c5025856ae2</id>
<content type='text'>
This change adds line numbers to the logs emitted when compiling syscall
filter policy files.

Bug: None
Test: See filenames+line numbers in syslog
Change-Id: Id6fb7d097f60e317269b5abd03b5a6929db6cd40
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change adds line numbers to the logs emitted when compiling syscall
filter policy files.

Bug: None
Test: See filenames+line numbers in syslog
Change-Id: Id6fb7d097f60e317269b5abd03b5a6929db6cd40
</pre>
</div>
</content>
</entry>
<entry>
<title>syscall_filter: Refactor 'compile_file' out of 'compile_filter'.</title>
<updated>2017-03-20T17:41:24+00:00</updated>
<author>
<name>Jorge Lucangeli Obes</name>
<email>jorgelo@google.com</email>
</author>
<published>2017-03-15T21:02:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=45932a51abc18f3daddba7776fcfe7d3517da68c'/>
<id>45932a51abc18f3daddba7776fcfe7d3517da68c</id>
<content type='text'>
The new in-process crash dumping on Android could use functionality to
include policy files in other policy files. The use case would be to
add a short section of syscalls required for crash dumping to processes
already using syscall filtering.

The first step to do this is to extract the functionality that parses
an individual file to a separate function, so that it can be called
multiple times.

Implementation of the include directive will be done in a follow-up CL.

Bug: 36007996
Test: New unit tests, but no change in functionality.

Change-Id: I4097513bf11c23af67b6741fceb5c7abe360396e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new in-process crash dumping on Android could use functionality to
include policy files in other policy files. The use case would be to
add a short section of syscalls required for crash dumping to processes
already using syscall filtering.

The first step to do this is to extract the functionality that parses
an individual file to a separate function, so that it can be called
multiple times.

Implementation of the include directive will be done in a follow-up CL.

Bug: 36007996
Test: New unit tests, but no change in functionality.

Change-Id: I4097513bf11c23af67b6741fceb5c7abe360396e
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix BPF instruction count bug.</title>
<updated>2016-09-30T18:25:44+00:00</updated>
<author>
<name>Jorge Lucangeli Obes</name>
<email>jorgelo@google.com</email>
</author>
<published>2016-09-30T00:25:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=f16d6d177fdbf41f6d4389436dbbe5d2b84cd519'/>
<id>f16d6d177fdbf41f6d4389436dbbe5d2b84cd519</id>
<content type='text'>
We were accidentally capping the total number of BPF instructions at
256 when doing label fixup.

Also add a simple binary to print a compiled policy.

Bug: 31848734
Test: Policy attached to the bug works.

Change-Id: I9df058e2f4888289db0219d65ca97851fac515d0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We were accidentally capping the total number of BPF instructions at
256 when doing label fixup.

Also add a simple binary to print a compiled policy.

Bug: 31848734
Test: Policy attached to the bug works.

Change-Id: I9df058e2f4888289db0219d65ca97851fac515d0
</pre>
</div>
</content>
</entry>
</feed>
