summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2017-04-01 10:00:19 -0700
committerNick Kralevich <nnk@google.com>2017-04-01 10:00:19 -0700
commitcc94e5f25303bc0ffdc2e327b56564f59f48804f (patch)
tree72f72d02237a327ce44f79a0fae748dfc1438e1d
parent86aef026336129f099741f47eeac6ceba33b9917 (diff)
downloadplatform_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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/clatd.c b/clatd.c
index d57ea59..0b69238 100644
--- a/clatd.c
+++ b/clatd.c
@@ -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);