skullone / android_firewall

This is a fork of Droidwall by Rodrigo Zechin Rosauro - http://code.google.com/p/droidwall/
128 stars 91 forks source link

dns should only be allowed for the root user #1

Closed tripolar closed 11 years ago

tripolar commented 11 years ago

on cm9 the root user is used to do the dns lookup, therefore 53/udp shouldn't be allowed for every user.

tripolar commented 11 years ago

this would fix it

diff --git a/src/com/jtschohl/androidfirewall/Api.java b/src/com/jtschohl/androidfirewall/Api.java index 4620ed6..e5a87ea 100644 --- a/src/com/jtschohl/androidfirewall/Api.java +++ b/src/com/jtschohl/androidfirewall/Api.java @@ -213,7 +213,7 @@ public final class Api { "$IPTABLES -F droidwall-3g || exit 8\n" + "$IPTABLES -F droidwall-wifi || exit 9\n" + "$IPTABLES -F droidwall-reject || exit 10\n" +

skullone commented 11 years ago

This fix has been added in version 1.0.2