From ed83b2438b339797bda96d9bddc9feee25b055a4 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 29 Jun 2014 16:29:03 +0200 Subject: [PATCH] Added white list to getAllByName, getByAddress and getByName --- CHANGELOG.md | 1 + src/biz/bokhorst/xprivacy/Meta.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21857b8d7..4a0271cde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ Changelog * Added restriction for *USB.getSerialNumber* (Android "L") ([issue](/../../issues/1757)) * Added parameter user agent to *getUserAgentString* * Added parameter device name to *USB.getDeviceId* +* Added white list to *getAllByName*, *getByAddress* and *getByName* * Updated Italian translation [Open issues](https://github.com/M66B/XPrivacy/issues?state=open) diff --git a/src/biz/bokhorst/xprivacy/Meta.java b/src/biz/bokhorst/xprivacy/Meta.java index 66e26025a..3075e747e 100644 --- a/src/biz/bokhorst/xprivacy/Meta.java +++ b/src/biz/bokhorst/xprivacy/Meta.java @@ -110,9 +110,9 @@ public static List get() { mListHook.add(new Hook("identification", "USB.getDeviceName", "", 12, "2.1.7", null)); mListHook.add(new Hook("identification", "USB.getSerialNumber", "", 20, "2.1.17", null)); - mListHook.add(new Hook("internet", "getAllByName", "INTERNET", 1, "0.0", null).dangerous()); - mListHook.add(new Hook("internet", "getByAddress", "INTERNET", 1, "0.0", null).dangerous()); - mListHook.add(new Hook("internet", "getByName", "INTERNET", 1, "0.0", null).dangerous()); + mListHook.add(new Hook("internet", "getAllByName", "INTERNET", 1, "0.0", null).dangerous().whitelist(cTypeIPAddress)); + mListHook.add(new Hook("internet", "getByAddress", "INTERNET", 1, "0.0", null).dangerous().whitelist(cTypeIPAddress)); + mListHook.add(new Hook("internet", "getByName", "INTERNET", 1, "0.0", null).dangerous().whitelist(cTypeIPAddress)); mListHook.add(new Hook("internet", "getByInetAddress", "INTERNET", 1, null, null)); mListHook.add(new Hook("internet", "getNetworkInterfaces", "INTERNET", 1, null, null));