blob: 91671e2aac40797606d4431d88e71a981abd01e0 (
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
26
27
28
29
|
type ifaadaemon, domain;
type ifaadaemon_exec, exec_type, file_type;
#Allow for transition from init domain to ifaadaemon
init_daemon_domain(ifaadaemon)
#Allow ifaadaemon to use Binder IPC
binder_use(ifaadaemon)
#Allow servicemanager to interact with ifaadaemon
binder_call(ifaadaemon, servicemanager)
#Allow alipay_app to interact with ifaadaemon
binder_call(ifaadaemon, alipay_app)
#Mark ifaadaemon as a Binder service domain
binder_service(ifaadaemon)
#Allow ifaadaemon to be registered with service manager
allow ifaadaemon ifaadaemon_service:service_manager add;
#Allow access to tee device
allow ifaadaemon tee_device:chr_file rw_file_perms;
#Allow access to ion device
allow ifaadaemon ion_device:chr_file r_file_perms;
#Allow access to firmware
r_dir_file(ifaadaemon, firmware_file)
|