Commit Graph

7475 Commits

Author SHA1 Message Date
Nick Kralevich 252b0e2b46 Merge "SELinux changes to check policy versions during a reload." 2014-05-31 05:03:05 +00:00
Dan Albert 570cd46d14 Merge "Revert "Move libutils to libc++"" 2014-05-30 20:13:48 +00:00
Dan Albert 7bc49a16e8 Revert "Move libutils to libc++"
Causes issues in the unbundled branches.

This reverts commit dc133729b0.

Change-Id: I9185ce9ea9e0ea631f0bfe016edf38c6830b288a
2014-05-30 19:40:58 +00:00
Dan Albert 9f69e028f7 Merge "Move libutils to libc++" 2014-05-30 18:32:08 +00:00
Mark Salyzyn 5f815da3ab Merge "String16.cpp rm unused utils/Debug.h" 2014-05-29 23:51:17 +00:00
Mark Salyzyn 6443033f6d String16.cpp rm unused utils/Debug.h
Change-Id: Ie7e3695770f20be33738a0f0a868cc914248d91a
2014-05-29 13:14:35 -07:00
Dave Allison 967729b7ca Merge "Add LD_PRELOAD for libsigchain.so to the environment" 2014-05-29 19:51:42 +00:00
Dan Albert dc133729b0 Move libutils to libc++
Bug: 15193147
Change-Id: Ib4b1835e77279db905e098abc7c9bf8d27d66b57
2014-05-29 10:19:39 -07:00
Elliott Hughes bf082ffb71 Merge "Updated trace.h to recognize ATRACE_TAG_BIONIC." 2014-05-28 21:35:57 +00:00
Mark Salyzyn 811f2c0b98 Merge "system/window.h: add deprecation warnings" 2014-05-28 19:25:15 +00:00
Nick Kralevich c290bed035 Merge "Remove dmesg_restrict" 2014-05-28 13:09:34 +00:00
Torne (Richard Coles) 96109cf36c Merge "Add UID and directory for RELRO sharing support." 2014-05-28 10:15:46 +00:00
Nick Kralevich 1a6184baf3 Remove dmesg_restrict
dmesg_restrict is too coarse of a control. In Android's case,
we want to allow the shell user to see dmesg output, but disallow
others from seeing it.

Rather than rely on dmesg_restrict, use SELinux to control access
to dmesg instead. See corresponding change in external/sepolicy .

Bug: 10020939
Change-Id: I9d4bbbd41cb02b707cdfee79f826a39c1ec2f177
2014-05-27 16:51:11 -07:00
Mark Salyzyn 5df557f6b0 Merge "logd: logcat: debuggerd: audit logs to events and main" 2014-05-27 22:53:44 +00:00
Mark Salyzyn e4369d68a2 logd: logcat: debuggerd: audit logs to events and main
- auditd spawn log copy to events and main
- logcat delete events as one of the default logs
- debuggerd do not collect events.
- squish multiple spaces
- switch from strcpy to memmove for overlapping buffers

BUG: 14626551
Change-Id: I89b30273ce931ed2b25a53ea9be48e77f4c1bbf4
2014-05-27 14:29:56 -07:00
Elliott Hughes b24085d55b Merge "adb: Add USB vendor ID for Unowhy" 2014-05-27 21:25:29 +00:00
Wing Tseng 56266c75e2 adb: Add USB vendor ID for Unowhy
Change-Id: I8bab07734d5b6acb4d8ceaf45b0bab0723f5fe03
Signed-off-by: Wing Tseng <Wing_Tseng@pegatroncorp.com>
2014-05-27 14:23:11 -07:00
Brigid Smith 8c82b35239 Updated trace.h to recognize ATRACE_TAG_BIONIC.
Bug: 15116468
Change-Id: If8d4971505ffe5cbc193c6ad71618a5adb8192b6
2014-05-27 12:37:48 -07:00
David 'Digit' Turner 6e7343b899 Merge "adb: implement "adb reverse <local> <remote>"" 2014-05-27 16:30:31 +00:00
David 'Digit' Turner 2525869419 adb: implement "adb reverse <local> <remote>"
This implements the logical opposite of 'adb forward', i.e.
the ability to reverse network connections from the device
to the host.

This feature is very useful for testing various programs
running on an Android device without root or poking at the
host's routing table.

Options and parameters are exactly the same as those for
'adb forward', except that the direction is reversed.

Examples:

  adb reverse tcp:5000 tcp:6000
    connections to localhost:5000 on the device will be
    forwarded to localhost:6000 on the host.

  adb reverse --no-rebind tcp:5000 tcp:6000
    same as above, but fails if the socket is already
    bound through a previous 'adb reverse tcp:5000 ...'
    command.

  adb reverse --list
    list all active reversed connections for the target
    device. Note: there is no command to list all
    reversed connections for all devices at once.

  adb reverse --remove tcp:5000
    remove any reversed connection on the device from
    localhost:5000

  adb reverse --remove-all
    remove all reversed connections form the current
    device.

Reversed connections are tied to a transport, in other
words, they disappear as soon as a device is disconnected.

Simple testing protocol:

  adb forward tcp:5000 tcp:6000
  adb reverse tcp:6000 tcp:7000
  nc -l localhost 7000

in another terminal:
  echo "Hello" | nc localhost 5000

Will print "Hello" on the first terminal.

Change-Id: I761af790cdb06829b68430afa4145a919fa0e6d5
2014-05-27 16:42:13 +02:00
Torne (Richard Coles) 234f696ea7 Add UID and directory for RELRO sharing support.
Define a UID to be used by the process responsible for creating shared
RELRO files for the WebView native library, and create a directory owned
by that UID to use to store the files.

Bug: 13005501
Change-Id: I5bbb1e1035405e5534b2681f554fe16f74e3da1a
2014-05-27 14:00:29 +01:00
Narayan Kamath 5fe6fcc35d Merge "Add a zygote 64/32 bit config." 2014-05-27 11:00:37 +00:00
Christopher Ferris d917d64faf Merge "Only copy mcontext data from sigcontext." 2014-05-23 22:23:45 +00:00
Mark Salyzyn 8814bd1d24 Merge "include: cleanup for -Wsystem-header" 2014-05-23 22:19:57 +00:00
Christopher Ferris e484607622 Only copy mcontext data from sigcontext.
The ucontext_t data structure could be bigger than the kernel data
structure. Since the unwinder only cares about the mcontext data, only
copy that out of the structure. The mcontext data is the same size in
the kernel and in the ucontext_t structure.

Bug: 15189014
Change-Id: I5978169c4425b8212e11db85a57eb319cd0e264b
2014-05-23 15:11:26 -07:00
Mark Salyzyn 289e111a00 system/window.h: add deprecation warnings
Change-Id: I38de3d281f28e0750b4abb86f28509f98dfc7a72
2014-05-23 15:10:06 -07:00
Mark Salyzyn 4887842c92 include: cleanup for -Wsystem-header
- warnings as errors, or errors introduced when -Wsystem-header
  was experimentally introduced.

Change-Id: Ia8f5b3c1c1096e191741223d52526aa48c7f1cc4
2014-05-23 15:09:57 -07:00
Mark Salyzyn 818f80045f Merge "logd: used before set warning" 2014-05-23 17:42:47 +00:00
Mark Salyzyn 72be6d5eea Merge "cpio: Turn on -Werror" 2014-05-23 17:42:36 +00:00
Mark Salyzyn ab4b7308ec logd: used before set warning
Change-Id: I30c078f8b22ebe4dcb48d57adf88b3e51b4fa202
2014-05-23 09:48:09 -07:00
Mark Salyzyn 5ce757518b cpio: Turn on -Werror
- Solve st_mode is uint16_t on MAC
- Turn on -Werror

Change-Id: I67b62424245545099ed283c56dae544153b85425
2014-05-23 09:48:09 -07:00
Mark Salyzyn 08c372d18e Merge "libnetutils: Turn on -Werror" 2014-05-23 14:51:07 +00:00
Mark Salyzyn c829080ba9 libnetutils: Turn on -Werror
- Get rid of a pair of out of range comparison warnings.
- Turn on -Werror for compilation

Change-Id: Ie6754f41f9348852a02cc0ff35befb5a76ac2883
2014-05-23 07:49:29 -07:00
Mark Salyzyn f5e2dc8967 Merge "libctest: zap" 2014-05-22 22:34:56 +00:00
Mark Salyzyn d7579650f5 libctest: zap
Related Changes:
- https://android-review.googlesource.com/#/c/95364
- https://googleplex-android-review.git.corp.google.com/#/c/470584
- https://googleplex-android-review.git.corp.google.com/#/c/470591
- https://googleplex-android-review.git.corp.google.com/#/c/470590

Change-Id: I28a017104f48cc4216df876eb9102ecd332d28e3
2014-05-22 22:34:23 +00:00
Colin Cross 617c28b8f2 Merge "Fix list_for_each_safe macro" 2014-05-22 22:27:14 +00:00
Colin Cross 4ecbda41c9 Merge "Add list_add_head to libcutils" 2014-05-22 22:26:43 +00:00
Colin Cross 08befc3a80 Merge "ueventd: support by-name symlinks for PCI block devices" 2014-05-22 19:17:15 +00:00
Mark Salyzyn 0c7e5cdaeb Merge "libusbhost: Turn on -Werror" 2014-05-22 19:06:29 +00:00
Mark Salyzyn 065c2706ab Merge "libsuspend: Turn on -Werror" 2014-05-22 19:06:03 +00:00
Mark Salyzyn b05866afcc Merge "libion: Turn on -Werror" 2014-05-22 19:05:49 +00:00
Mark Salyzyn 993378832e Merge "sdcard: Turn on -Werror" 2014-05-22 19:05:25 +00:00
Mark Salyzyn 5e9c2b9faa Merge "reboot: Turn on -Werror" 2014-05-22 17:34:06 +00:00
Dan Albert 3b5cd9117d Merge "Remove libstdc++ dependency from host libbacktrace" 2014-05-22 17:21:52 +00:00
Elliott Hughes e9a6d0a099 Merge "Remove unnecessary #includes of <sys/atomics.h>." 2014-05-22 17:02:25 +00:00
Elliott Hughes 617681d355 Remove unnecessary #includes of <sys/atomics.h>.
Bug: 14903517
Change-Id: I5b0a418dd982f1a2fd90609b12bd8364f7f34996
2014-05-22 10:00:35 -07:00
Mark Salyzyn 80e160693c Merge "libsync: Turn on -Werror" 2014-05-22 16:46:53 +00:00
Elliott Hughes 48ac3d1b14 Merge "Judge mmap failed by MAP_FAILED instead of NULL" 2014-05-22 16:23:20 +00:00
Calin Juravle cd3897d0af Merge "Move libutils from fdprintf to POSIX dprintf." 2014-05-22 13:37:13 +00:00
Elliott Hughes dcc98da018 Move libutils from fdprintf to POSIX dprintf.
Bug: 11156955
Change-Id: I70a75c07744d9897d76b180e4940b8717297c53f
2014-05-22 01:23:29 -07:00