75806ef3c5
Ideally, public should only contain APIs (types / attributes) for vendor. The other statements like allow/neverallow/typeattributes are regarded as implementation detail for platform and should be in private. Bug: 232023812 Test: m selinux_policy Test: diff <(git diff --staged | grep "^-" | cut -b2- | sort) \ <(git diff --staged | grep "^+" | cut -b2- | sort) Test: remove comments on plat_sepolicy.cil, replace base_typeattr_* to base_typeattr and then compare old and new plat_sepolicy.cil Change-Id: I5e7d2da4465ab0216de6bacdf03077d37f6ffe12
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
typeattribute hwservicemanager coredomain;
|
|
|
|
init_daemon_domain(hwservicemanager)
|
|
|
|
add_hwservice(hwservicemanager, hidl_manager_hwservice)
|
|
add_hwservice(hwservicemanager, hidl_token_hwservice)
|
|
|
|
set_prop(hwservicemanager, ctl_interface_start_prop)
|
|
set_prop(hwservicemanager, hwservicemanager_prop)
|
|
|
|
# hwservicemanager is using bootstrap bionic
|
|
use_bootstrap_libs(hwservicemanager)
|
|
|
|
# hwservicemanager is using apex_info via libvintf
|
|
use_apex_info(hwservicemanager)
|
|
|
|
# Note that we do not use the binder_* macros here.
|
|
# hwservicemanager provides name service (aka context manager)
|
|
# for hwbinder.
|
|
# Additionally, it initiates binder IPC calls to
|
|
# clients who request service notifications. The permission
|
|
# to do this is granted in the hwbinder_use macro.
|
|
allow hwservicemanager self:binder set_context_mgr;
|
|
|
|
# Scan through /system/lib64/hw looking for installed HALs
|
|
allow hwservicemanager system_file:dir r_dir_perms;
|
|
|
|
# Read hwservice_contexts
|
|
allow hwservicemanager hwservice_contexts_file:file r_file_perms;
|
|
|
|
# Check SELinux permissions.
|
|
selinux_check_access(hwservicemanager)
|