Commit graph

10 commits

Author SHA1 Message Date
Greg Hackmann
0b9c5be152 Merge "Add test for ambient caps" am: 51366e9b16 am: a505507056
am: 56795edd77

Change-Id: I0a1c8212ec3d6a9b367d01a01f52325d5a96dd48
2016-12-07 16:30:07 +00:00
Greg Hackmann
ba1f77d650 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>
2016-12-06 15:33:27 -08:00
Brian Carlstrom
b71d2f6cad Fix x86_64 build which uses g++ and hits -Werror=unused-but-set-variable
am: 2993aaa261

Change-Id: If389245812985975992b852cbadccfd84ea14fac
2016-11-24 04:12:56 +00:00
Brian Carlstrom
2993aaa261 Fix x86_64 build which uses g++ and hits -Werror=unused-but-set-variable
Bug: 32640542
Bug: 33078014
Change-Id: Id9d3b4e69ac909078b2ac5b81acf161debcefae3
2016-11-23 18:08:25 -08:00
Christopher Ferris
1dc3ae163e Fix error case to print newlines properly.
Bug: 32640542

Test: Built and ran on a failing device.

(cherry picked from commit 4dd2785f05)

Change-Id: I81a578af7608c741819062bd54aa8e348a621b83
2016-11-16 15:34:55 -08:00
Christopher Ferris
f1e44785e5 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 f1649d92f7)

Change-Id: Ia3fae3ee3d01f33d8414c1796fc3e942d5b56ec8
2016-11-16 15:32:25 -08:00
Christopher Ferris
4dd2785f05 Fix error case to print newlines properly.
Bug: 32640542

Test: Built and ran on a failing device.
Change-Id: I81a578af7608c741819062bd54aa8e348a621b83
2016-11-08 14:05:18 -08:00
Christopher Ferris
f1649d92f7 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
2016-11-06 23:25:34 -08:00
Elliott Hughes
a9209d7a0e 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
2016-09-16 18:27:07 -07:00
Yabin Cui
91ce715af1 Add test for an Android kernel bug about prctl.
Bug: 20017123

Change-Id: I8c109a06999a8bffcc8e8298b04ee637bb67d878
2015-07-13 19:15:38 -07:00