blob: 045294f92f7eb01484653277440e10e991cb844b [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute gatekeeperd coredomain;
2
dcashmancc39f632016-07-22 13:13:11 -07003init_daemon_domain(gatekeeperd)
Inseob Kim55e5c9b2020-03-04 17:20:35 +09004
5# For checking whether GSI is running
6get_prop(gatekeeperd, gsid_prop)
Inseob Kim75806ef2024-03-27 17:18:41 +09007
8# gatekeeperd
9binder_service(gatekeeperd)
10binder_use(gatekeeperd)
11
12### Rules needed when Gatekeeper HAL runs inside gatekeeperd process.
13### These rules should eventually be granted only when needed.
14allow gatekeeperd ion_device:chr_file r_file_perms;
15# Load HAL implementation
16allow gatekeeperd system_file:dir r_dir_perms;
17###
18
19### Rules needed when Gatekeeper HAL runs outside of gatekeeperd process.
20### These rules should eventually be granted only when needed.
21hal_client_domain(gatekeeperd, hal_gatekeeper)
22###
23
24# need to find KeyStore and add self
25add_service(gatekeeperd, gatekeeper_service)
26
27# Need to add auth tokens to KeyStore
28use_keystore(gatekeeperd)
29allow gatekeeperd keystore:keystore2 { add_auth };
30allow gatekeeperd authorization_service:service_manager find;
31
32
33# For permissions checking
34allow gatekeeperd system_server:binder call;
35allow gatekeeperd permission_service:service_manager find;
36
37# for SID file access
38allow gatekeeperd gatekeeper_data_file:dir rw_dir_perms;
39allow gatekeeperd gatekeeper_data_file:file create_file_perms;
40
41# For hardware properties retrieval
42allow gatekeeperd hardware_properties_service:service_manager find;
43
44r_dir_file(gatekeeperd, cgroup)
45r_dir_file(gatekeeperd, cgroup_v2)