ANDROID: restrict access to perf events
authorJeff Vander Stoep <jeffv@google.com>
Wed, 1 Jun 2016 20:44:47 +0000 (13:44 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 16 Jun 2016 08:14:10 +0000 (13:44 +0530)
commit377fd8e3af2c1f74b51817032fcbe6c06e49ea7e
tree6f95bbd7be13047ff3a191d31c507efbc382a36f
parent934f4983c760c38be86ea5e9a008db8a66395eca
ANDROID: restrict access to perf events

Add:
CONFIG_SECURITY_PERF_EVENTS_RESTRICT=y

to android-base.cfg

The kernel.perf_event_paranoid sysctl is set to 3 by default.
No unprivileged use of the perf_event_open syscall will be
permitted unless it is changed.

Bug: 29054680
Change-Id: Ie7512259150e146d8e382dc64d40e8faaa438917
android/configs/android-base.cfg