Yu-Ting Tseng | 3e8e8ea | 2023-09-25 18:42:03 +0000 | [diff] [blame] | 1 | type uprobestats, domain, coredomain; |
| 2 | |
| 3 | typeattribute uprobestats bpfdomain; |
| 4 | |
| 5 | type uprobestats_exec, system_file_type, exec_type, file_type; |
| 6 | |
Yu-Ting Tseng | 5e1d7f1 | 2023-12-14 19:50:49 +0000 | [diff] [blame^] | 7 | # Allow uprobestats to be invoked by statsd. |
| 8 | domain_auto_trans(statsd, uprobestats_exec, uprobestats) |
Yu-Ting Tseng | 3e8e8ea | 2023-09-25 18:42:03 +0000 | [diff] [blame] | 9 | |
| 10 | allow uprobestats fs_bpf_uprobe_private:file { read write }; |
| 11 | allow uprobestats fs_bpf_uprobe_private:dir search; |
| 12 | allow uprobestats bpfloader:bpf { map_read map_write prog_run }; |
| 13 | allow uprobestats self:capability2 perfmon; |
| 14 | allow uprobestats self:perf_event { cpu open write }; |
| 15 | allow uprobestats sysfs_uprobe:file { open read }; |
| 16 | allow uprobestats sysfs_uprobe:dir { search }; |