1type smlog_dump_exec, exec_type, vendor_file_type, file_type;
2
3userdebug_or_eng(`
4  type smlog_dump, domain;
5  allow smlog_dump modem_dump_file:dir create_dir_perms;
6  allow smlog_dump modem_dump_file:file create_file_perms;
7  r_dir_file(smlog_dump, sysfs_uio)
8  r_dir_file(smlog_dump, sysfs_rmtfs)
9
10  allow smlog_dump diag_device:chr_file rw_file_perms;
11  allow smlog_dump radio_vendor_data_file:file { append read write };
12  allow smlog_dump rild:fd use;
13  allow smlog_dump rild:fifo_file { read write };
14  allow smlog_dump rild:unix_stream_socket { read write };
15  allow smlog_dump rild:netlink_generic_socket { read write };
16  allow smlog_dump self:socket create_socket_perms;
17  allowxperm smlog_dump self:socket ioctl msm_sock_ipc_ioctls;
18  allow smlog_dump sysfs:dir r_dir_perms;
19  allow smlog_dump sysfs_msm_subsys:dir r_dir_perms;
20  allow smlog_dump sysfs_msm_subsys:file r_file_perms;
21  allow smlog_dump sysfs_msm_subsys:lnk_file read;
22  allow smlog_dump sysfs_soc:dir search;
23  allow smlog_dump sysfs_soc:file r_file_perms;
24  allow smlog_dump dumpstate:fd use;
25  allow smlog_dump hal_dumpstate_impl:fd use;
26  allow smlog_dump uio_device:chr_file rw_file_perms;
27')
28