Go to file
Nick Kralevich 30a86ebc7a fs_mkdirs: use O_NOFOLLOW and O_CLOEXEC
Don't follow symlinks. Suggestion from Jann Horn.

Also, add O_CLOEXEC. This prevents file descriptor leakage should
this code ever run in a multithreaded environment.

I'm not sure if either of these changes actually address any
security concerns, but it's harmless, so go ahead and add it.

Bug: 15675141
Change-Id: I7ba4e9d10439b7150f59759b54e3ad8ccba411e3
2014-06-16 15:40:40 -07:00
adb Partially revert argument escaping. 2014-06-11 08:40:58 -07:00
adf libadf: silence false positive warning 2014-05-07 15:27:59 -07:00
cpio cpio: Turn on -Werror 2014-05-23 09:48:09 -07:00
debuggerd am 047a1cdd: am 29413726: am 20df39a0: Merge "Adding ABI output to debuggerd tombstones." 2014-06-04 21:49:26 +00:00
fastboot Fix host 64-bit build. 2014-05-16 09:36:17 -07:00
fastbootd Judge mmap failed by MAP_FAILED instead of NULL 2014-05-22 12:51:39 +08:00
fs_mgr am af0df46d: am e6246ca6: am 01ef52e1: Merge "fs_mgr: turn on -Werror" 2014-05-08 21:43:06 +00:00
gpttool gpttool: turn on -Werror 2014-05-05 10:30:04 -07:00
healthd healthd: Set fixed battery level and temperature via properties 2014-05-22 01:56:15 +00:00
include am 9b86360f: am c3e23666: am 7fa1cd19: Merge "log: Fix warning with __USE_MINGW_ANSI_STDIO" 2014-06-13 14:43:58 +00:00
init am 38fd5650: am 82015d4f: Merge "Only allow disabling SELinux on userdebug / eng builds" 2014-06-03 16:43:10 +00:00
libbacktrace am 2b958116: am a31dab8a: am a9aa0f2c: Merge "Build the libc++ variant of libbacktrace on the host for Mac." 2014-06-11 21:48:41 +00:00
libcutils fs_mkdirs: use O_NOFOLLOW and O_CLOEXEC 2014-06-16 15:40:40 -07:00
libdiskconfig am eb075e28: am c8179498: am 2f62edf7: Merge "libdiskconfig: Turn on -Werror" 2014-05-21 21:19:27 +00:00
libion libion: Turn on -Werror 2014-05-21 12:58:38 -07:00
liblog Host multilib build of both 32-bit and 64-bit libraries. 2014-06-05 15:26:22 -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
libnetutils am 04482eab: am f998116b: am 08c372d1: Merge "libnetutils: Turn on -Werror" 2014-05-23 19:43:32 +00:00
libpixelflinger [MIPS64] Use generic cpu-independent libpixelflinger for mips64 2014-06-03 16:53:12 -07:00
libsparse am d4d09637: am db32e788: am a2b03c4a: Merge "libsparse: turn on -Werror" 2014-05-08 21:43:07 +00:00
libsuspend am 1291df76: am c5fa4b19: am 065c2706: Merge "libsuspend: Turn on -Werror" 2014-05-22 19:21:07 +00:00
libsync Add gtest conformance tests for libsync. Not complete yet, but substantially more comprehensive than the interactive test that was there before. 2014-06-10 23:33:18 +00:00
libsysutils libsysutil: turn on -Werror (part deux) 2014-05-01 12:19:45 -07:00
libusbhost am 5cdb3f92: am 6b5f4c34: am 0c7e5cda: Merge "libusbhost: Turn on -Werror" 2014-05-22 19:21:07 +00:00
libutils am 72299bf0: [Bug]NE when playing mp3 with incorrect UTF16 char 2014-06-11 12:41:36 +00:00
libziparchive Replace hand written offsets with structures. 2014-06-10 10:36:34 +01:00
libzipfile Build host with multilib both enabled. 2014-06-05 11:42:26 -07:00
lmkd Make lmkd dynamically linked 2014-05-07 23:59:11 +00:00
logcat logd: logcat: debuggerd: audit logs to events and main 2014-05-27 14:29:56 -07:00
logd logd: logcat unexpected EOF on slow consoles 2014-06-06 15:08:37 +00: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 reboot: Turn on -Werror 2014-05-21 12:58:38 -07:00
rootdir am f8cb68e1: am 3bff77a8: am 875dc8f3: Merge "Create /data/dalvik-cache/profiles" 2014-06-12 23:17:38 +00:00
run-as run-as: build 1161573 failure 2014-05-08 21:18:23 +00:00
sdcard am 2e7d80d1: Per-app media directories on external storage. 2014-05-30 23:48:00 +00:00
toolbox Add mknod utility to system/core/toolbox 2014-06-11 11:10:28 -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 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

README

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