1*e4a36f41SAndroid Build Coastguard Worker# Allow HwBinder IPC from client to server, and vice versa for callbacks. 2*e4a36f41SAndroid Build Coastguard Workerbinder_call(hal_face_client, hal_face_server) 3*e4a36f41SAndroid Build Coastguard Workerbinder_call(hal_face_server, hal_face_client) 4*e4a36f41SAndroid Build Coastguard Worker 5*e4a36f41SAndroid Build Coastguard Workerhal_attribute_hwservice(hal_face, hal_face_hwservice) 6*e4a36f41SAndroid Build Coastguard Workerhal_attribute_service(hal_face, hal_face_service) 7*e4a36f41SAndroid Build Coastguard Worker 8*e4a36f41SAndroid Build Coastguard Workerbinder_use(hal_face_server) 9*e4a36f41SAndroid Build Coastguard Worker 10*e4a36f41SAndroid Build Coastguard Worker# Allow access to the ion memory allocation device. 11*e4a36f41SAndroid Build Coastguard Workerallow hal_face ion_device:chr_file r_file_perms; 12*e4a36f41SAndroid Build Coastguard Worker 13*e4a36f41SAndroid Build Coastguard Worker# Allow read/write access to the face template directory. 14*e4a36f41SAndroid Build Coastguard Workerallow {hal_face -coredomain} face_vendor_data_file:file create_file_perms; 15*e4a36f41SAndroid Build Coastguard Workerallow {hal_face -coredomain} face_vendor_data_file:dir rw_dir_perms; 16