44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
# remote storage process (runs as nobody)
|
|
type rmt, domain, device_domain_deprecated;
|
|
type rmt_exec, exec_type, file_type;
|
|
|
|
# Started by init
|
|
init_daemon_domain(rmt)
|
|
|
|
# Drop (user, group) to (nobody, nobody)
|
|
allow rmt self:capability { setuid setgid };
|
|
|
|
# opens and reads /dev/block/mmcblk0
|
|
allow rmt root_block_device:blk_file r_file_perms;
|
|
allow rmt block_device:dir r_dir_perms;
|
|
|
|
# Allow reads/writes to modem related block devices
|
|
allow rmt modem_block_device:blk_file rw_file_perms;
|
|
allow rmt smem_log_device:chr_file rw_file_perms;
|
|
|
|
# Allow shared memory logging access
|
|
allow rmt shared_log_device:chr_file rw_file_perms;
|
|
|
|
allow rmt self:socket create_socket_perms;
|
|
allow rmt cgroup:dir { create add_name };
|
|
allowxperm rmt self:socket ioctl msm_sock_ipc_ioctls;
|
|
|
|
# Wake lock access
|
|
wakelock_use(rmt)
|
|
|
|
# Allow access to /dev/uio0.
|
|
allow rmt uio_device:chr_file rw_file_perms;
|
|
|
|
allow rmt smem_log_device:chr_file rw_file_perms;
|
|
allow rmt sysfs_uio:dir r_dir_perms;
|
|
|
|
allow rmt modem_efs_partition_device:blk_file rw_file_perms;
|
|
allow rmt ssd_device:blk_file rw_file_perms;
|
|
|
|
# rmt_storage shuts itself down if there is an unknown value of ro.baseband
|
|
set_prop(rmt, ctl_rmt_prop)
|
|
|
|
# Access to sysfs
|
|
r_dir_file(rmt, sysfs_rmt_storage)
|
|
r_dir_file(rmt, sysfs_uio)
|