c195ec3148
Two new types are introduced: sdcard_internal sdcard_external The existing type of sdcard, is dropped and a new attribute sdcard_type is introduced. The boolean app_sdcard_rw has also been changed to allow for controlling untrusted_app domain to use the internal and external sdcards. Change-Id: Ic7252a8e1703a43cb496413809d01cc6cacba8f5
39 lines
1.5 KiB
Text
39 lines
1.5 KiB
Text
# rild - radio interface layer daemon
|
|
type rild, domain;
|
|
type rild_exec, exec_type, file_type;
|
|
|
|
init_daemon_domain(rild)
|
|
net_domain(rild)
|
|
allow rild self:netlink_route_socket setopt;
|
|
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;
|
|
allow rild radio_device:blk_file r_file_perms;
|
|
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;
|
|
allow rild bluetooth_efs_file:file r_file_perms;
|
|
allow rild bluetooth_efs_file:dir r_dir_perms;
|
|
allow rild radio_data_file:dir r_dir_perms;
|
|
allow rild radio_data_file:file rw_file_perms;
|
|
allow rild radio_device:lnk_file r_file_perms;
|
|
allow rild sdcard_type:dir r_dir_perms;
|
|
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;
|
|
dontaudit rild self:capability sys_admin;
|
|
# XXX Label sysfs files with a specific type?
|
|
allow rild sysfs:file rw_file_perms;
|
|
|
|
# property service
|
|
allow rild rild_prop:property_service set;
|
|
allow rild radio_prop:property_service set;
|
|
|
|
# Read/Write to uart driver (for GPS)
|
|
allow rild gps_device:chr_file rw_file_perms;
|