No description
Find a file
Sreeram Ramachandran 154ebe80a0 Introduce netd_client, a dynamic library that talks to netd.
This library is dynamically loaded and used by bionic, to replace selected
standard socket syscalls with versions that talk to netd.

Implement connect() by requesting that the socket be marked with the netId of
the default network and then calling through to the actual syscall.

There are two escape hatches:

+ If the fwmark server is unavailable, it isn't an error; we proceed with the
  syscall. This might help at boot time (when the server isn't ready yet) and if
  we get rid of the fwmarkd socket entirely in future platform versions.

+ If the ANDROID_NO_USE_FWMARK_CLIENT environment variable is set, we don't
  attempt to use the fwmark server (even if it's available). This allows apps to
  sidestep unforseen issues in production at runtime.

(cherry picked from commit 0581cb455ef924f128a5c6d46bc70868b5099eec)

Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9
2014-05-14 11:13:53 -07:00
adb adb: avoid compilation errors for unused results 2014-05-13 09:12:54 -07:00
adf libadfhwc: use %zu for logging size_t 2014-03-11 14:42:53 -07:00
charger update minui library call 2014-03-17 12:23:00 -07:00
cpio Fix a bunch of small system/core bugs. 2013-10-29 14:12:46 -07:00
debuggerd Fix mips debuggerd <corkscrew/ptrace.h> build breakage. 2014-05-07 15:42:41 -07:00
fastboot Revert "System: Fastboot: warning fixit, misc bugs and cleanup." 2014-05-07 23:31:59 +00:00
fastbootd fastbootd: build static binary instead of dynamic 2014-03-19 15:57:40 -07:00
fs_mgr fs_mgr: turn on -Werror 2014-05-07 16:56:21 -07:00
gpttool gpttool: turn on -Werror 2014-05-05 10:30:04 -07:00
healthd Cleanup: warning fixit. 2014-04-11 16:15:46 -07:00
include Introduce netd_client, a dynamic library that talks to netd. 2014-05-14 11:13:53 -07:00
init init: add 'enable <service>' to negate "service <service>... disabled" 2014-05-03 00:14:59 -07:00
libbacktrace Only include ucontext.h when necessary. 2014-05-09 16:59:06 -07:00
libctest Automated import from //branches/master/...@140824,140824 2009-03-24 18:36:50 -07:00
libcutils Remove unused LOCAL_LDLIBS. 2014-05-07 15:36:05 -07:00
libdiskconfig Fix 64-bit host build. 2014-05-06 11:39:31 -07:00
libion system/core 64-bit cleanup. 2014-01-16 12:54:18 -08:00
liblog liblog: set -Werror 2014-05-07 16:56:21 -07:00
libmemtrack system/core 64-bit cleanup. 2014-01-16 12:54:18 -08:00
libmincrypt Remove declaration of unused static variable 2014-05-12 17:47:39 +02:00
libnetd_client Introduce netd_client, a dynamic library that talks to netd. 2014-05-14 11:13:53 -07:00
libnetutils Merge commit '536dea9d61a032e64bbe584a97463c6638ead009' into HEAD 2013-11-22 13:44:43 -08:00
libnl_2 DO NOT MERGE: Revert "delete libnl_2" 2014-03-21 17:05:29 -07:00
libpixelflinger Cleanup: warning fixit. 2014-04-11 16:15:46 -07:00
libsparse libsparse: turn on -Werror 2014-05-07 16:56:22 -07:00
libsuspend Cleanup: warning fixit. 2014-04-11 16:15:46 -07:00
libsync move sync headers from include to libsync 2014-01-03 21:27:05 +00:00
libsysutils libsysutil: turn on -Werror (part deux) 2014-05-01 12:19:45 -07:00
libusbhost libusbhost: Fix issue of multiple inotify event at same time. 2014-04-25 13:56:38 +08:00
libutils Remove unused LOCAL_LDLIBS. 2014-05-07 15:36:05 -07:00
libziparchive libziparchive: off64_t is not int64_t (part deux) 2014-05-08 19:16:40 -07:00
libzipfile Fixed warnings test_zipfile 2012-08-20 16:38:37 -04:00
logcat Remove unused LOCAL_LDLIBS. 2014-05-07 15:36:05 -07:00
logd logd: logcat: Add persist.logd.size group of properties 2014-05-06 14:58:41 -07:00
logwrapper logwrapper: turn on -Werror 2014-05-02 14:15:59 -07:00
mkbootimg mkbootimg: turn on -Werror 2014-05-05 10:30:04 -07:00
netcfg netcfg: turn on -Werror 2014-05-05 10:30:05 -07:00
reboot Use the getopt function in compliance with the standard. 2014-03-02 18:35:49 +00:00
rootdir Introduce fwmarkd: a service to set the fwmark of sockets. 2014-05-14 11:12:42 -07:00
run-as run-as: build 1161573 failure 2014-05-08 21:18:23 +00:00
sdcard Use bionic's <linux/fuse.h>. 2014-05-07 14:39:58 -07:00
toolbox Merge "Fix top(1) SIGPIPE behavior." 2014-04-19 00:19:00 +00: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 Add CleanSpec for zygote changes. 2014-04-02 12:49:09 +01: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
README auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
ThirdPartyProject.prop add meta-files about 3rd party projects 2010-07-16 11:41:39 -07:00

The system/ directory is intended for pieces of the world that are the
core of the embedded linux platform at the heart of Android.  These
essential bits are required for basic booting, operation, and debugging.

They should not depend on libraries outside of system/... (some of them
do currently -- they need to be updated or changed) and they should not
be required for the simulator build.

The license for all these pieces should be clean (Apache2, BSD, or MIT).

Currently system/bluetooth/... and system/extra/... have some pieces
with GPL/LGPL licensed code.

Assorted Issues:

- pppd depends on libutils for logging
- pppd depends on libcrypt/libcrypto
- init, linker, debuggerd, toolbox, usbd depend on libcutils
- should probably rename bionic to libc