blob: f2a4ae3bc4771e3cdc85b5acd9db3b22c392247a [file] [log] [blame]
Yu-Ting Tseng3e8e8ea2023-09-25 18:42:03 +00001type uprobestats, domain, coredomain;
2
3typeattribute uprobestats bpfdomain;
4
5type uprobestats_exec, system_file_type, exec_type, file_type;
6
Yu-Ting Tseng5e1d7f12023-12-14 19:50:49 +00007# Allow uprobestats to be invoked by statsd.
8domain_auto_trans(statsd, uprobestats_exec, uprobestats)
Yu-Ting Tseng3e8e8ea2023-09-25 18:42:03 +00009
10allow uprobestats fs_bpf_uprobe_private:file { read write };
11allow uprobestats fs_bpf_uprobe_private:dir search;
12allow uprobestats bpfloader:bpf { map_read map_write prog_run };
13allow uprobestats self:capability2 perfmon;
14allow uprobestats self:perf_event { cpu open write };
15allow uprobestats sysfs_uprobe:file { open read };
16allow uprobestats sysfs_uprobe:dir { search };