mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-30 13:28:09 +00:00
Bug: 36463595 Test: lunch walleye-userdebug && make sepolicy Change-Id: I7ec48b3109d66f9537e5834933ed28aa76da367e Signed-off-by: Sandeep Patil <sspatil@google.com>
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
type hal_dumpstate_impl, domain, vendor_executes_system_violators;
|
|
hal_server_domain(hal_dumpstate_impl, hal_dumpstate)
|
|
|
|
type hal_dumpstate_impl_exec, exec_type, vendor_file_type, file_type;
|
|
init_daemon_domain(hal_dumpstate_impl)
|
|
|
|
# Execute dump scripts
|
|
allow hal_dumpstate_impl shell_exec:file rx_file_perms;
|
|
allow hal_dumpstate_impl toolbox_exec:file rx_file_perms;
|
|
|
|
userdebug_or_eng(`
|
|
# smlog_dump
|
|
domain_auto_trans(hal_dumpstate_impl, smlog_dump_exec, smlog_dump)
|
|
allow hal_dumpstate_impl smlog_dump_file:dir create_dir_perms;
|
|
allow hal_dumpstate_impl smlog_dump_file:file create_file_perms;
|
|
allow hal_dumpstate_impl radio_data_file:dir r_dir_perms;
|
|
allow hal_dumpstate_impl radio_vendor_data_file:dir r_dir_perms;
|
|
allow hal_dumpstate_impl netmgr_data_file:dir r_dir_perms;
|
|
allow hal_dumpstate_impl radio_data_file:file r_file_perms;
|
|
allow hal_dumpstate_impl radio_vendor_data_file:file r_file_perms;
|
|
allow hal_dumpstate_impl netmgr_data_file:file r_file_perms;
|
|
')
|
|
|
|
allow hal_dumpstate_impl uio_device:chr_file rw_file_perms;
|
|
r_dir_file(hal_dumpstate_impl, sysfs_uio)
|
|
r_dir_file(hal_dumpstate_impl, sysfs_rmtfs)
|
|
r_dir_file(hal_dumpstate_impl, sysfs_msm_subsys)
|
|
|
|
allow hal_dumpstate_impl sysfs_thermal:dir search;
|
|
allow hal_dumpstate_impl sysfs_thermal:file r_file_perms;
|
|
|
|
allow hal_dumpstate_impl debugfs_ion:dir r_dir_perms;
|
|
allow hal_dumpstate_impl debugfs_ion:file r_file_perms;
|
|
|
|
# Access to files for dumping
|
|
allow hal_dumpstate_impl sysfs:dir r_dir_perms;
|
|
# rpm stat
|