aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2016-05-31 16:01:08 -0400
committergitbuildkicker <android-build@google.com>2016-07-21 15:01:30 -0700
commit34b6e1b17891218fe8738533dd13b0a06c441eb8 (patch)
tree2c2fd215e6b0c33d0b5994372cb08eeae468b744
parent39818ba9cd10a4b366deb52ea41da0280b98fdf2 (diff)
downloadsepolicy-marshmallow-dr-dragon-release.tar.gz
expose control over unpriv perf access to shellandroid-6.0.1_r63marshmallow-dr-dragon-release
This allows the shell user to control whether unprivileged access to perf events is allowed. To enable unprivileged access to perf: adb shell setprop security.perf_harden 0 To disable it again: adb shell setprop security.perf_harden 1 This allows Android to disable this kernel attack surface by default, while still allowing profiling tools to work automatically. It can also be manually toggled, but most developers won't ever need to do that if tools end up incorporating this. (Cherry picked from commit 38ac77e4c2b3c3212446de2f5ccc42a4311e65fc) Bug: 29054680 Change-Id: Idcf6a2f6cbb35b405587deced7da1f6749b16a5f (cherry picked from commit 0b7b9c258d9d85c3053b0b64e59775d952b99202)
-rw-r--r--property_contexts1
1 files changed, 1 insertions, 0 deletions
diff --git a/property_contexts b/property_contexts
index 5bdb3c3..a724516 100644
--- a/property_contexts
+++ b/property_contexts
@@ -30,6 +30,7 @@ bluetooth. u:object_r:bluetooth_prop:s0
debug. u:object_r:debug_prop:s0
debug.db. u:object_r:debuggerd_prop:s0
log. u:object_r:shell_prop:s0
+security.perf_harden u:object_r:shell_prop:s0
service.adb.root u:object_r:shell_prop:s0
service.adb.tcp.port u:object_r:shell_prop:s0