Skip to content
Snippets Groups Projects
Commit 29f1e21d authored by Alex Klyubin's avatar Alex Klyubin Committed by Gerrit Code Review
Browse files

Merge "Remove hal_light from system_server domain"

parents a86316e8 384a73de
No related branches found
No related tags found
No related merge requests found
...@@ -4,9 +4,6 @@ ...@@ -4,9 +4,6 @@
# #
type system_server, domain, domain_deprecated, mlstrustedsubject; type system_server, domain, domain_deprecated, mlstrustedsubject;
# Attributes for passthrough hals
typeattribute system_server hal_light;
# For art. # For art.
allow system_server dalvikcache_data_file:dir r_dir_perms; allow system_server dalvikcache_data_file:dir r_dir_perms;
allow system_server dalvikcache_data_file:file { r_file_perms execute }; allow system_server dalvikcache_data_file:file { r_file_perms execute };
...@@ -610,6 +607,13 @@ r_dir_file(system_server, sysfs_type) ...@@ -610,6 +607,13 @@ r_dir_file(system_server, sysfs_type)
# Allow system_server to make binder calls to hwservicemanager # Allow system_server to make binder calls to hwservicemanager
binder_call(system_server, hwservicemanager) binder_call(system_server, hwservicemanager)
### Rules needed when Light HAL runs inside system_server process.
### These rules should eventually be granted only when needed.
allow system_server sysfs_leds:lnk_file read;
allow system_server sysfs_leds:file rw_file_perms;
allow system_server sysfs_leds:dir r_dir_perms;
###
userdebug_or_eng(` userdebug_or_eng(`
# Allow WifiService to start, stop, and read wifi-specific trace events. # Allow WifiService to start, stop, and read wifi-specific trace events.
allow system_server debugfs_tracing_instances:dir search; allow system_server debugfs_tracing_instances:dir search;
......
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