blob: cb81b0973264fb03de60782f5abc2cdd1a58136f [file] [log] [blame]
wangxl5b6293a2015-02-03 21:10:20 +08001# tee starts as root, and drops privileges
2allow tee self:capability { setuid setgid dac_override sys_rawio };
3
4# Need to directly manipulate certain block devices
5# for anti-rollback protection
6allow tee block_device:dir r_dir_perms;
7allow tee rpmb_device:blk_file rw_file_perms;
8
9
10# Allow qseecom to qsee folder so that listeners can create
11# respective directories
12allow tee data_qsee_file:dir create_dir_perms;
13allow tee data_qsee_file:file create_file_perms;
14allow tee system_data_file:dir r_dir_perms;
15
16allow tee persist_file:dir r_dir_perms;
17r_dir_file(tee, persist_data_file)
18# Write to drm related pieces of persist partition
19allow tee persist_drm_file:dir create_dir_perms;
20allow tee persist_drm_file:file create_file_perms;
21
22# Provide tee access to ssd partition for HW FDE
23allow tee ssd_device:blk_file rw_file_perms;
24
25# allow tee to operate tee device
26allow tee tee_device:chr_file rw_file_perms;
27
28# allow tee to load firmware images
29allow tee firmware_file:dir r_dir_perms;
30allow tee firmware_file:file r_file_perms;
31
32# allow qseecom access to time domain
33allow tee time_daemon:unix_stream_socket connectto;
34
35# allow tee access for secure UI to work
36allow tee graphics_device:chr_file r_file_perms;
37allow tee graphics_device:dir r_dir_perms;
38
39binder_call(tee, surfaceflinger)
40binder_use(tee)
41
42allow tee system_app:unix_dgram_socket sendto;
43unix_socket_connect(tee, property, init)
44
45userdebug_or_eng(`
46 allow tee su:unix_dgram_socket sendto;
47 allow tee shell_data_file:file rw_file_perms;
48 allow tee shell_data_file:dir search;
49')