servicemanager.te 925 B

12345678910111213141516171819202122232425
  1. # servicemanager - the Binder context manager
  2. type servicemanager, domain, mlstrustedsubject;
  3. type servicemanager_exec, system_file_type, exec_type, file_type;
  4. # Note that we do not use the binder_* macros here.
  5. # servicemanager is unique in that it only provides
  6. # name service (aka context manager) for Binder.
  7. # As such, it only ever receives and transfers other references
  8. # created by other domains. It never passes its own references
  9. # or initiates a Binder IPC.
  10. allow servicemanager self:binder set_context_mgr;
  11. allow servicemanager {
  12. domain
  13. -init
  14. -vendor_init
  15. -hwservicemanager
  16. -vndservicemanager
  17. }:binder transfer;
  18. allow servicemanager service_contexts_file:file r_file_perms;
  19. # nonplat_service_contexts only accessible on non full-treble devices
  20. not_full_treble(`allow servicemanager nonplat_service_contexts_file:file r_file_perms;')
  21. # Check SELinux permissions.
  22. selinux_check_access(servicemanager)