blob: 8de5c59adfa1caf5702e98554eb74ef7db5769f7 [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# rild - radio interface layer daemon
2type rild, domain;
Nick Kralevich623975f2014-01-11 01:31:03 -08003permissive_or_unconfined(rild)
Stephen Smalley2dd4e512012-01-04 12:33:27 -05004type rild_exec, exec_type, file_type;
5
6init_daemon_domain(rild)
7net_domain(rild)
Stephen Smalleydcbab902013-10-29 14:42:39 -04008allow rild self:netlink_route_socket { setopt write };
9allow rild kernel:system module_request;
10unix_socket_connect(rild, property, init)
11unix_socket_connect(rild, qemud, qemud)
12allow rild self:capability { setuid net_admin net_raw };
13allow rild alarm_device:chr_file rw_file_perms;
14allow rild cgroup:dir create_dir_perms;
15allow rild radio_device:chr_file rw_file_perms;
16allow rild radio_device:blk_file r_file_perms;
17allow rild qemu_device:chr_file rw_file_perms;
18allow rild mtd_device:dir search;
19allow rild efs_file:dir create_dir_perms;
20allow rild efs_file:file create_file_perms;
21allow rild shell_exec:file rx_file_perms;
22allow rild bluetooth_efs_file:file r_file_perms;
23allow rild bluetooth_efs_file:dir r_dir_perms;
24allow rild radio_data_file:dir rw_dir_perms;
25allow rild radio_data_file:file create_file_perms;
26allow rild sdcard_type:dir r_dir_perms;
27allow rild system_data_file:dir create_dir_perms;
28allow rild system_data_file:file create_file_perms;
29allow rild system_file:file x_file_perms;
30dontaudit rild self:capability sys_admin;
31
32# property service
33allow rild rild_prop:property_service set;
34allow rild radio_prop:property_service set;
35
36# Read/Write to uart driver (for GPS)
37allow rild gps_device:chr_file rw_file_perms;
38
39allow rild tty_device:chr_file rw_file_perms;
40
41# Allow rild to create, bind, read, write to itself through a netlink socket
42allow rild self:netlink_socket { create bind read write };
43
44allow rild self:netlink_kobject_uevent_socket { bind create getopt read setopt };
William Robertsec7d39b2013-09-28 18:46:21 -040045
46# Access to wake locks
47allow rild sysfs_wake_lock:file rw_file_perms;
Robert Craigaa376832013-12-05 17:24:03 -050048
49allow rild self:socket create_socket_perms;