summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-09-19 23:27:58 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-19 23:27:58 -0700
commitb7d007f82edfd91d2fe1ad43985e18a72742ddb3 (patch)
tree145a0b16c0198520c20f3ec7996b531a1f01d170 /include/linux
parentf6ee052d8011b249e34d782e018bfa222b78a8e3 (diff)
parent1a565f59cb3b227e0c7c1c5b58951aed5a27b5d6 (diff)
Merge "FROMLIST: security,perf: Allow further restriction of perf_event_open"
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/perf_event.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 95fd207e63ca..4f28b91f49c5 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -992,6 +992,11 @@ extern int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write,
loff_t *ppos);
+static inline bool perf_paranoid_any(void)
+{
+ return sysctl_perf_event_paranoid > 2;
+}
+
static inline bool perf_paranoid_tracepoint_raw(void)
{
return sysctl_perf_event_paranoid > -1;