2012-01-04 18:33:27 +01:00
|
|
|
# rild - radio interface layer daemon
|
|
|
|
type rild, domain;
|
|
|
|
type rild_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(rild)
|
|
|
|
net_domain(rild)
|
2014-02-24 21:06:11 +01:00
|
|
|
allow rild self:netlink_route_socket nlmsg_write;
|
2013-10-29 19:42:39 +01:00
|
|
|
allow rild kernel:system module_request;
|
|
|
|
unix_socket_connect(rild, property, init)
|
|
|
|
allow rild self:capability { setuid net_admin net_raw };
|
|
|
|
allow rild alarm_device:chr_file rw_file_perms;
|
|
|
|
allow rild cgroup:dir create_dir_perms;
|
|
|
|
allow rild radio_device:chr_file rw_file_perms;
|
|
|
|
allow rild radio_device:blk_file r_file_perms;
|
|
|
|
allow rild mtd_device:dir search;
|
|
|
|
allow rild efs_file:dir create_dir_perms;
|
|
|
|
allow rild efs_file:file create_file_perms;
|
|
|
|
allow rild shell_exec:file rx_file_perms;
|
|
|
|
allow rild bluetooth_efs_file:file r_file_perms;
|
|
|
|
allow rild bluetooth_efs_file:dir r_dir_perms;
|
|
|
|
allow rild radio_data_file:dir rw_dir_perms;
|
|
|
|
allow rild radio_data_file:file create_file_perms;
|
|
|
|
allow rild sdcard_type:dir r_dir_perms;
|
2014-03-18 19:01:27 +01:00
|
|
|
allow rild system_data_file:dir r_dir_perms;
|
|
|
|
allow rild system_data_file:file r_file_perms;
|
2013-10-29 19:42:39 +01:00
|
|
|
allow rild system_file:file x_file_perms;
|
|
|
|
|
|
|
|
# property service
|
|
|
|
allow rild radio_prop:property_service set;
|
2014-06-19 16:27:02 +02:00
|
|
|
allow rild net_radio_prop:property_service set;
|
|
|
|
allow rild system_radio_prop:property_service set;
|
|
|
|
auditallow rild net_radio_prop:property_service set;
|
|
|
|
auditallow rild system_radio_prop:property_service set;
|
2013-10-29 19:42:39 +01:00
|
|
|
|
|
|
|
# Read/Write to uart driver (for GPS)
|
|
|
|
allow rild gps_device:chr_file rw_file_perms;
|
|
|
|
|
|
|
|
allow rild tty_device:chr_file rw_file_perms;
|
|
|
|
|
2014-02-24 21:06:11 +01:00
|
|
|
# Allow rild to create and use netlink sockets.
|
|
|
|
allow rild self:netlink_socket create_socket_perms;
|
|
|
|
allow rild self:netlink_kobject_uevent_socket create_socket_perms;
|
2013-09-29 00:46:21 +02:00
|
|
|
|
|
|
|
# Access to wake locks
|
2014-05-23 22:33:32 +02:00
|
|
|
wakelock_use(rild)
|
2013-12-05 23:24:03 +01:00
|
|
|
|
|
|
|
allow rild self:socket create_socket_perms;
|