No description
Find a file
Pavel Labath 64d9adcea8 Fix file descriptor leakage in adbd
adb_auth_init in adb_auth_client.cpp sets FD_CLOEXEC on the control
socket, which prevents the leakage. However if ro.adb.secure
property is unset (as it is on the emulator), adb_auth_init is not
invoked, which results in the control socket fd leaking into any
process started by the deamon (specifically, any command executed
through adb shell).

Split the fd cleanup into a separate function that is called
unconditionally.

Change-Id: I73ea84977542ddfc4ac20599593ecf3745ae9108
2015-03-17 11:24:34 -07:00
adb Fix file descriptor leakage in adbd 2015-03-17 11:24:34 -07:00
adf libadf: enable -Werror 2015-03-10 15:14:38 -07:00
base Add common string utilities to libbase. 2015-03-16 20:03:03 -07:00
cpio cpio: Turn on -Werror 2014-05-23 09:48:09 -07:00
debuggerd Add backtrace support for mips64. 2015-03-09 18:43:10 -07:00
fastboot Support "fastboot reboot bootloader". 2015-02-25 10:02:00 -08:00
fs_mgr Merge "Do not call libcutils property_set in init through libfs_mgr" 2015-03-11 09:14:55 +00:00
gpttool gpttool: turn on -Werror 2014-05-05 10:30:04 -07:00
healthd am 492dd1e5: Merge "Remove obsolete BUILD_TINY_ANDROID check from healthd makefile" 2015-01-24 05:33:56 +00:00
include Merge "Revert "pixelflinger: make self-contained"" 2015-03-16 19:02:46 +00:00
init Revert "Revert "Create libbase."" 2015-03-16 10:08:46 -07:00
libbacktrace Move map data into backtrace data proper. 2015-02-06 15:00:09 -08:00
libcutils am 6864e673: Merge "More SOCK_CLOEXEC" 2015-02-27 23:19:11 +00:00
libdiskconfig am eb075e28: am c8179498: am 2f62edf7: Merge "libdiskconfig: Turn on -Werror" 2014-05-21 21:19:27 +00:00
libion Add missing <malloc.h> and <string.h> includes. 2015-01-28 11:37:57 -08:00
liblog Switch liblog to sysv-only hash style 2015-03-13 12:51:02 -07:00
libmemtrack Add missing <malloc.h> and <string.h> includes. 2015-01-28 11:37:57 -08:00
libmincrypt Disable clang optimization that has segmentation fault. 2014-12-17 14:59:53 -08:00
libnativebridge am 0d385d1c: Merge "Track renaming of initUnchangeableSystemProperty." 2015-02-10 16:54:35 +00:00
libnetutils More SOCK_CLOEXEC 2015-02-26 13:32:52 -08:00
libpixelflinger Merge "pixelflinger: don't build static library" 2015-03-17 16:43:21 +00:00
libprocessgroup Fix missing #includes in system/core. 2014-12-29 12:24:25 -08:00
libsparse Cleanup libsparse Android.mk 2014-12-12 04:19:27 +00:00
libsuspend Libsuspend: Remove unused variable 2014-11-24 18:53:44 -08:00
libsync Add missing <malloc.h> and <string.h> includes. 2015-01-28 11:37:57 -08:00
libsysutils Add missing <malloc.h> and <string.h> includes. 2015-01-28 11:37:57 -08:00
libusbhost am 0d8943c2: am e4c5b614: Merge "libusbhost: Fix IOCTL call during usb_request_cancel" 2014-08-12 21:05:43 +00:00
libutils Revert "Revert "Create libbase."" 2015-03-16 10:08:46 -07:00
libziparchive Allocate buffers on the heap 2015-03-12 14:47:52 -07:00
libzipfile Fix a wonkily named function. 2015-03-13 17:11:39 +00:00
lmkd Lmkd: Fix unused variables 2014-11-24 20:32:42 -08:00
logcat Merge "logcat: test: logcat.logrotate fails" 2015-03-12 20:15:17 +00:00
logd logd: report reinit 2015-03-12 20:38:53 +00:00
logwrapper Fix "ptsname is not thread-safe; use ptsname_r instead" build break. 2014-07-29 11:06:53 -07:00
mkbootimg mkbootimg: turn on -Werror 2014-05-05 10:30:04 -07:00
reboot reboot: Turn on -Werror 2014-05-21 12:58:38 -07:00
rootdir init.rc: logd --reinit on changes to persistent properties 2015-03-12 12:24:53 -07:00
run-as run-as: build 1161573 failure 2014-05-08 21:18:23 +00:00
sdcard sdcard doesn't need to explicitly ask for libc! 2015-03-16 20:12:58 -07:00
toolbox Remove obsolete smd tool. 2015-03-16 13:47:14 -07:00
.gitignore Don't compile abort_socket.c for host targets. It is only intended to run on Linux targets. 2009-05-26 13:23:23 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Extend to receive NFLOG packets. 2015-01-15 12:50:59 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00