1allow tee self:capability { chown setgid setuid sys_admin sys_rawio };
2
3allow tee device:dir r_dir_perms;
4
5set_prop(tee, tee_listener_prop)
6set_prop(tee, keymaster_prop)
7
8allow tee firmware_file:dir search;
9allow tee block_device:dir { getattr search };
10allow tee ssd_block_device:blk_file rw_file_perms;
11allow tee sg_device:chr_file { rw_file_perms setattr };
12
13allow tee persist_file:dir r_dir_perms;
14allow tee persist_drm_file:dir create_dir_perms;
15allow tee persist_drm_file:file create_file_perms;
16allow tee persist_data_file:dir create_dir_perms;
17allow tee persist_data_file:file create_file_perms;
18
19# TODO(b/36644492): Remove data_between_core_and_vendor_violators once
20# tee no longer directly accesses /data owned by the frameworks.
21typeattribute tee data_between_core_and_vendor_violators;
22allow tee { system_data_file system_data_root_file }:dir r_dir_perms;
23allow tee fingerprintd_data_file:dir rw_dir_perms;
24allow tee fingerprintd_data_file:file create_file_perms;
25
26allow tee time_daemon:unix_stream_socket connectto;
27