WLC: service: add sepolicy for property vendor.wlcservice.test

avc:  denied  { read } for  comm="binder:882_3" name="u:object_r:default_prop:s0" dev="tmpfs" ino=172 scontext=u:r:hal_wlcservice:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0

Test: authentication test mode
Bug: 350830879
Flag: EXEMPT bugfix
Change-Id: Ie9f8fc5cce8e62b06931b77aa8cd16a3c9516fb5
Signed-off-by: YiKai Peng <kenpeng@google.com>
This commit is contained in:
YiKai Peng 2024-07-24 12:17:30 +00:00
parent 2b3c202bd2
commit e155aa7c04
3 changed files with 4 additions and 0 deletions

View file

@ -8,6 +8,8 @@ allow hal_wlcservice vendor_wlc_file:file create_file_perms;
allow hal_wlcservice hal_wireless_charger_service:service_manager find;
allow hal_wlcservice kmsg_device:chr_file { getattr w_file_perms };
get_prop(hal_wlcservice, vendor_wlcservice_test_prop)
binder_call(hal_wlcservice, servicemanager)
add_service(hal_wlcservice, hal_wlcservice_service)

View file

@ -0,0 +1 @@
vendor_internal_prop(vendor_wlcservice_test_prop)

View file

@ -0,0 +1 @@
vendor.wlcservice.test.authentication u:object_r:vendor_wlcservice_test_prop:s0 exact bool