diff options
author | Nick Kralevich <nnk@google.com> | 2017-04-01 10:00:19 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2017-04-01 10:00:19 -0700 |
commit | cc94e5f25303bc0ffdc2e327b56564f59f48804f (patch) | |
tree | 72f72d02237a327ce44f79a0fae748dfc1438e1d | |
parent | 86aef026336129f099741f47eeac6ceba33b9917 (diff) | |
download | platform_external_android-clat-cc94e5f25303bc0ffdc2e327b56564f59f48804f.tar.gz platform_external_android-clat-cc94e5f25303bc0ffdc2e327b56564f59f48804f.tar.bz2 platform_external_android-clat-cc94e5f25303bc0ffdc2e327b56564f59f48804f.zip |
clatd.c: remove unsetenv("ANDROID_DNS_MODE")
As of bionic commit I835a7b42d6afbc9c67866594c7951cfd9b355d81,
ANDROID_DNS_MODE is deleted from the environment when a security
transition occurs. As netd and clatd run in different SELinux security
domains, this variable will be automatically deleted. It's unnecessary
(but harmless) to delete it ourselves. Delete unnecessary code.
Test: Android compiles and runs with no obvious problems.
Change-Id: Id46c1a6989a3441a11b4be3d8a28aa1b926c1c6d
-rw-r--r-- | clatd.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -503,10 +503,6 @@ int main(int argc, char **argv) { exit(1); } - // When run from netd, the environment variable ANDROID_DNS_MODE is set to - // "local", but that only works for the netd process itself. - unsetenv("ANDROID_DNS_MODE"); - configure_interface(uplink_interface, plat_prefix, &tunnel, net_id); update_clat_ipv6_address(&tunnel, uplink_interface); |