1type gatekeeperd, domain; 2type gatekeeperd_exec, system_file_type, exec_type, file_type; 3 4# gatekeeperd 5binder_service(gatekeeperd) 6binder_use(gatekeeperd) 7 8### Rules needed when Gatekeeper HAL runs inside gatekeeperd process. 9### These rules should eventually be granted only when needed. 10allow gatekeeperd ion_device:chr_file r_file_perms; 11# Load HAL implementation 12allow gatekeeperd system_file:dir r_dir_perms; 13### 14 15### Rules needed when Gatekeeper HAL runs outside of gatekeeperd process. 16### These rules should eventually be granted only when needed. 17hal_client_domain(gatekeeperd, hal_gatekeeper) 18### 19 20# need to find KeyStore and add self 21add_service(gatekeeperd, gatekeeper_service) 22 23# Need to add auth tokens to KeyStore 24use_keystore(gatekeeperd) 25allow gatekeeperd keystore:keystore_key { add_auth }; 26 27# For permissions checking 28allow gatekeeperd system_server:binder call; 29allow gatekeeperd permission_service:service_manager find; 30 31# for SID file access 32allow gatekeeperd gatekeeper_data_file:dir rw_dir_perms; 33allow gatekeeperd gatekeeper_data_file:file create_file_perms; 34 35# For hardware properties retrieval 36allow gatekeeperd hardware_properties_service:service_manager find; 37 38# For checking whether GSI is running 39get_prop(gatekeeperd, gsid_prop) 40 41r_dir_file(gatekeeperd, cgroup) 42