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)
|
2013-05-02 22:43:16 +02:00
|
|
|
allow rild self:netlink_route_socket { setopt write };
|
2012-01-04 18:33:27 +01:00
|
|
|
allow rild kernel:system module_request;
|
|
|
|
unix_socket_connect(rild, property, init)
|
|
|
|
unix_socket_connect(rild, qemud, qemud)
|
|
|
|
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;
|
2012-06-07 17:52:51 +02:00
|
|
|
allow rild radio_device:blk_file r_file_perms;
|
2012-01-04 18:33:27 +01:00
|
|
|
allow rild qemu_device:chr_file rw_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;
|
2012-05-31 15:40:12 +02:00
|
|
|
allow rild bluetooth_efs_file:file r_file_perms;
|
2012-06-25 21:24:29 +02:00
|
|
|
allow rild bluetooth_efs_file:dir r_dir_perms;
|
2013-05-02 22:43:16 +02:00
|
|
|
allow rild radio_data_file:dir rw_dir_perms;
|
|
|
|
allow rild radio_data_file:file create_file_perms;
|
2013-03-07 01:26:36 +01:00
|
|
|
allow rild sdcard_type:dir r_dir_perms;
|
2012-06-07 17:52:51 +02:00
|
|
|
allow rild system_data_file:dir create_dir_perms;
|
|
|
|
allow rild system_data_file:file create_file_perms;
|
|
|
|
allow rild system_file:file x_file_perms;
|
2012-01-04 18:33:27 +01:00
|
|
|
dontaudit rild self:capability sys_admin;
|
|
|
|
# XXX Label sysfs files with a specific type?
|
|
|
|
allow rild sysfs:file rw_file_perms;
|
2012-04-04 16:11:16 +02:00
|
|
|
|
|
|
|
# property service
|
|
|
|
allow rild rild_prop:property_service set;
|
2012-04-04 22:01:19 +02:00
|
|
|
allow rild radio_prop:property_service set;
|
2012-07-10 23:36:22 +02:00
|
|
|
|
|
|
|
# Read/Write to uart driver (for GPS)
|
|
|
|
allow rild gps_device:chr_file rw_file_perms;
|
2013-03-27 11:30:25 +01:00
|
|
|
|
|
|
|
allow rild tty_device:chr_file rw_file_perms;
|
2013-04-26 03:29:26 +02:00
|
|
|
|
|
|
|
# Allow rild to create, bind, read, write to itself through a netlink socket
|
|
|
|
allow rild self:netlink_socket { create bind read write };
|
2013-05-02 22:43:16 +02:00
|
|
|
|
|
|
|
allow rild self:netlink_kobject_uevent_socket { bind create getopt read setopt };
|