summaryrefslogtreecommitdiffstats
path: root/data/etc
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-05-02 17:51:29 -0700
committerJeff Sharkey <jsharkey@android.com>2011-06-22 10:15:32 -0700
commit9e18fd1a72ceca43ffd8bc50476a05e236b38b08 (patch)
treee82a4418007ef2a45d5a62019f30b20cbff81bb7 /data/etc
parent8969d9924c662ab4cdacc342bbdc33756db730be (diff)
downloadframeworks_base-9e18fd1a72ceca43ffd8bc50476a05e236b38b08.zip
frameworks_base-9e18fd1a72ceca43ffd8bc50476a05e236b38b08.tar.gz
frameworks_base-9e18fd1a72ceca43ffd8bc50476a05e236b38b08.tar.bz2
Permissions to protect bandwidth statistics.
Introduces new "net_bw_stats" group which will protect reading detailed bandwidth statistics from the kernel. Also introduce "net_bw_acct" group which will enable specific applications to request that their network traffic be counted against other UIDs. This change associates manifest permissions with the low-level GIDs. Change-Id: If3fc28053afda201ff305d798a8878ff1f35b997
Diffstat (limited to 'data/etc')
-rw-r--r--data/etc/platform.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/etc/platform.xml b/data/etc/platform.xml
index b9c0d80..0b8d40f 100644
--- a/data/etc/platform.xml
+++ b/data/etc/platform.xml
@@ -84,6 +84,16 @@
<group gid="diag" />
</permission>
+ <!-- Group that can read detailed network usage statistics -->
+ <permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
+ <group gid="net_bw_stats" />
+ </permission>
+
+ <!-- Group that can modify how network statistics are accounted -->
+ <permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
+ <group gid="net_bw_acct" />
+ </permission>
+
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->