diff options
| author | Jeff Vander Stoep <jeffv@google.com> | 2016-05-29 14:22:32 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-10 15:04:42 +0200 |
| commit | acda8ed24ef6c0a4a8445073d01b908f47b7eb75 (patch) | |
| tree | 1996e3a07f8eb28adb21c5f2a20733dfce66f726 /kernel/sysctl_binary.c | |
| parent | 92d745ec71fa18beeff5a9c8bda5f2183b910ce2 (diff) | |
FROMLIST: 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
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
