Jiyong Park
a55bf0970d
Merge "libziparchive headers are moved to local directory" am: 7b44858b91 am: 4724e91dad
...
am: da3af937a1
Change-Id: Id24f61623f260a77adb720d23e5f7ffe25410917
2017-07-03 08:18:20 +00:00
Jiyong Park
da3af937a1
Merge "libziparchive headers are moved to local directory" am: 7b44858b91
...
am: 4724e91dad
Change-Id: I64400ffb9578be19d187e02efb6ef9204af783cf
2017-07-03 08:15:20 +00:00
Jiyong Park
4724e91dad
Merge "libziparchive headers are moved to local directory"
...
am: 7b44858b91
Change-Id: I77e446012003528ae4180f8450bc96563259f34f
2017-07-03 08:12:51 +00:00
Treehugger Robot
7b44858b91
Merge "libziparchive headers are moved to local directory"
2017-07-03 08:06:40 +00:00
Jiyong Park
55b896f1e5
Merge "Ran clang-format on libziparchive sources and headers" am: aa82721894 am: 1fd5216370
...
am: b84d631915
Change-Id: I25f310f90c956ab5702d3e3487e911160922a25d
2017-07-03 00:54:56 +00:00
Jiyong Park
b84d631915
Merge "Ran clang-format on libziparchive sources and headers" am: aa82721894
...
am: 1fd5216370
Change-Id: I24362dbd4aa00ef2cb9c6a5ffebbe67d5bad2df6
2017-07-03 00:52:26 +00:00
Jiyong Park
1fd5216370
Merge "Ran clang-format on libziparchive sources and headers"
...
am: aa82721894
Change-Id: I04d2e03437ea1ada667c9fcc7b6e633a0c13712f
2017-07-03 00:49:56 +00:00
Treehugger Robot
aa82721894
Merge "Ran clang-format on libziparchive sources and headers"
2017-07-03 00:45:16 +00:00
Jiyong Park
cdf7ff8e20
libziparchive headers are moved to local directory
...
libziparchive headers are moved from the global include directory
(/system/core/include) to the local directory inside libziparchive.
Note: /system/core/include/ziparchive still exists as a symlink to
libarchive/include/ziparchive. This will be removed when there is no
header-only dependency to libziparchive.
Bug: 37342627
Test: build
Change-Id: I3631ffc2df7be8a064d64a625d10436090c3bb0f
2017-07-02 04:33:34 +00:00
Jiyong Park
cd997e6094
Ran clang-format on libziparchive sources and headers
...
Test: build aosp_arm
Change-Id: I469b82b68f2c457f480fb9cd9da2026672985ce3
2017-07-02 11:46:53 +09:00
Nick Kralevich
4192d74a83
Merge "Remove unnecessary SELinux dependencies" am: 22de50d351 am: e9b9b10c58
...
am: 0056e6bccc
Change-Id: Id160e23a6bd53238ad279bb5b28e7ca8a08c0805
2017-07-01 16:49:35 +00:00
Nick Kralevich
0056e6bccc
Merge "Remove unnecessary SELinux dependencies" am: 22de50d351
...
am: e9b9b10c58
Change-Id: Ifead418ceb9fe806d76102d9068a32539a8b99d0
2017-07-01 16:44:36 +00:00
Nick Kralevich
e9b9b10c58
Merge "Remove unnecessary SELinux dependencies"
...
am: 22de50d351
Change-Id: Icbd6b0df4378980eb2a7878bab1896f6ecefb6a8
2017-07-01 16:39:37 +00:00
Treehugger Robot
22de50d351
Merge "Remove unnecessary SELinux dependencies"
2017-07-01 16:35:17 +00:00
Nick Kralevich
33391dad15
Remove unnecessary SELinux dependencies
...
These are unused.
Test: code compiles.
Change-Id: Idd707dfcc8f6daac3a489c791ecc364841cf31f9
2017-07-01 07:41:48 -07:00
Luis Hector Chavez
dd79958ecb
Merge "init: Read previous state of securebits before modifying" am: c10e14110a am: 19f32317b3
...
am: 9dabbbaa6a
Change-Id: Id5cdc260c7f6800e493c0f3b4e0da08ddca34b63
2017-07-01 00:39:42 +00:00
Luis Hector Chavez
9dabbbaa6a
Merge "init: Read previous state of securebits before modifying" am: c10e14110a
...
am: 19f32317b3
Change-Id: I87084032373a71b507ed0604c7ff38ec076fc74a
2017-07-01 00:35:11 +00:00
Luis Hector Chavez
19f32317b3
Merge "init: Read previous state of securebits before modifying"
...
am: c10e14110a
Change-Id: I0a9b2dc97ebbc449288de2ce3e2745a1f60a4372
2017-07-01 00:30:42 +00:00
Treehugger Robot
c10e14110a
Merge "init: Read previous state of securebits before modifying"
2017-07-01 00:20:50 +00:00
Luis Hector Chavez
f5965519d1
init: Read previous state of securebits before modifying
...
When Android is running in a container, some of the securebits might be
locked, which makes prctl(PR_SET_SECUREBITS) fail.
This change gets the previous state of the process' securebits and adds
the desired bits.
Bug: 62388055
Test: aosp_bullhead-eng boots
Test: If init has non-zero securebits, it can also boot
Change-Id: Ie03bf2538f9dca40955bc58314d269246f5731bd
2017-06-30 14:42:46 -07:00
Steven Moreland
f73510e78d
Merge "logd + liblogd to Android.bp" am: c997cd64dc am: f7a68f02d5
...
am: 25982a424b
Change-Id: I08172e23da0b58054380754b6db7c7e62069c2d9
2017-06-30 19:49:16 +00:00
Steven Moreland
25982a424b
Merge "logd + liblogd to Android.bp" am: c997cd64dc
...
am: f7a68f02d5
Change-Id: I0b117103fb0bcf0b187107d10d04ceaa6a8ee499
2017-06-30 19:45:07 +00:00
Steven Moreland
f7a68f02d5
Merge "logd + liblogd to Android.bp"
...
am: c997cd64dc
Change-Id: I3cdc65fec1cd8487da86621a3381692ccd641756
2017-06-30 19:40:45 +00:00
Treehugger Robot
c997cd64dc
Merge "logd + liblogd to Android.bp"
2017-06-30 19:32:41 +00:00
Tianjie Xu
bf6f0eeb10
Merge changes Ie89f709b,Ibf543a7d,I1d8092a1 am: 67897d47ce -s ours am: 14f913817f -s ours
...
am: 5f7bb2b1df -s ours
Change-Id: I88ffdc026b294f511b43bfe7c9c36d18bee8d0f9
2017-06-30 15:55:13 +00:00
Tianjie Xu
5f7bb2b1df
Merge changes Ie89f709b,Ibf543a7d,I1d8092a1 am: 67897d47ce -s ours
...
am: 14f913817f -s ours
Change-Id: I74f5fd6117de8b9aab9913cba352183348d56cd5
2017-06-30 15:50:42 +00:00
Tianjie Xu
14f913817f
Merge changes Ie89f709b,Ibf543a7d,I1d8092a1
...
am: 67897d47ce -s ours
Change-Id: I92f71f1f89759f5f670577b87650141ebf859efc
2017-06-30 15:46:13 +00:00
Treehugger Robot
67897d47ce
Merge changes Ie89f709b,Ibf543a7d,I1d8092a1
...
* changes:
Fix out of bound read in libziparchive
Check filename memory bound when parsing ziparchive
Fix out of bound access in libziparchive
2017-06-30 15:38:13 +00:00
Tianjie Xu
0fda1cf633
Fix out of bound read in libziparchive
...
We should check the boundary of central directory before checking its
signature. Swap the order of these two checks.
Bug: 36392138
Test: libziparchive doesn't read the signature after boundary check fails.
Merged-In: Ie89f709bb2d1ccb647116fb7ccb1e23c943e5ab8
Change-Id: Ie89f709bb2d1ccb647116fb7ccb1e23c943e5ab8
(cherry picked from commit 74464a1361 )
2017-06-30 17:19:56 +09:00
Tianjie Xu
9e020e2d11
Check filename memory bound when parsing ziparchive
...
Add a check to ensure the filename boundary doesn't exceed the mapped
memory region. Also add the corresponding unit test.
Bug: 28802225
Test: New unit test passes.
Merged-In: Ibf543a7da3d7898952e9eb332c84cdfc67cf5aa4
Change-Id: Ibf543a7da3d7898952e9eb332c84cdfc67cf5aa4
(cherry picked from commit bcc4431f24 )
2017-06-30 17:19:28 +09:00
Tianjie Xu
fba1a36fd9
Fix out of bound access in libziparchive
...
The boundary check of an invalid EOCD record may succeed due to the
overflow of uint32_t. Fix the check and add a unit test.
Test: Open the crash.apk and libziparchive reports the offset error as expected.
Bug: 31251826
Merged-In: I1d8092a19b73886a671bc9d291cfc27d65e3d236
Change-Id: I1d8092a19b73886a671bc9d291cfc27d65e3d236
(cherry picked from commit ae8180c06d )
2017-06-30 17:18:31 +09:00
Colin Cross
33c6549f73
Merge "Fix ScopedSignalHandler" am: 7dbf1a187e am: 1deafe164b
...
am: 9a29d20486
Change-Id: I0d6f957a8cd0f6feeb2f2ccc89b858bdfa8190cd
2017-06-30 06:59:07 +00:00
Colin Cross
9a29d20486
Merge "Fix ScopedSignalHandler" am: 7dbf1a187e
...
am: 1deafe164b
Change-Id: Ie40e77a28100eddb12a85cc8bcd31f169f317805
2017-06-30 06:54:38 +00:00
Colin Cross
1deafe164b
Merge "Fix ScopedSignalHandler"
...
am: 7dbf1a187e
Change-Id: Ic85a20682ecaa109d03827a694efd751e0fb9418
2017-06-30 06:50:38 +00:00
Treehugger Robot
7dbf1a187e
Merge "Fix ScopedSignalHandler"
2017-06-30 06:44:40 +00:00
Luis Hector Chavez
1b42dbf22c
Merge changes I0a95f87a,I36b22986 am: a703202093 am: 835d259e7a
...
am: 40e88b22f2
Change-Id: I04e3d91d34d2c50d15ab2357db175b1f69796af1
2017-06-30 04:33:30 +00:00
Luis Hector Chavez
40e88b22f2
Merge changes I0a95f87a,I36b22986 am: a703202093
...
am: 835d259e7a
Change-Id: I329bddc9b470da86d07bde3ce3ab8a69c37a38e2
2017-06-30 04:29:28 +00:00
Luis Hector Chavez
835d259e7a
Merge changes I0a95f87a,I36b22986
...
am: a703202093
Change-Id: Id0ab2a68ade41db6c1327d9b96489bf0f9a223cb
2017-06-30 04:24:32 +00:00
Treehugger Robot
a703202093
Merge changes I0a95f87a,I36b22986
...
* changes:
init: Use ScopedCaps for cap_init()
init: Reland "Terminate gracefully when CAP_SYS_BOOT is absent"
2017-06-30 04:19:09 +00:00
Robert Benea
888d9e198b
Merge "Use mem cgroups in libprocessgroup if they're available" am: d3afc124b6 am: 46706e6824
...
am: 74c02e7b58
Change-Id: Iba2c643286063a9ffa22f3917f8acbcca1d77ef3
2017-06-30 02:41:24 +00:00
Robert Benea
74c02e7b58
Merge "Use mem cgroups in libprocessgroup if they're available" am: d3afc124b6
...
am: 46706e6824
Change-Id: I88b0928e78f4faf6eebfe94ef7c1e528dc543327
2017-06-30 02:36:53 +00:00
Robert Benea
46706e6824
Merge "Use mem cgroups in libprocessgroup if they're available"
...
am: d3afc124b6
Change-Id: Idd72671eb144343a73a02bfbde8603265ca78650
2017-06-30 02:32:24 +00:00
Robert Benea
d3afc124b6
Merge "Use mem cgroups in libprocessgroup if they're available"
2017-06-30 02:26:30 +00:00
Colin Cross
eac4ecc34f
Fix ScopedSignalHandler
...
I4ae2d82fdfdd58cf8ef1dfb6c401cef4ba9d3e88 broke memunreachable_test
by replacing signal_ with signal.
Test: memunreachable_test
Change-Id: I8148321e3a94530867106708a33b5b63ed867380
2017-06-29 17:13:35 -07:00
Elliott Hughes
f4b01412f1
Merge "Remove more documentation for obsolete board configuration." am: 73a6512bab am: 09181f3dd9
...
am: 94d5235c25
Change-Id: I128a89de4783b152f4129d0c5f16e766ed349ea2
2017-06-30 00:07:45 +00:00
Elliott Hughes
94d5235c25
Merge "Remove more documentation for obsolete board configuration." am: 73a6512bab
...
am: 09181f3dd9
Change-Id: I95e37353d84e69df12a2b5ef36b02b771cbbf0eb
2017-06-30 00:03:45 +00:00
Elliott Hughes
09181f3dd9
Merge "Remove more documentation for obsolete board configuration."
...
am: 73a6512bab
Change-Id: I964c133a654efbc3d40bbebc7247863455e8cb54
2017-06-29 23:59:43 +00:00
Elliott Hughes
73a6512bab
Merge "Remove more documentation for obsolete board configuration."
2017-06-29 23:50:37 +00:00
Robert Benea
32375c2328
Use mem cgroups in libprocessgroup if they're available
...
Use mem cgroups if the kernel is built with CONFIG_MEMCG=y,
additionally add system group.
test: verified on both kernel with/without memcg enabled
Change-Id: Ib9d1c8e3c797e75f160e0e92edf3f11c9d8e9f17
2017-06-29 23:49:00 +00:00
Christopher Ferris
2b49c8ceb7
Merge "Remove assert, use CHECK instead." am: 5d6d932a60 am: a520b8baa8
...
am: fc04d39ab5
Change-Id: Ifae83c8dd425b554b948b7b25edffc9e8981f2bf
2017-06-29 23:01:25 +00:00