fingerprintd.te 849 B

1234567891011121314151617181920212223242526
  1. type fingerprintd, domain;
  2. type fingerprintd_exec, system_file_type, exec_type, file_type;
  3. binder_use(fingerprintd)
  4. # Scan through /system/lib64/hw looking for installed HALs
  5. allow fingerprintd system_file:dir r_dir_perms;
  6. # need to find KeyStore and add self
  7. add_service(fingerprintd, fingerprintd_service)
  8. # allow HAL module to read dir contents
  9. allow fingerprintd fingerprintd_data_file:file { create_file_perms };
  10. # allow HAL module to read/write/unlink contents of this dir
  11. allow fingerprintd fingerprintd_data_file:dir rw_dir_perms;
  12. # Need to add auth tokens to KeyStore
  13. use_keystore(fingerprintd)
  14. allow fingerprintd keystore:keystore_key { add_auth };
  15. # For permissions checking
  16. binder_call(fingerprintd, system_server);
  17. allow fingerprintd permission_service:service_manager find;
  18. allow fingerprintd ion_device:chr_file r_file_perms;