• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type hal_dumpstate_impl, domain;
2hal_server_domain(hal_dumpstate_impl, hal_dumpstate)
3
4type hal_dumpstate_impl_exec, exec_type, vendor_file_type, file_type;
5init_daemon_domain(hal_dumpstate_impl)
6
7# Execute dump scripts
8allow hal_dumpstate_impl vendor_shell_exec:file rx_file_perms;
9allow hal_dumpstate_impl vendor_toolbox_exec:file rx_file_perms;
10# system file execution
11#allow hal_dumpstate_impl system_data_file:dir r_dir_perms;
12
13# smlog_dump
14allow hal_dumpstate_impl smlog_dump_exec:file rx_file_perms;
15userdebug_or_eng(`
16allow hal_dumpstate_impl smlog_dump_file:dir create_dir_perms;
17allow hal_dumpstate_impl smlog_dump_file:file create_file_perms;
18allow hal_dumpstate_impl radio_data_file:dir r_dir_perms;
19allow hal_dumpstate_impl netmgr_data_file:dir r_dir_perms;
20allow hal_dumpstate_impl radio_data_file:file r_file_perms;
21allow hal_dumpstate_impl netmgr_data_file:file r_file_perms;
22')
23
24allow hal_dumpstate_impl uio_device:chr_file rw_file_perms;
25r_dir_file(hal_dumpstate_impl, sysfs_uio)
26r_dir_file(hal_dumpstate_impl, sysfs_rmtfs)
27r_dir_file(hal_dumpstate_impl, sysfs_msm_subsys)
28
29# Access to files for dumping
30allow hal_dumpstate_impl  sysfs:dir r_dir_perms;
31# rpm stat
32allow hal_dumpstate_impl debugfs_rpm:file r_file_perms;
33allow hal_dumpstate_impl debugfs_bufinfo:file r_file_perms;
34# wlan power stats
35allow hal_dumpstate_impl debugfs_wlan:dir r_dir_perms;
36allow hal_dumpstate_impl debugfs_wlan:file r_file_perms;
37# runtime-pm
38allow hal_dumpstate_impl debugfs_runtime_pm:file r_file_perms;
39# cnss
40allow hal_dumpstate_impl debugfs_cnss:file r_file_perms;
41# qsee_logger
42allow hal_dumpstate_impl qsee_logger_exec:file rx_file_perms;
43allow hal_dumpstate_impl debugfs_qsee_log:file r_file_perms;
44# MDP logs
45allow hal_dumpstate_impl debugfs_mdp:file r_file_perms;
46# ION HEAPS
47r_dir_file(hal_dumpstate_impl, debugfs_ion)
48# ipc
49r_dir_file(hal_dumpstate_impl, debugfs_ipc)
50# Temperatures
51r_dir_file(hal_dumpstate_impl, sysfs_thermal)
52# CPU stat
53r_dir_file(hal_dumpstate_impl, sysfs_devices_system_cpu)
54# usb logs
55userdebug_or_eng(`allow hal_dumpstate_impl debugfs_usb:file r_file_perms;')
56