<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_external_minijail/libminijail_unittest.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>libminijail: localize internal APIs</title>
<updated>2020-09-10T09:01:12+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2020-09-04T20:18:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=0a27ab0f586a3b6d60c7aa4b7750dfb6dc345c9c'/>
<id>0a27ab0f586a3b6d60c7aa4b7750dfb6dc345c9c</id>
<content type='text'>
These aren't used outside of this module, so make sure they're all
marked static.  The symbols weren't being exported, but the compiler
wasn't able to optimize things as well.  This shrinks the library a
little bit.

Also delete the unused minijail_get_tmpfs_size helper.

Bug: None
Test: `make check` passes
Change-Id: Iec243430e7643062ce32b56a8d885561c1bd3db5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These aren't used outside of this module, so make sure they're all
marked static.  The symbols weren't being exported, but the compiler
wasn't able to optimize things as well.  This shrinks the library a
little bit.

Also delete the unused minijail_get_tmpfs_size helper.

Bug: None
Test: `make check` passes
Change-Id: Iec243430e7643062ce32b56a8d885561c1bd3db5
</pre>
</div>
</content>
</entry>
<entry>
<title>util: move unittests to the right module</title>
<updated>2020-09-03T22:14:11+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2020-09-03T22:10:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=70b15b82a705bfbf74f80bdee243ae486e52d033'/>
<id>70b15b82a705bfbf74f80bdee243ae486e52d033</id>
<content type='text'>
Move unittests specifically for util funcs to the util_unittest
module.  This makes it easier to check coverage.

Bug: None
Test: `make check` still passes
Change-Id: I8880f9f18ab1986b0389403090bce60a2d3f81d7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move unittests specifically for util funcs to the util_unittest
module.  This makes it easier to check coverage.

Bug: None
Test: `make check` still passes
Change-Id: I8880f9f18ab1986b0389403090bce60a2d3f81d7
</pre>
</div>
</content>
</entry>
<entry>
<title>Set library path in unittest</title>
<updated>2020-06-11T01:06:20+00:00</updated>
<author>
<name>Dylan Reid</name>
<email>dgreid@google.com</email>
</author>
<published>2020-06-10T22:17:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=83276a060dfc0788c8a5bb25c6c9a8eab81fd932'/>
<id>83276a060dfc0788c8a5bb25c6c9a8eab81fd932</id>
<content type='text'>
Tell minijail to use the locally built libminijailpreload.so file
instead of searching the system path when running this test.
The unittest can be run on a system without minijail installed and would
fail in that case, plus we should test the newly built preload library.

Before this change my github mirror's cli was upset because it didn't
have the lib installed and git CI was added this year.

Bug: None
Test: libminijail_unittest passes

Change-Id: I69d71b2f100ad6b9987ebca3d4d6ac1bbbb656dd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tell minijail to use the locally built libminijailpreload.so file
instead of searching the system path when running this test.
The unittest can be run on a system without minijail installed and would
fail in that case, plus we should test the newly built preload library.

Before this change my github mirror's cli was upset because it didn't
have the lib installed and git CI was added this year.

Bug: None
Test: libminijail_unittest passes

Change-Id: I69d71b2f100ad6b9987ebca3d4d6ac1bbbb656dd
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test minijail_preserve_fd_no_leak</title>
<updated>2020-04-21T00:48:01+00:00</updated>
<author>
<name>François Degros</name>
<email>fdegros@chromium.org</email>
</author>
<published>2020-04-16T23:31:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=26f8e4e8ebcc4d33d565a976a181107bd853826a'/>
<id>26f8e4e8ebcc4d33d565a976a181107bd853826a</id>
<content type='text'>
Added test to check if minijail_preserve_fd actually causes the original
file descriptor to be closed in the child process.

BUG=chromium:1071691
TEST=Run Minijail unit tests

Change-Id: Id123500f7132c12158d0974cd6c332bac34cd2ab
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added test to check if minijail_preserve_fd actually causes the original
file descriptor to be closed in the child process.

BUG=chromium:1071691
TEST=Run Minijail unit tests

Change-Id: Id123500f7132c12158d0974cd6c332bac34cd2ab
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow passing environment also for LD_PRELOAD</title>
<updated>2020-02-12T16:35:57+00:00</updated>
<author>
<name>Mattias Nissler</name>
<email>mnissler@google.com</email>
</author>
<published>2020-02-07T12:37:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=b35f2c18a022f3f2f06869c306a788d9ff361348'/>
<id>b35f2c18a022f3f2f06869c306a788d9ff361348</id>
<content type='text'>
This expands support for passing an environment for the child process
also for the LD_PRELOAD case. The code now constructs the enviroment
for the child in a separate environment array for both code paths.
This also avoids messing with the parent's environment, which may have
unintended side effects.

BUG=chromium:1050997
TEST=New unit tests.

Change-Id: Ib05cad1d1ebe6e10d429501c8e467c3a53632753
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This expands support for passing an environment for the child process
also for the LD_PRELOAD case. The code now constructs the enviroment
for the child in a separate environment array for both code paths.
This also avoids messing with the parent's environment, which may have
unintended side effects.

BUG=chromium:1050997
TEST=New unit tests.

Change-Id: Ib05cad1d1ebe6e10d429501c8e467c3a53632753
</pre>
</div>
</content>
</entry>
<entry>
<title>minijail: Change some C-style casts to const_casts in unit tests</title>
<updated>2019-10-28T00:54:11+00:00</updated>
<author>
<name>François Degros</name>
<email>fdegros@chromium.org</email>
</author>
<published>2019-10-09T23:22:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=87f0e839c6c17111e8aa0d8e1212a943721d9009'/>
<id>87f0e839c6c17111e8aa0d8e1212a943721d9009</id>
<content type='text'>
Bug: None
Tests: Unit tests pass

Change-Id: Id0ed9e85821470eff597e65642df263b2f8793c7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: None
Tests: Unit tests pass

Change-Id: Id0ed9e85821470eff597e65642df263b2f8793c7
</pre>
</div>
</content>
</entry>
<entry>
<title>Use *_no_preload in dup test.</title>
<updated>2019-10-24T15:19:51+00:00</updated>
<author>
<name>Jorge Lucangeli Obes</name>
<email>jorgelo@google.com</email>
</author>
<published>2019-10-24T15:19:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=7c696e4068573062c407ad5eeb43276c118e1e67'/>
<id>7c696e4068573062c407ad5eeb43276c118e1e67</id>
<content type='text'>
Otherwise when running the unit tests on Linux this test fails.

Bug: None
Test: make -j48 tests passes on gLinux.
Change-Id: Id6a8778fd4ff05190766579859227d042dfae1fb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise when running the unit tests on Linux this test fails.

Bug: None
Test: make -j48 tests passes on gLinux.
Change-Id: Id6a8778fd4ff05190766579859227d042dfae1fb
</pre>
</div>
</content>
</entry>
<entry>
<title>Close original pipe end after dup2 in child process</title>
<updated>2019-10-17T05:32:51+00:00</updated>
<author>
<name>François Degros</name>
<email>fdegros@chromium.org</email>
</author>
<published>2019-10-01T02:06:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=a8be2c42e3028b7a68ad6f993dfdd44054bdad39'/>
<id>a8be2c42e3028b7a68ad6f993dfdd44054bdad39</id>
<content type='text'>
This avoids "leaking" duplicated file descriptors in the child process.

This also allows the child process to signal the end of its processing
by closing its stdout and stderr. This can now be reliably detected by
the parent process, if needed.

Bug: chromium:1009857
Test: Unit tests pass
Change-Id: Ie1cd4ff9e95f18e423df007f88bfff34456346f3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This avoids "leaking" duplicated file descriptors in the child process.

This also allows the child process to signal the end of its processing
by closing its stdout and stderr. This can now be reliably detected by
the parent process, if needed.

Bug: chromium:1009857
Test: Unit tests pass
Change-Id: Ie1cd4ff9e95f18e423df007f88bfff34456346f3
</pre>
</div>
</content>
</entry>
<entry>
<title>Made minijail_kill return the same code as minijail_wait</title>
<updated>2019-10-16T09:17:03+00:00</updated>
<author>
<name>François Degros</name>
<email>fdegros@chromium.org</email>
</author>
<published>2019-10-01T03:01:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=47e63358c05accc13dd37e604ae9c990eb2b7608'/>
<id>47e63358c05accc13dd37e604ae9c990eb2b7608</id>
<content type='text'>
Bug: chromium:1007557
Test: Unit tests pass
Change-Id: I26118292e0880a4ad2d39a0a59b0dd06ff338a52
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: chromium:1007557
Test: Unit tests pass
Change-Id: I26118292e0880a4ad2d39a0a59b0dd06ff338a52
</pre>
</div>
</content>
</entry>
<entry>
<title>minijail_wait returns 126 or 127 if execve fails in child process</title>
<updated>2019-10-11T04:43:35+00:00</updated>
<author>
<name>François Degros</name>
<email>fdegros@chromium.org</email>
</author>
<published>2019-10-09T01:44:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_minijail/commit/?id=08b10f7beb037016842e25625b22524c57f931f1'/>
<id>08b10f7beb037016842e25625b22524c57f931f1</id>
<content type='text'>
This is more consistent than returning 255.

See "Exit Status for Commands":
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_02

Bug: https://crbug.com/1012561
Change-Id: I1ab5c08628719f58b7395b0e55bc4a0b0032bd56
Tests: Unit tests pass
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is more consistent than returning 255.

See "Exit Status for Commands":
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_02

Bug: https://crbug.com/1012561
Change-Id: I1ab5c08628719f58b7395b0e55bc4a0b0032bd56
Tests: Unit tests pass
</pre>
</div>
</content>
</entry>
</feed>
