Android 6.0.1 Release 63 (MXC89L)
expose control over unpriv perf access to shell

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)
1 file changed