Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

am fb69c2e: Merge "init.rc: setup qtaguid group ownership of ctrl and…

… stat files"

* commit 'fb69c2e2577e056bb7a054343a9f6d781cedbf3d':
  init.rc: setup qtaguid group ownership of ctrl and stat files
  • Loading branch information...
commit ba900f2e708f0b654cdaa827804cbb21af4e4fb4 2 parents 3f8d6cd + fb69c2e
JP Abgrall authored Android Git Automerger committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 rootdir/init.rc
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.