Skip to content
Snippets Groups Projects
Commit 96031a83 authored by Iliyan Malchev's avatar Iliyan Malchev
Browse files

sepolicy: allow hwservicemanager to set properties


Allow hwservicemanager to set properties starting with the prefix
"hwservicemanager."

b/31458381
b/31240290
Test: passing build and runtime tests

Change-Id: Id92e2170f52893bbf236987ee59383df2264952f
Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
parent c5ee21d4
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,8 @@ init_daemon_domain(hwservicemanager)
allow hwservicemanager self:binder set_context_mgr;
allow hwservicemanager { domain -init }:binder transfer;
set_prop(hwservicemanager, hwservicemanager_prop)
# TODO once hwservicemanager checks whether HALs are
# allowed to register a certain service, add policy here
# for allowing to check SELinux permissions.
......@@ -40,5 +40,6 @@ type dalvik_prop, property_type, core_property_type;
type config_prop, property_type, core_property_type;
type device_logging_prop, property_type;
type safemode_prop, property_type;
type hwservicemanager_prop, property_type;
allow property_type tmpfs:filesystem associate;
......@@ -99,3 +99,6 @@ ro.dalvik. u:object_r:dalvik_prop:s0
# Shared between system server and wificond
wlan. u:object_r:wifi_prop:s0
# hwservicemanager properties
hwservicemanager. u:object_r:hwservicemanager_prop:s0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment