summaryrefslogtreecommitdiffstats
path: root/common/rmt_storage.te
blob: 19aea1d0e4d7e7038e395674bbe08839242c8898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# rmt_storage - rmt_storage daemon
type rmt_storage, domain;
type rmt_storage_exec, exec_type, file_type;
init_daemon_domain(rmt_storage)

allow rmt_storage modem_efs_partition_device:blk_file rw_file_perms;
allow rmt_storage block_device:dir r_dir_perms;
allow rmt_storage cgroup:dir create_dir_perms;
allow rmt_storage smem_log_device:chr_file rw_file_perms;

# sys_admin is needed for ioprio_set
allow rmt_storage self:capability { setuid setgid sys_admin dac_override net_raw setpcap };

allow rmt_storage self:capability2 block_suspend;
allow rmt_storage self:socket create_socket_perms;
allow rmt_storage sysfs_wake_lock:file w_file_perms;
allow rmt_storage uio_device:chr_file rw_file_perms;
allow rmt_storage mmc_block_device:blk_file r_file_perms;