summaryrefslogtreecommitdiffstats
path: root/include/private/android_filesystem_config.h
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-05-02 17:52:03 -0700
committerJeff Sharkey <jsharkey@android.com>2011-06-22 10:01:29 -0700
commit4f1df18766fa13959f347f9c0cbb3dfa67273fa7 (patch)
treed25fc13437c6c69651155ead13753d223112e9b0 /include/private/android_filesystem_config.h
parent535164e9d9649a83d4d63829f3389f2bea339fe1 (diff)
downloadsystem_core-4f1df18766fa13959f347f9c0cbb3dfa67273fa7.zip
system_core-4f1df18766fa13959f347f9c0cbb3dfa67273fa7.tar.gz
system_core-4f1df18766fa13959f347f9c0cbb3dfa67273fa7.tar.bz2
Create groups to protect bandwidth statistics.
Introduces new "net_bw_stats" group which will protect reading detailed bandwidth statistics. Also introduce "net_bw_acct" group which will enable specific applications to request that their network traffic be counted against other UIDs. Change-Id: Ic0ec04e0d2bb9573f3c2a094ebd6d6a8cae0aae6
Diffstat (limited to 'include/private/android_filesystem_config.h')
-rw-r--r--include/private/android_filesystem_config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h
index 55d9220..6e42ae9 100644
--- a/include/private/android_filesystem_config.h
+++ b/include/private/android_filesystem_config.h
@@ -71,6 +71,8 @@
#define AID_INET 3003 /* can create AF_INET and AF_INET6 sockets */
#define AID_NET_RAW 3004 /* can create raw INET sockets */
#define AID_NET_ADMIN 3005 /* can configure interfaces and routing tables. */
+#define AID_NET_BW_STATS 3006 /* read bandwidth statistics */
+#define AID_NET_BW_ACCT 3007 /* change bandwidth statistics accounting */
#define AID_MISC 9998 /* access to misc storage */
#define AID_NOBODY 9999
@@ -118,6 +120,8 @@ static const struct android_id_info android_ids[] = {
{ "inet", AID_INET, },
{ "net_raw", AID_NET_RAW, },
{ "net_admin", AID_NET_ADMIN, },
+ { "net_bw_stats", AID_NET_BW_STATS, },
+ { "net_bw_acct", AID_NET_BW_ACCT, },
{ "misc", AID_MISC, },
{ "nobody", AID_NOBODY, },
};