kernel-fxtec-pro1x/kernel/events
Jeff Vander Stoep 3d07cba37a ANDROID: security,perf: Allow further restriction of perf_event_open
When kernel.perf_event_open is set to 3 (or greater), disallow all
access to performance events by users without CAP_SYS_ADMIN.
Add a Kconfig symbol CONFIG_SECURITY_PERF_EVENTS_RESTRICT that
makes this value the default.

This is based on a similar feature in grsecurity
(CONFIG_GRKERNSEC_PERF_HARDEN).  This version doesn't include making
the variable read-only.  It also allows enabling further restriction
at run-time regardless of whether the default is changed.

https://lkml.org/lkml/2016/1/11/587

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

Bug: 29054680
Change-Id: Iff5bff4fc1042e85866df9faa01bce8d04335ab8
2018-08-28 17:10:42 +05:30
..
callchain.c treewide: convert ISO_8859-1 text comments to utf-8 2018-08-23 18:48:43 -07:00
core.c ANDROID: security,perf: Allow further restriction of perf_event_open 2018-08-28 17:10:42 +05:30
hw_breakpoint.c perf/hw_breakpoint: Clean up and consolidate modify_user_hw_breakpoint_check() 2018-06-26 09:07:59 +02:00
internal.h
Makefile
ring_buffer.c Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-06-24 20:29:15 +08:00
uprobes.c Updates for v4.19: 2018-08-20 18:32:00 -07:00