YiKai Peng 24af2c95b1 Reapply "WLC: service: add configuration and contexts for sepolicy"
This reverts commit 7d99cb87ea21af55d699a319462f9999f960f302.

Bug: 311315038
Test: authentication
Change-Id: Iaf8d4043794f895ce9ce1ab9b295de072de16e50
2024-05-18 15:11:40 +00:00

19 lines
631 B
Plaintext

type hal_wlcservice, domain;
type hal_wlcservice_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_wlcservice)
allow hal_wlcservice vendor_wlc_file:dir create_dir_perms;
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 };
binder_call(hal_wlcservice, servicemanager)
add_service(hal_wlcservice, hal_wlcservice_service)
userdebug_or_eng(`
domain_auto_trans(shell, hal_wlcservice_exec, hal_wlcservice)
')
binder_call(hal_wlcservice, hal_wireless_charger)