summaryrefslogtreecommitdiff
path: root/sepolicy/rmt.te
blob: 1671b8d31c53c3d4bf18319c25e456a838f8885f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Policy for /system/bin/rmt_storage
type rmt, domain;
type rmt_exec, exec_type, vendor_file_type, file_type;

allow rmt self:capability net_bind_service;

init_daemon_domain(rmt)
wakelock_use(rmt)

allow rmt self:capability { setgid setpcap setuid };

allow rmt block_device:dir search;
allow rmt modem_block_device:blk_file rw_file_perms;

# access to /dev/uio0
allow rmt uio_device:chr_file rw_file_perms;

allow rmt self:socket create_socket_perms;
allowxperm rmt self:socket ioctl msm_sock_ipc_ioctls;

allow rmt debugfs_rmt_storage:dir search;
allow rmt debugfs_rmt_storage:file w_file_perms;

allow rmt sysfs:dir r_dir_perms;
r_dir_file(rmt, sysfs_rmtfs)