Merge branch 'next-general' of git://git.kernel.org:/pub/scm/linux/kernel/git/jmorris...
[linux-2.6-microblaze.git] / include / linux / lsm_hooks.h
index 59f5ee9..28d4350 100644 (file)
@@ -1852,6 +1852,14 @@ union security_list_options {
        void (*bpf_prog_free_security)(struct bpf_prog_aux *aux);
 #endif /* CONFIG_BPF_SYSCALL */
        int (*locked_down)(enum lockdown_reason what);
+#ifdef CONFIG_PERF_EVENTS
+       int (*perf_event_open)(struct perf_event_attr *attr, int type);
+       int (*perf_event_alloc)(struct perf_event *event);
+       void (*perf_event_free)(struct perf_event *event);
+       int (*perf_event_read)(struct perf_event *event);
+       int (*perf_event_write)(struct perf_event *event);
+
+#endif
 };
 
 struct security_hook_heads {
@@ -2094,6 +2102,13 @@ struct security_hook_heads {
        struct hlist_head bpf_prog_free_security;
 #endif /* CONFIG_BPF_SYSCALL */
        struct hlist_head locked_down;
+#ifdef CONFIG_PERF_EVENTS
+       struct hlist_head perf_event_open;
+       struct hlist_head perf_event_alloc;
+       struct hlist_head perf_event_free;
+       struct hlist_head perf_event_read;
+       struct hlist_head perf_event_write;
+#endif
 } __randomize_layout;
 
 /*