summaryrefslogtreecommitdiffstats
path: root/common/seempd.te
blob: d8012db17b603c96465e23a61eb2cc9728a0ea7e (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
type seempd, domain, domain_deprecated, mlstrustedsubject;
type seempd_exec, exec_type, file_type;

init_daemon_domain(seempd)

allow seempd tee_device:chr_file rw_file_perms;
allow seempd seemplog_device:chr_file rw_file_perms;
#TODO: create the dir from init.rc instead.
allow seempd seemp_file:dir create_dir_perms;
allow seempd seemp_file:{ file fifo_file } create_file_perms;

# allow seempd to load firmware images
r_dir_file(seempd, firmware_file)

#allow access to packages.list
allow seempd system_data_file:file r_file_perms;

#allow binder calls
binder_use(seempd)
binder_call(seempd, system_server)
binder_call(seempd, appdomain)

#for seemp
allow seempd seemp_service:service_manager { find add };
allow seempd self:binder call;