History log of /bionic/tests/sys_prctl_test.cpp
Revision Date Author Comments
ba1f77d6504f74c1fad44119e1b2f912ce5aae23 07-Dec-2016 Greg Hackmann <ghackmann@google.com> Add test for ambient caps

PR_CAP_AMBIENT landed in 4.3 and has been backported to earlier kernels
in kernel/common.

Test: bionic-unit-test --gtest_filter=sys_prctl.pr_cap_ambient
Change-Id: I632f6316ef1a4eb636d2bf7e07d541e400567ef4
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2993aaa261d69aae0fce3de8c5533ee956d71907 24-Nov-2016 Brian Carlstrom <bdc@google.com> Fix x86_64 build which uses g++ and hits -Werror=unused-but-set-variable

Bug: 32640542
Bug: 33078014
Change-Id: Id9d3b4e69ac909078b2ac5b81acf161debcefae3
1dc3ae163e6190508e5b32f256622daa1146bc6b 08-Nov-2016 Christopher Ferris <cferris@google.com> Fix error case to print newlines properly.

Bug: 32640542

Test: Built and ran on a failing device.

(cherry picked from commit 4dd2785f056f885e6dc9a022b867f511c2e83c3c)

Change-Id: I81a578af7608c741819062bd54aa8e348a621b83
f1e44785e57c10d3f125ad3ef759c7e09fbb92a3 04-Nov-2016 Christopher Ferris <cferris@google.com> Make prctl test check maps.

It turns out that sometimes this kernel bug can be present but not
trigger a crash. Modify the test to check for overlapping maps instead.

Bug: 32640542

Test: Verified that this fails on a device without the kernel patch
Test: (both bionic-unit-tests32 and CtsBionicTestCases32). Verified
Test: this passes on an angler.

(cherry picked from commit f1649d92f7869331ea1c4db7f2bb189489af03e6)

Change-Id: Ia3fae3ee3d01f33d8414c1796fc3e942d5b56ec8
4dd2785f056f885e6dc9a022b867f511c2e83c3c 08-Nov-2016 Christopher Ferris <cferris@google.com> Fix error case to print newlines properly.

Bug: 32640542

Test: Built and ran on a failing device.
Change-Id: I81a578af7608c741819062bd54aa8e348a621b83
f1649d92f7869331ea1c4db7f2bb189489af03e6 04-Nov-2016 Christopher Ferris <cferris@google.com> Make prctl test check maps.

It turns out that sometimes this kernel bug can be present but not
trigger a crash. Modify the test to check for overlapping maps instead.

Bug: 32640542

Test: Verified that this fails on a device without the kernel patch
Test: (both bionic-unit-tests32 and CtsBionicTestCases32). Verified
Test: this passes on an angler.

Change-Id: Ia3fae3ee3d01f33d8414c1796fc3e942d5b56ec8
a9209d7a0ee7ef40f9a14cab2b6756d7e6f8b919 17-Sep-2016 Elliott Hughes <enh@google.com> Fix some easy cases of __ANDROID__ versus __BIONIC__.

We need to make a clearer distinction for bionic on the host. This patch
doesn't fully address things like "should host bionic try to talk to netd?"
for now, but is a step in the right direction.

Bug: http://b/31559095
Test: bionic tests.
Change-Id: I49812f8b75d9d78c4fd8a8ddf5df1201d63771d6
91ce715af1a1a22f6b29f1218843f29a4d0b0e0b 14-Jul-2015 Yabin Cui <yabinc@google.com> Add test for an Android kernel bug about prctl.

Bug: 20017123

Change-Id: I8c109a06999a8bffcc8e8298b04ee637bb67d878