1 # remote storage process (runs as nobody) 2 type rmt, domain; 3 type rmt_exec, exec_type, file_type; 4 5 # Started by init 6 init_daemon_domain(rmt) 7 8 # Drop (user, group) to (nobody, nobody) 9 allow rmt self:capability { setuid setgid }; 10 11 # opens and reads /dev/block/mmcblk0 12 allow rmt root_block_device:blk_file r_file_perms; 13 allow rmt block_device:dir r_dir_perms; 14 15 # Needed for ioprio_set(IOPRIO_WHO_PROCESS, 0, IOPRIO_CLASS_RT << IOPRIO_CLASS_SHIFT); 16 allow rmt self:capability sys_admin; 17 18 # Allow reads/writes to modem related block devices 19 allow rmt modem_block_device:blk_file rw_file_perms; 20 allow rmt ssd_block_device:blk_file rw_file_perms; 21 22 # Allow shared memory logging access 23 allow rmt shared_log_device:chr_file rw_file_perms; 24 25 allow rmt self:socket create_socket_perms; 26 allow rmt cgroup:dir { create add_name }; 27 28 # Wake lock access 29 wakelock_use(rmt) 30 31 # Allow access to /dev/uio0. 32 allow rmt uio_device:chr_file rw_file_perms; 33