-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy pathtee.te
29 lines (23 loc) · 976 Bytes
/
tee.te
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
26
27
28
29
allow tee self:process execmem;
# /data/misc/playready labeling
type_transition tee system_data_file:dir drm_data_file;
# Access /data/misc/playready
allow tee system_data_file:dir ra_dir_perms;
allow tee drm_data_file:dir create_dir_perms;
allow tee drm_data_file:file create_file_perms;
# Read from persist partition
allow tee persist_file:dir r_dir_perms;
r_dir_file(tee, persist_data_file)
r_dir_file(tee, persist_drm_file)
# Write to drm related pieces of persist partition
allow tee persist_drm_file:dir create_dir_perms;
allow tee persist_drm_file:file create_file_perms;
# b/15777869 - update for Nexus 5 modular DRM
# tee starts as root, and drops privileges
allow tee self:capability { setuid setgid };
# Need to directly minipulate certain block devices
# for anti-rollback protection
allow tee block_device:dir search;
allow tee self:capability sys_rawio;
allow tee drm_block_device:blk_file rw_file_perms;
allow tee ssd_block_device:blk_file rw_file_perms;