summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2013-01-04 17:50:18 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-01-04 17:50:18 -0800
commitfb69c2e2577e056bb7a054343a9f6d781cedbf3d (patch)
tree54638267f806efaa9175e15b2eccfc53ab1b28e6 /rootdir
parentd084ec96b6b9cde311a4283a5f9121a1034de166 (diff)
parent3e54aabc63535572242477fadbf13ec42b06649e (diff)
downloadsystem_core-fb69c2e2577e056bb7a054343a9f6d781cedbf3d.zip
system_core-fb69c2e2577e056bb7a054343a9f6d781cedbf3d.tar.gz
system_core-fb69c2e2577e056bb7a054343a9f6d781cedbf3d.tar.bz2
Merge "init.rc: setup qtaguid group ownership of ctrl and stat files"
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index a76602c..5205200 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -120,6 +120,12 @@ loglevel 3
write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 700000
write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_period_us 1000000
+# qtaguid will limit access to specific data based on group memberships.
+# net_bw_acct grants impersonation of socket owners.
+# net_bw_stats grants access to other apps' detailed tagged-socket stats.
+ chown root net_bw_acct /proc/net/xt_qtaguid/ctrl
+ chown root net_bw_stats /proc/net/xt_qtaguid/stats
+
# Allow everybody to read the xt_qtaguid resource tracking misc dev.
# This is needed by any process that uses socket tagging.
chmod 0644 /dev/xt_qtaguid