• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# rild - radio interface layer daemon
2type rild, domain, domain_deprecated;
3type rild_exec, exec_type, file_type;
4
5init_daemon_domain(rild)
6net_domain(rild)
7allow rild self:netlink_route_socket nlmsg_write;
8allow rild kernel:system module_request;
9allow rild self:capability { setuid net_admin net_raw };
10allow rild alarm_device:chr_file rw_file_perms;
11allow rild cgroup:dir create_dir_perms;
12allow rild radio_device:chr_file rw_file_perms;
13allow rild radio_device:blk_file r_file_perms;
14allow rild mtd_device:dir search;
15allow rild efs_file:dir create_dir_perms;
16allow rild efs_file:file create_file_perms;
17allow rild shell_exec:file rx_file_perms;
18allow rild bluetooth_efs_file:file r_file_perms;
19allow rild bluetooth_efs_file:dir r_dir_perms;
20allow rild radio_data_file:dir rw_dir_perms;
21allow rild radio_data_file:file create_file_perms;
22allow rild sdcard_type:dir r_dir_perms;
23allow rild system_data_file:dir r_dir_perms;
24allow rild system_data_file:file r_file_perms;
25allow rild system_file:file x_file_perms;
26
27# property service
28set_prop(rild, radio_prop)
29set_prop(rild, net_radio_prop)
30set_prop(rild, system_radio_prop)
31auditallow rild net_radio_prop:property_service set;
32auditallow rild system_radio_prop:property_service set;
33
34# Read/Write to uart driver (for GPS)
35allow rild gps_device:chr_file rw_file_perms;
36
37allow rild tty_device:chr_file rw_file_perms;
38
39# Allow rild to create and use netlink sockets.
40allow rild self:netlink_socket create_socket_perms;
41allow rild self:netlink_generic_socket create_socket_perms;
42allow rild self:netlink_kobject_uevent_socket create_socket_perms;
43
44# Access to wake locks
45wakelock_use(rild)
46
47allow rild self:socket create_socket_perms;
48