Commit Graph

21930 Commits

Author SHA1 Message Date
Neil Fuller
344d54c3fb am abf5ef8f: Merge "Add tzdatacheck to image"
* commit 'abf5ef8fdd96cee524f8d6518b19f8092d6a6e46':
  Add tzdatacheck to image
2015-05-15 09:30:35 +00:00
Neil Fuller
abf5ef8fdd Merge "Add tzdatacheck to image" 2015-05-15 09:09:46 +00:00
Yu Ning
a5053e6b35 Label /dev/goldfish_pipe as qemu_device
In goldfish kernel 3.10, qemu_pipe has been renamed to goldfish_pipe.
However, in the emulator's SELinux policy, there is no specific security
context assigned to /dev/goldfish_pipe, and the one inherited from /dev
(u:object_r:device:s0) prevents various processes (qemud, qemu-props,
etc.) from reading and writing goldfish_pipe. Consequently, the classic
x86_64 emulator will not boot if GPU emulation is enabled ("-gpu host"),
and does not render the UI correctly if launched with "-gpu off".

Fix this issue by assigning /dev/goldfish_pipe the same security context
as /dev/qemu_pipe.

This CL also benefits the new ("ranchu") emulator, where all supported
ABIs (arm64, mips64, x86 and x86_64) use 3.10-based kernels. Without
this fix, the new emulator boots and works, but there are avc denials
related to goldfish_pipe.

Last but not least, it is now possible to boot the classic x86 emulator
with a 3.10-based kernel instead of the current 3.4-based one, without
disabling SELinux.

Change-Id: Iad979c0ee9d0a410be12b83ac1bef9476b50a6dc
Signed-off-by: Yu Ning <yu.ning@intel.com>
2015-05-15 16:30:57 +08:00
Elliott Hughes
7c0bcfb61d Explain __USE_MINGW_ANSI_STDIO.
Change-Id: I6900a7cddfb5aa4365c3e0f6f6f0fa9203c0fe43
2015-05-14 20:55:49 -07:00
Ying Wang
7ffd7c207b am df5c798f: Merge "[MIPS] Temporarily disable Mips shared-textrel errors"
* commit 'df5c798f368bc16a858281b4d5d0ecc2b7040cfe':
  [MIPS] Temporarily disable Mips shared-textrel errors
2015-05-14 16:26:33 +00:00
Ying Wang
df5c798f36 Merge "[MIPS] Temporarily disable Mips shared-textrel errors" 2015-05-14 16:11:59 +00:00
Jeff Vander Stoep
dfd58ba54e am 7033819e: Merge "Remove unused #include <selinux/android.h>"
* commit '7033819eeba08f9e550bc50fd1b01625d5f7e673':
  Remove unused #include <selinux/android.h>
2015-05-14 15:41:45 +00:00
Jeff Vander Stoep
7033819eeb Merge "Remove unused #include <selinux/android.h>" 2015-05-14 15:27:51 +00:00
Neil Fuller
84b983a7ef Add tzdatacheck to image
Bug: 21110439
Bug: 19941636
(cherry picked from commit 7d18a68417)

Change-Id: I29ab303d2695ba1cadf70c2d2f4440d34a8cede9
2015-05-14 12:02:58 +01:00
Jeff Vander Stoep
80ae3084d0 Remove unused #include <selinux/android.h>
Change-Id: Iebc59784c7318edb1c1f686e040ed581259bdd5a
2015-05-13 14:24:04 -07:00
Elliott Hughes
385cdb7855 am 0dac6788: Merge "Revert "Revert "Turn on _FORTIFY_SOURCE=2 for the host."""
* commit '0dac67880b6e1ddec9d4aa5ed741e2f62bd96284':
  Revert "Revert "Turn on _FORTIFY_SOURCE=2 for the host.""
2015-05-13 21:22:17 +00:00
Elliott Hughes
0dac67880b Merge "Revert "Revert "Turn on _FORTIFY_SOURCE=2 for the host.""" 2015-05-13 21:12:22 +00:00
Elliott Hughes
56ad425025 am 1d8e8c96: Merge "Add libbenchmark\'s new dependency on libbase."
* commit '1d8e8c96941fb9ea9a7980104506ab9dbdfc2e68':
  Add libbenchmark's new dependency on libbase.
2015-05-13 21:00:53 +00:00
Elliott Hughes
1d8e8c9694 Merge "Add libbenchmark's new dependency on libbase." 2015-05-13 20:53:32 +00:00
Elliott Hughes
b2b6646578 Add libbenchmark's new dependency on libbase.
Change-Id: I6f9700b3e51a3b681d3d91b88103eed31764f61e
2015-05-13 13:47:30 -07:00
Elliott Hughes
7dd8ec1761 Revert "Revert "Turn on _FORTIFY_SOURCE=2 for the host.""
This reverts commit e27b214fc2.

Change-Id: I3d739c0594dbe4ecd62c5b07064ada7de6cdaadb
2015-05-13 20:15:19 +00:00
Elliott Hughes
463377d0c4 am 2a3034b3: Merge "Revert "Turn on _FORTIFY_SOURCE=2 for the host.""
* commit '2a3034b33650b68e6b8335b9698e9330079c6ef6':
  Revert "Turn on _FORTIFY_SOURCE=2 for the host."
2015-05-13 19:39:55 +00:00
Elliott Hughes
35fb49df32 am b58119ea: Merge "Turn on _FORTIFY_SOURCE=2 for the host."
* commit 'b58119eab44bc5fe32353cda5f09661042618dde':
  Turn on _FORTIFY_SOURCE=2 for the host.
2015-05-13 19:39:53 +00:00
Tao Bao
412a5c3f52 am 2f7ae925: Merge "Add support for clobbered blocks"
* commit '2f7ae925a3fa7f46fbfe6bb22b9b7c5962de49aa':
  Add support for clobbered blocks
2015-05-13 19:39:51 +00:00
Elliott Hughes
2a3034b336 Merge "Revert "Turn on _FORTIFY_SOURCE=2 for the host."" 2015-05-13 19:33:17 +00:00
Elliott Hughes
e27b214fc2 Revert "Turn on _FORTIFY_SOURCE=2 for the host."
This reverts commit 224806d00e.

Change-Id: I654157ec4be7ff95356ab4a25b27c44762793e74
2015-05-13 19:32:59 +00:00
Elliott Hughes
b58119eab4 Merge "Turn on _FORTIFY_SOURCE=2 for the host." 2015-05-13 19:10:37 +00:00
Tao Bao
2f7ae925a3 Merge "Add support for clobbered blocks" 2015-05-13 19:03:08 +00:00
Tao Bao
84d3af3eaa am dc618332: Merge "Add bootsigner path as an option"
* commit 'dc618332644cb01bfa1354f0299fc9dadc1cb592':
  Add bootsigner path as an option
2015-05-13 18:50:59 +00:00
Tao Bao
dc61833264 Merge "Add bootsigner path as an option" 2015-05-13 18:42:17 +00:00
dcashman
eab5ab5df5 am 3979b9bd: Merge "Remove libc++ from prepackaged shared libs in cts."
* commit '3979b9bdbc49db21d62b7d67a0b2c9b5007ee6b0':
  Remove libc++ from prepackaged shared libs in cts.
2015-05-13 18:29:36 +00:00
dcashman
3979b9bdbc Merge "Remove libc++ from prepackaged shared libs in cts." 2015-05-13 18:19:42 +00:00
Tao Bao
ff7778166b Add support for clobbered blocks
In ext4 filesystems, some blocks might be changed even being mounted
R/O, such as the superblock (block 0). We need to exclude such blocks
from integrity verification. Plus such blocks should always be
written to the target by copying instead of patching.

Bug: http://b/20939131
Change-Id: I991169ec307dfb231b2fe8908a0668595ecb2060
2015-05-13 11:19:39 -07:00
Duane Sand
3dfd20aea4 [MIPS] Temporarily disable Mips shared-textrel errors
Clang++ for Mips and Mips64 generates read-only exception unwind
tables that trigger DT_TEXTREL warnings at link time.  Until Clang
is fixed, ignore those performance warnings instead of failing the build.

With this patch, Mips clang++ can be (optionally) used when building
libdeqp.

NDK's Mips llvm has been using an alternate temporary fix, marking the
.gcc_exception_table section as read-write for Mips only:
   https://android-review.googlesource.com/#/c/119660/

A permanent fix using a read-only exception table is pending upstream:
   http://reviews.llvm.org/D9669

Change-Id: Ie0cd7da398acbe45dbe39adc251e7fd5b5ca1445
2015-05-13 11:07:20 -07:00
Baligh Uddin
852a5b531c Add bootsigner path as an option
Change-Id: I3d804b7937aafea8274b06edab097a6dca8f04cd
(cherry picked from commit e204868f1f)
2015-05-13 10:07:47 -07:00
dcashman
214a171424 Remove libc++ from prepackaged shared libs in cts.
Commit 28acbeab18f6083299c07f9ebe769d22e49f8107 removed the dependency of
sepolicy-analyze on libc++, eliminating the only consumer of the library for the
cts host-side tests.  Remove the library since it is no longer needed but leave
the ability to add other shared libs in the future.

Bug: 19566396
Change-Id: I4fbfa44ce9f099ad058fd0630ac48749e389e3e1
2015-05-13 09:07:51 -07:00
Elliott Hughes
224806d00e Turn on _FORTIFY_SOURCE=2 for the host.
Bug: http://b/20558757
Change-Id: Ic0c173d25dc6b2fa9c3122a523af5f37bc1b8c55
2015-05-12 21:41:52 -07:00
William Roberts
cccc901639 Update device to use set_prop() macro
Change-Id: I630ba0178439c935d08062892990d43a3cc1239e
Signed-off-by: William Roberts <william.c.roberts@linux.intel.com>
2015-05-12 20:44:37 -07:00
Andrew Hsieh
4b4c0df54a am 75f3c5a8: Merge "Revert "Revert "Enable linker -fix-cortex-a53-843419"""
* commit '75f3c5a8494a6c0415165645f9fb2c830445f943':
  Revert "Revert "Enable linker -fix-cortex-a53-843419""
2015-05-13 01:17:10 +00:00
Andrew Hsieh
75f3c5a849 Merge "Revert "Revert "Enable linker -fix-cortex-a53-843419""" 2015-05-13 01:08:51 +00:00
Dan Albert
939e5a0fa4 am a1e55c5f: Merge "Fix using libc++_static in dynamic binaries."
* commit 'a1e55c5f532f1f5bbc15b717bdb7ee4b1d45a25b':
  Fix using libc++_static in dynamic binaries.
2015-05-12 22:10:13 +00:00
Dan Albert
a1e55c5f53 Merge "Fix using libc++_static in dynamic binaries." 2015-05-12 22:00:33 +00:00
Dan Albert
2a4a023a54 Fix using libc++_static in dynamic binaries.
Change-Id: I89bacfbf270d2d1bc1b9b2fa6951b355a67b808c
2015-05-12 14:07:18 -07:00
Andrew Hsieh
0e0259cca6 Revert "Revert "Enable linker -fix-cortex-a53-843419""
This reverts commit 32e1689684.

Now that prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9 is also updated

Change-Id: Id95c1c4cc651c434461655e62b8f23afd56b53e4
2015-05-11 06:03:07 +00:00
Tao Bao
dcec9d0e28 am 44158945: Merge "Wrap zipfile.write(), writestr() and close()"
* commit '4415894579186c0c4f8d006ed625c0379b1b9d40':
  Wrap zipfile.write(), writestr() and close()
2015-05-08 23:06:36 +00:00
Tao Bao
4415894579 Merge "Wrap zipfile.write(), writestr() and close()" 2015-05-08 22:52:11 +00:00
Tao Bao
2ed665a033 Wrap zipfile.write(), writestr() and close()
In order to work around the zip 2GiB limit, we need to wrap the related
functions in zipfile. Calls to those functions should always be replaced
with calls to the wrappers instead.

Bug: 18015246
Change-Id: Ice494371ca6654e88ded2ae0eb680f51082effcb
2015-05-08 13:51:12 -07:00
Ying Wang
42d4401a87 am 9db69c1b: Merge "Add task to print transitive dependencies and their license files."
* commit '9db69c1b0891707cfb22aaa6158cd9d11312dffc':
  Add task to print transitive dependencies and their license files.
2015-05-07 22:55:37 +00:00
Ying Wang
9db69c1b08 Merge "Add task to print transitive dependencies and their license files." 2015-05-07 22:43:56 +00:00
Ying Wang
39b9b690a8 Add task to print transitive dependencies and their license files.
Print modules and their transitive dependencies with license files.
To invoke, run
"make deps-license PROJ_PATH=<proj-path-patterns> DEP_PATH=<dep-path-patterns>".
PROJ_PATH restricts the paths of the source modules;
DEP_PATH restricts the paths of the dependency modules.
Both can be makefile patterns supported by makefile function $(filter).
Example:
  $ make deps-license packages/app/% external/%
  prints all modules in packages/app/ with their dpendencies in external/.
The printout lines look like "<module_name> :: <module_paths> :: <license_files>".

Bug: 20823995
Change-Id: I06b66e85ff56c8628bffa3d948085ed45870100f
2015-05-07 15:43:01 -07:00
Dmitriy Ivanov
d64be40d11 am 0a00ef50: Merge "Do not pack relocations for executables"
* commit '0a00ef5084d6cb6adf3cc2a6f159410b51d2c13b':
  Do not pack relocations for executables
2015-05-07 21:22:44 +00:00
Dmitriy Ivanov
0a00ef5084 Merge "Do not pack relocations for executables" 2015-05-07 21:09:48 +00:00
Dmitriy Ivanov
e24b6f77ff Do not pack relocations for executables
Bug: http://b/20665974
Change-Id: Ibc13b5d6bd05dfbc7ff8475068fe7363f58e7e67
2015-05-07 13:10:02 -07:00
Andreas Gampe
2e286f467b am afec6236: Merge "Build: Update Mips64 generic build for ART"
* commit 'afec6236bbb8ab13908ddd71b0bfd0a142928e01':
  Build: Update Mips64 generic build for ART
2015-05-07 16:15:22 +00:00
Andreas Gampe
afec6236bb Merge "Build: Update Mips64 generic build for ART" 2015-05-07 16:02:16 +00:00