2019-01-10 21:45:02 +01:00
|
|
|
diff -u -r ../tor-0.3.5.7/src/app/main/main.c ./src/app/main/main.c
|
|
|
|
--- ../tor-0.3.5.7/src/app/main/main.c 2018-12-18 18:56:22.000000000 +0000
|
|
|
|
+++ ./src/app/main/main.c 2019-01-10 20:29:38.187975263 +0000
|
|
|
|
@@ -1044,7 +1044,7 @@
|
2017-11-10 17:10:17 +01:00
|
|
|
OPEN("/dev/srandom");
|
|
|
|
OPEN("/dev/urandom");
|
|
|
|
OPEN("/dev/random");
|
|
|
|
- OPEN("/etc/hosts");
|
2017-11-12 22:21:07 +01:00
|
|
|
+ OPEN("@TERMUX_PREFIX@/etc/hosts");
|
2017-11-10 17:10:17 +01:00
|
|
|
OPEN("/proc/meminfo");
|
|
|
|
|
|
|
|
if (options->BridgeAuthoritativeDir)
|
2019-01-10 21:45:02 +01:00
|
|
|
@@ -1057,7 +1057,7 @@
|
2017-11-10 17:10:17 +01:00
|
|
|
sandbox_cfg_allow_open_filename(&cfg,
|
|
|
|
tor_strdup(options->ServerDNSResolvConfFile));
|
|
|
|
else
|
|
|
|
- sandbox_cfg_allow_open_filename(&cfg, tor_strdup("/etc/resolv.conf"));
|
2017-11-12 22:21:07 +01:00
|
|
|
+ sandbox_cfg_allow_open_filename(&cfg, tor_strdup("@TERMUX_PREFIX@/etc/resolv.conf"));
|
2017-11-10 17:10:17 +01:00
|
|
|
|
|
|
|
for (i = 0; i < 2; ++i) {
|
|
|
|
if (get_torrc_fname(i)) {
|
2019-01-10 21:45:02 +01:00
|
|
|
@@ -1223,7 +1223,7 @@
|
2017-11-10 17:10:17 +01:00
|
|
|
OPEN_DATADIR_SUFFIX("hashed-fingerprint", ".tmp");
|
|
|
|
OPEN_DATADIR_SUFFIX("router-stability", ".tmp");
|
|
|
|
|
|
|
|
- OPEN("/etc/resolv.conf");
|
2017-11-12 22:21:07 +01:00
|
|
|
+ OPEN("@TERMUX_PREFIX@/etc/resolv.conf");
|
2017-11-10 17:10:17 +01:00
|
|
|
|
|
|
|
RENAME_SUFFIX("fingerprint", ".tmp");
|
2019-01-10 21:45:02 +01:00
|
|
|
RENAME_KEYDIR_SUFFIX("secret_onion_key_ntor", ".tmp");
|