Commit graph

23523 commits

Author SHA1 Message Date
Daniel Cashman
09ee0a4252 Merge "Label /dev/goldfish_pipe as qemu_device" into mnc-dev 2015-05-15 15:42:24 +00:00
Yu Ning
b23b5cc4a4 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.

(cherry-pick of commit: a5053e6b35)

Change-Id: I52e75c94d3ae3758cbbf5bc0e1d84254fdf5c6cb
Signed-off-by: Yu Ning <yu.ning@intel.com>
2015-05-15 07:44:28 -07:00
Nick Kralevich
45d8cf5aaf am cea991d7: Merge "Label /dev/goldfish_pipe as qemu_device"
* commit 'cea991d7785d9a6f1f520f2d82f946930ef21bf1':
  Label /dev/goldfish_pipe as qemu_device
2015-05-15 13:10:55 +00:00
Nick Kralevich
cea991d778 Merge "Label /dev/goldfish_pipe as qemu_device" 2015-05-15 13:00:26 +00:00
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
Tao Bao
d0f3b4f6b4 am 1a833d24: Merge "Add support for clobbered blocks" into mnc-dev
* commit '1a833d24c466f4bf765d0f00d02dded9aad0477b':
  Add support for clobbered blocks
2015-05-14 22:16:55 +00:00
Tao Bao
1a833d24c4 Merge "Add support for clobbered blocks" into mnc-dev 2015-05-14 21:54:21 +00:00
Neil Fuller
b0bc462877 am f9f9c3f3: Merge "Add tzdatacheck to image" into mnc-dev
* commit 'f9f9c3f31e85a96aeb13af065d8eb8dbf33dd05c':
  Add tzdatacheck to image
2015-05-14 19:27:45 +00:00
Ying Wang
d054f1f747 am 7ffd7c20: am df5c798f: Merge "[MIPS] Temporarily disable Mips shared-textrel errors"
* commit '7ffd7c207be55b86416845dbd5ffa8f69518ab68':
  [MIPS] Temporarily disable Mips shared-textrel errors
2015-05-14 16:35:30 +00: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
e122b6708b am dfd58ba5: am 7033819e: Merge "Remove unused #include <selinux/android.h>"
* commit 'dfd58ba54e4a4e5d3a5aa2527a9e48b344f37894':
  Remove unused #include <selinux/android.h>
2015-05-14 15:51:46 +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
Neil Fuller
f9f9c3f31e Merge "Add tzdatacheck to image" into mnc-dev 2015-05-14 10:15:01 +00:00
Neil Fuller
7d18a68417 Add tzdatacheck to image
Bug: 21110439
Bug: 19941636
Change-Id: I743236d9c7b433968865648ffae25451c6012a5f
2015-05-14 10:15:35 +01:00
David Friedman
ee14e826c1 am 8025e285: am 802f05f0: am 2f9407e1: am f004b114: am 302e2f9c: Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
* commit '8025e2854e31decd672e938fc94cd735ee9071e2':
  Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
2015-05-14 01:45:01 +00:00
Filip Gruszczynski
8429745720 am 8eade31f: am 7fbb988d: Merge "Add percent library to support libraries build." into lmp-mr1-ub-dev
* commit '8eade31f989224d006f012364ab91f1c9a102c5c':
  Add percent library to support libraries build.
2015-05-14 00:55:58 +00:00
David Friedman
8025e2854e am 802f05f0: am 2f9407e1: am f004b114: am 302e2f9c: Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
* commit '802f05f0e47ab15955b0c460db0c751b982a6f34':
  Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
2015-05-14 00:00:12 +00:00
David Friedman
802f05f0e4 am 2f9407e1: am f004b114: am 302e2f9c: Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
* commit '2f9407e197242eb3a9db188f901369e09e11a152':
  Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
2015-05-13 23:46:38 +00:00
Filip Gruszczynski
8eade31f98 am 7fbb988d: Merge "Add percent library to support libraries build." into lmp-mr1-ub-dev
* commit '7fbb988da154ad91461c3d51994ae0ff99d94032':
  Add percent library to support libraries build.
2015-05-13 23:46:29 +00:00
Filip Gruszczynski
7fbb988da1 Merge "Add percent library to support libraries build." into lmp-mr1-ub-dev 2015-05-13 23:32:06 +00:00
David Friedman
2f9407e197 am f004b114: am 302e2f9c: Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
* commit 'f004b1149db26f24188eeaa1fe65a4743c4e9b31':
  Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
2015-05-13 23:30:43 +00:00
David Friedman
f004b1149d am 302e2f9c: Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
* commit '302e2f9cb58de33c529b6ac02421fb0b63b7fcb0':
  Docs: Modified .cs page to reflect removal of 32-bit Darwin as NDK download option.
2015-05-13 23:16:45 +00:00
Dirk Dougherty
c3b0f58fe6 am 02a80261: am 7a72fdd4: am f97b2ef2: Style and template updates to support responsive layout, mobile nav, email signup, updated styles (sync2).
* commit '02a80261437839655900732718e5149c27979de8':
  Style and template updates to support responsive layout, mobile nav, email signup, updated styles (sync2).
2015-05-13 22:13:32 +00:00
dcashman
92a35b93cd am c0ba40b8: Merge "Remove libc++ from prepackaged shared libs in cts." into mnc-dev
* commit 'c0ba40b8a17669b9938008f826cef88aa791c828':
  Remove libc++ from prepackaged shared libs in cts.
2015-05-13 22:03:35 +00:00
Dirk Dougherty
02a8026143 am 7a72fdd4: am f97b2ef2: Style and template updates to support responsive layout, mobile nav, email signup, updated styles (sync2).
* commit '7a72fdd4e46c907c7deac8e6cd75df156ec244f0':
  Style and template updates to support responsive layout, mobile nav, email signup, updated styles (sync2).
2015-05-13 21:44:39 +00:00
Dirk Dougherty
7a72fdd4e4 am f97b2ef2: Style and template updates to support responsive layout, mobile nav, email signup, updated styles (sync2).
* commit 'f97b2ef21a9940ec7a41c9116a79f9b2a36e0c1d':
  Style and template updates to support responsive layout, mobile nav, email signup, updated styles (sync2).
2015-05-13 21:34:56 +00:00
Elliott Hughes
e990e929a4 am 385cdb78: am 0dac6788: Merge "Revert "Revert "Turn on _FORTIFY_SOURCE=2 for the host."""
* commit '385cdb7855bfb3983d21fe7344d56d863f638985':
  Revert "Revert "Turn on _FORTIFY_SOURCE=2 for the host.""
2015-05-13 21:34:09 +00: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
a1f24be45c am 56ad4250: am 1d8e8c96: Merge "Add libbenchmark\'s new dependency on libbase."
* commit '56ad4250257004a3281db9c703cba4eb8cd6ada4':
  Add libbenchmark's new dependency on libbase.
2015-05-13 21:13:10 +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
Dirk Dougherty
f97b2ef21a Style and template updates to support responsive layout, mobile nav, email signup, updated styles (sync2).
Change-Id: I6e33dd10e1c9e8b378080464b4b70ac6b10df8b7
2015-05-13 13:54:09 -07: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
f05d960f41 am 463377d0: am 2a3034b3: Merge "Revert "Turn on _FORTIFY_SOURCE=2 for the host.""
* commit '463377d0c43a7a0e096d5d428b161061863089bb':
  Revert "Turn on _FORTIFY_SOURCE=2 for the host."
2015-05-13 20:29:40 +00:00
Elliott Hughes
3afd77941b am 35fb49df: am b58119ea: Merge "Turn on _FORTIFY_SOURCE=2 for the host."
* commit '35fb49df32f0f115f93cce04f7e0fe1be2301b83':
  Turn on _FORTIFY_SOURCE=2 for the host.
2015-05-13 20:29:38 +00:00
Tao Bao
a82dc281b2 am 412a5c3f: am 2f7ae925: Merge "Add support for clobbered blocks"
* commit '412a5c3f52dafcb21fb86d6ca6bb5fd3deed90a4':
  Add support for clobbered blocks
2015-05-13 20:29:37 +00:00
Tao Bao
16de5a3950 am 84d3af3e: am dc618332: Merge "Add bootsigner path as an option"
* commit '84d3af3eaa58930754327fb04444bac48beaa750':
  Add bootsigner path as an option
2015-05-13 20:29:35 +00:00
dcashman
5fd0b6d43b resolved conflicts for merge of eab5ab5d to mnc-dev-plus-aosp
Change-Id: Ic7ba16887aa778fad6911a4bfb155e91b9b3c88e
2015-05-13 13:20:05 -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