2017-01-20 21:49:35 +01:00
|
|
|
type gatekeeperd, domain;
|
2015-04-04 01:46:33 +02:00
|
|
|
type gatekeeperd_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
# gatekeeperd
|
2015-04-29 01:51:26 +02:00
|
|
|
binder_service(gatekeeperd)
|
2015-04-04 01:46:33 +02:00
|
|
|
binder_use(gatekeeperd)
|
|
|
|
|
2017-01-25 21:39:35 +01:00
|
|
|
### Rules needed when Gatekeeper HAL runs inside gatekeeperd process.
|
|
|
|
### These rules should eventually be granted only when needed.
|
|
|
|
allow gatekeeperd tee_device:chr_file rw_file_perms;
|
|
|
|
allow gatekeeperd ion_device:chr_file r_file_perms;
|
|
|
|
# Load HAL implementation
|
|
|
|
allow gatekeeperd system_file:dir r_dir_perms;
|
|
|
|
###
|
|
|
|
|
|
|
|
### Rules needed when Gatekeeper HAL runs outside of gatekeeperd process.
|
|
|
|
### These rules should eventually be granted only when needed.
|
2017-03-17 02:48:40 +01:00
|
|
|
hal_client_domain(gatekeeperd, hal_gatekeeper)
|
2017-01-25 21:39:35 +01:00
|
|
|
###
|
|
|
|
|
2015-04-09 04:52:19 +02:00
|
|
|
# need to find KeyStore and add self
|
2017-01-19 22:23:52 +01:00
|
|
|
add_service(gatekeeperd, gatekeeper_service)
|
2015-04-04 01:46:33 +02:00
|
|
|
|
2015-04-09 04:52:19 +02:00
|
|
|
# Need to add auth tokens to KeyStore
|
2015-04-13 21:21:08 +02:00
|
|
|
use_keystore(gatekeeperd)
|
2015-04-04 01:46:33 +02:00
|
|
|
allow gatekeeperd keystore:keystore_key { add_auth };
|
|
|
|
|
2015-04-09 04:52:19 +02:00
|
|
|
# For permissions checking
|
|
|
|
allow gatekeeperd system_server:binder call;
|
|
|
|
allow gatekeeperd permission_service:service_manager find;
|
2016-10-20 20:20:25 +02:00
|
|
|
|
2015-04-16 22:40:57 +02:00
|
|
|
# for SID file access
|
2015-04-18 02:56:31 +02:00
|
|
|
allow gatekeeperd gatekeeper_data_file:dir rw_dir_perms;
|
|
|
|
allow gatekeeperd gatekeeper_data_file:file create_file_perms;
|
2015-04-16 22:40:57 +02:00
|
|
|
|
2016-02-12 20:21:06 +01:00
|
|
|
# For hardware properties retrieval
|
2016-03-09 18:13:11 +01:00
|
|
|
allow gatekeeperd hardware_properties_service:service_manager find;
|
2016-02-12 20:21:06 +01:00
|
|
|
|
2016-09-10 01:27:17 +02:00
|
|
|
r_dir_file(gatekeeperd, cgroup)
|