Jim Miller | 54e0e5a | 2016-12-15 19:46:43 -0800 | [diff] [blame] | 1 | # Scan through /system/lib64/hw looking for installed HALs |
| 2 | allow hal_fingerprint system_file:dir r_dir_perms; |
| 3 | |
| 4 | # allow HAL module to read dir contents |
| 5 | allow hal_fingerprint fingerprintd_data_file:file create_file_perms; |
| 6 | |
| 7 | # allow HAL module to read/write/unlink contents of this dir |
| 8 | allow hal_fingerprint fingerprintd_data_file:dir rw_dir_perms; |
| 9 | |
| 10 | # Need to add auth tokens to KeyStore |
| 11 | use_keystore(hal_fingerprint) |
| 12 | allow hal_fingerprint keystore:keystore_key add_auth; |
| 13 | |
| 14 | # For permissions checking |
| 15 | binder_call(hal_fingerprint, system_server); |
| 16 | allow hal_fingerprint permission_service:service_manager find; |
| 17 | |
| 18 | # For memory allocation |
| 19 | allow hal_fingerprint ion_device:chr_file r_file_perms; |
| 20 | |
| 21 | r_dir_file(hal_fingerprint, cgroup) |