restore rlsservice

01-01 20:00:12.304   425   425 E SELinux : avc:  denied  { add } for pid=704 uid=1000 name=rlsservice scontext=u:r:rlsservice:s0 tcontext=u:object_r:default_android_vndservice:s0 tclass=service_manager permissive=1
01-01 20:00:11.374     1     1 I SELinux : Context u:object_r:rlsservice_exec:s0 is not valid (left unmapped).
rlsservice uses apex, that's why it cannot be found in vendor.img
Bug: 196916111
Test: boot with rlsservice started

Change-Id: I8e052d75473f9431bbaeafb74d0e4043b02a1b51
This commit is contained in:
Adam Shih 2021-09-28 14:05:18 +08:00
parent 758dd9c309
commit fb11c9aaa0
4 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,3 @@
type rls_service, vndservice_manager_type;
type vendor_surfaceflinger_vndservice, vndservice_manager_type;
type vendor_displaycolor_service, vndservice_manager_type;
type eco_service, vndservice_manager_type;

View file

@ -0,0 +1,4 @@
type rlsservice, domain;
type rlsservice_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(rlsservice)

View file

@ -1 +1,2 @@
type hal_power_stats_vendor_service, vndservice_manager_type;
type hal_power_stats_vendor_service, vndservice_manager_type;
type rls_service, vndservice_manager_type;

View file

@ -0,0 +1 @@
rlsservice u:object_r:rls_service:s0