• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# hwservicemanager - the Binder context manager for HAL services
2type hwservicemanager, domain, mlstrustedsubject;
3type hwservicemanager_exec, system_file_type, exec_type, file_type;
4
5# Note that we do not use the binder_* macros here.
6# hwservicemanager provides name service (aka context manager)
7# for hwbinder.
8# Additionally, it initiates binder IPC calls to
9# clients who request service notifications. The permission
10# to do this is granted in the hwbinder_use macro.
11allow hwservicemanager self:binder set_context_mgr;
12
13# Scan through /system/lib64/hw looking for installed HALs
14allow hwservicemanager system_file:dir r_dir_perms;
15
16# Read hwservice_contexts
17allow hwservicemanager hwservice_contexts_file:file r_file_perms;
18
19# Check SELinux permissions.
20selinux_check_access(hwservicemanager)
21