platform_bionic/libc
Nick Kralevich 62c03a4ff4 Cleanup ANDROID_DNS_MODE and BIONIC_DNSCACHE
For security reasons, when a binary is executed which causes a security
transition (eg, a setuid binary, setgid binary, filesystem capabilities,
or SELinux domain transition), the AT_SECURE flag is set. This causes
certain blacklisted environment variables to be stripped before the
process is executed. The list of blacklisted environment variables is
stored in UNSAFE_VARIABLE_NAMES. Generally speaking, most environment
variables used internally by libc show up in this list.

Add ANDROID_DNS_MODE to the list of unsafe variables.
Similar to RESOLV_HOST_CONF and RES_OPTIONS (which are already
blacklisted), this variable controls how name resolution requests are
handled. Allowing ANDROID_DNS_MODE to be set across a security
boundary could induce resolution failures or otherwise impact
name resolution.

Remove BIONIC_DNSCACHE. This does not appear to be used, and setting
this variable across a security boundary could cause name resolution
problems.

Test: Android compiles and runs with no obvious problems.
Change-Id: I835a7b42d6afbc9c67866594c7951cfd9b355d81
2017-04-03 08:44:38 -07:00
..
arch-arm Merge "Removing the kuser_helper elf note from building" 2017-02-10 06:24:32 +00:00
arch-arm64 bionic: arm64: generic: strcmp: align to 64B cache line 2017-03-20 17:54:29 +00:00
arch-common/bionic
arch-mips Add libc optimizations to bionic for MIPS 2017-03-16 10:26:24 -07:00
arch-mips64 Remove deprecated Android.mk files 2016-05-26 16:41:57 -07:00
arch-x86 Use ENTRY_PRIVATE in __bionic_clone assembler. 2016-10-26 17:01:58 -07:00
arch-x86_64 Use ENTRY_PRIVATE in __bionic_clone assembler. 2016-10-26 17:01:58 -07:00
bionic Cleanup ANDROID_DNS_MODE and BIONIC_DNSCACHE 2017-04-03 08:44:38 -07:00
dns Cleanup ANDROID_DNS_MODE and BIONIC_DNSCACHE 2017-04-03 08:44:38 -07:00
include Revert "isnan and isinf aren't functions." 2017-03-30 17:18:31 -07:00
kernel Merge "Refactor the kernel update scripts." 2017-03-03 23:40:12 +00:00
malloc_debug Fix the way malloc debug returns info. 2017-03-09 13:47:37 -08:00
private Add end() method to bionic's ScopedTrace class 2017-03-20 12:45:55 -07:00
seccomp Expand whitelist 2017-03-31 16:01:32 +00:00
stdio libc: add clang FORTIFY support 2017-02-09 15:49:32 -08:00
stdlib
tools Fix problem that we don't block syscalls below min value 2017-03-22 09:48:17 -07:00
tzcode Only use environment variables on the host. 2017-03-31 23:23:29 -07:00
upstream-freebsd libc: add clang FORTIFY support 2017-02-09 15:49:32 -08:00
upstream-netbsd Move to .md files for even trivial documentation. 2017-01-07 12:47:28 -08:00
upstream-openbsd libc: add clang FORTIFY support 2017-02-09 15:49:32 -08:00
versioner-dependencies Revert "Revert "Run the versioner as part of the build."" 2017-03-27 13:06:45 -07:00
zoneinfo Update timezone data to 2017b 2017-03-21 15:37:37 +00:00
Android.bp Revert "Revert "Run the versioner as part of the build."" 2017-03-27 13:06:45 -07:00
Android.mk Rename Android.soong.mk to Android.mk 2016-07-11 16:54:20 -07:00
fs_config_generator.py Revert "Revert "move android_ids into bionic"" 2016-12-13 23:47:25 +00:00
libc.arm.map Move __system_property_*_serial back to LIBC 2017-02-24 16:11:14 -08:00
libc.arm64.map Move __system_property_*_serial back to LIBC 2017-02-24 16:11:14 -08:00
libc.map.txt Move __system_property_*_serial back to LIBC 2017-02-24 16:11:14 -08:00
libc.mips.map Move __system_property_*_serial back to LIBC 2017-02-24 16:11:14 -08:00
libc.mips64.map Move __system_property_*_serial back to LIBC 2017-02-24 16:11:14 -08:00
libc.x86.map Move __system_property_*_serial back to LIBC 2017-02-24 16:11:14 -08:00
libc.x86_64.map Move __system_property_*_serial back to LIBC 2017-02-24 16:11:14 -08:00
libstdc++.arm.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.arm64.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.map.txt Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.mips.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.mips64.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.x86.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
libstdc++.x86_64.map Remove _ZTV9type_info from the version script. 2016-11-04 16:51:45 -07:00
MODULE_LICENSE_BSD
NOTICE Add libc optimizations to bionic for MIPS 2017-03-16 10:26:24 -07:00
SECCOMP_WHITELIST.TXT Expand whitelist 2017-03-31 16:01:32 +00:00
SYSCALLS.TXT Merge "Correct the return types of readv and writev." 2016-11-30 19:26:06 +00:00
version_script.txt