]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/lsm_hooks.h
Merge branch 'parisc-5.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[linux.git] / include / linux / lsm_hooks.h
index a3763247547c3f9b656a690433229feeecc2219b..20d8cf194fb77c9967a349161c5a03542252b9d8 100644 (file)
@@ -1818,6 +1818,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 {
@@ -2060,6 +2068,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;
 
 /*