mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 17:18:49 +00:00
sm6375-common: add missing mlipay sepolicy from Xiaomi-SM8250 tree
up to HEAD:e2aab9679fea15a8ee0bbf5876bbeb140292e29c Change-Id: Ic68fb82a72954d8eb94314e79733ac71fbaec221
This commit is contained in:
1
sepolicy/private/system_app.te
Normal file
1
sepolicy/private/system_app.te
Normal file
@@ -0,0 +1 @@
|
||||
hal_client_domain(system_app, hal_mlipay)
|
||||
@@ -1,3 +1,3 @@
|
||||
attribute hal_mlipay;
|
||||
attribute hal_mlipay_client;
|
||||
attribute hal_mlipay_server;
|
||||
attribute hal_mlipay_server;
|
||||
@@ -1,5 +1,2 @@
|
||||
# Fingerprint
|
||||
vendor_public_prop(vendor_fp_prop)
|
||||
|
||||
# Mlipay
|
||||
vendor_public_prop(vendor_mlipay_prop)
|
||||
vendor_public_prop(vendor_fp_prop)
|
||||
2
sepolicy/vendor/app.te
vendored
2
sepolicy/vendor/app.te
vendored
@@ -1 +1 @@
|
||||
get_prop({ appdomain -isolated_app }, vendor_mlipay_prop)
|
||||
get_prop({ appdomain -isolated_app }, vendor_tee_listener_prop)
|
||||
20
sepolicy/vendor/hal_mlipay.te
vendored
20
sepolicy/vendor/hal_mlipay.te
vendored
@@ -1,22 +1,4 @@
|
||||
type hal_mlipay_hwservice, hwservice_manager_type;
|
||||
|
||||
type hal_mlipay_default, domain;
|
||||
hal_server_domain(hal_mlipay_default, hal_mlipay)
|
||||
|
||||
type hal_mlipay_default_exec, exec_type, vendor_file_type, file_type;
|
||||
init_daemon_domain(hal_mlipay_default)
|
||||
|
||||
# Allow hwbinder call from hal client to server
|
||||
binder_call(hal_mlipay_client, hal_mlipay_server)
|
||||
|
||||
# Add hwservice related rules
|
||||
add_hwservice(hal_mlipay_server, hal_mlipay_hwservice)
|
||||
allow hal_mlipay_client hal_mlipay_hwservice:hwservice_manager find;
|
||||
|
||||
allow hal_mlipay_default tee_device:chr_file rw_file_perms;
|
||||
allow hal_mlipay_default ion_device:chr_file r_file_perms;
|
||||
|
||||
r_dir_file(hal_mlipay_default, firmware_file)
|
||||
set_prop(hal_mlipay_default, vendor_mlipay_prop);
|
||||
|
||||
get_prop(hal_mlipay_default, vendor_fp_prop)
|
||||
hal_attribute_hwservice(hal_mlipay, hal_mlipay_hwservice)
|
||||
|
||||
16
sepolicy/vendor/hal_mlipay_default.te
vendored
Normal file
16
sepolicy/vendor/hal_mlipay_default.te
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
type hal_mlipay_default, domain;
|
||||
hal_server_domain(hal_mlipay_default, hal_mlipay)
|
||||
|
||||
type hal_mlipay_default_exec, exec_type, vendor_file_type, file_type;
|
||||
|
||||
init_daemon_domain(hal_mlipay_default)
|
||||
|
||||
allow hal_mlipay_default {
|
||||
ion_device
|
||||
tee_device
|
||||
}:chr_file rw_file_perms;
|
||||
|
||||
r_dir_file(hal_mlipay_default, firmware_file)
|
||||
|
||||
get_prop(hal_mlipay_default, vendor_fp_prop)
|
||||
set_prop(hal_mlipay_default, vendor_tee_listener_prop)
|
||||
1
sepolicy/vendor/hwservice.te
vendored
Normal file
1
sepolicy/vendor/hwservice.te
vendored
Normal file
@@ -0,0 +1 @@
|
||||
type hal_mlipay_hwservice, hwservice_manager_type;
|
||||
4
sepolicy/vendor/property_contexts
vendored
4
sepolicy/vendor/property_contexts
vendored
@@ -10,8 +10,8 @@ vendor.fps_hal. u:object_r:vendor_fp_prop:s0
|
||||
vendor.silead.fp.ext. u:object_r:vendor_fp_prop:s0
|
||||
|
||||
# Mlipay
|
||||
persist.vendor.sys.pay. u:object_r:vendor_mlipay_prop:s0
|
||||
persist.vendor.sys.provision.status u:object_r:vendor_mlipay_prop:s0
|
||||
persist.vendor.sys.pay. u:object_r:vendor_tee_listener_prop:s0
|
||||
persist.vendor.sys.provision.status u:object_r:vendor_tee_listener_prop:s0
|
||||
|
||||
# RIL
|
||||
odm.ril.radio.status. u:object_r:vendor_radio_prop:s0
|
||||
|
||||
Reference in New Issue
Block a user