sepolicy: qti: add rules for URCC

Change-Id: I449705696de0bc303df6ae27ef322f2cc74b95b5
This commit is contained in:
John Galt
2024-12-31 11:54:31 -05:00
committed by Bruno Martins
parent e3197d473f
commit 37688c9479
8 changed files with 29 additions and 0 deletions

View File

@@ -128,6 +128,9 @@
/dev/audio_ultrasound u:object_r:ultrasound_device:s0
/dev/sensor_ultrasound u:object_r:ultrasound_device:s0
# URCC
/(odm|vendor/odm)/bin/hw/vendor\.oplus\.hardware\.urcc-service u:object_r:hal_oplus_urcc_aidl_exec:s0
# Vibrator
/dev/awinic_haptic u:object_r:aac_richtap_device:s0
/vendor/bin/hw/android\.hardware\.vibrator\.service\.oplus-richtap u:object_r:hal_vibrator_default_exec:s0

View File

@@ -5,6 +5,8 @@ hal_client_domain(hal_camera_default, vendor_hal_oplus_cammidasservice)
hal_client_domain(hal_camera_default, vendor_hal_oplus_osense)
hal_client_domain(hal_camera_default, vendor_hal_oplus_performance)
allow hal_camera_default hal_oplus_urcc_aidl_service:service_manager find;
allow hal_camera_default vendor_hal_orms_hwservice:hwservice_manager find;
allow hal_camera_default vendor_hal_osense_hwservice:hwservice_manager find;

View File

@@ -0,0 +1,10 @@
type hal_oplus_urcc_aidl, domain;
vndbinder_use(hal_oplus_urcc_aidl)
type hal_oplus_urcc_aidl_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_oplus_urcc_aidl)
set_prop(hal_oplus_urcc_aidl, vendor_oplus_urcc_prop)
allow hal_oplus_urcc_aidl self:capability ipc_lock;
allow hal_oplus_urcc_aidl servicemanager:binder call;

View File

@@ -10,5 +10,8 @@ vendor_internal_prop(vendor_nw_exported_system_prop)
# Touch
vendor_internal_prop(vendor_oplus_touch_prop)
# URCC
vendor_internal_prop(vendor_oplus_urcc_prop)
# Widevine
vendor_internal_prop(vendor_wvmkiller_prop)

View File

@@ -41,5 +41,8 @@ vendor.oplus.touch. u:object_r:vendor_oplus_touch_prop:s0
vendor.oplus.touchDaemon. u:object_r:vendor_oplus_touch_prop:s0
vendor.touchdaemon. u:object_r:vendor_oplus_touch_prop:s0
# URCC
vendor.oplus.urcc.started u:object_r:vendor_oplus_urcc_prop:s0
# Widevine
vendor.wvm.disable_l1 u:object_r:vendor_wvmkiller_prop:s0

View File

@@ -12,3 +12,6 @@ type hal_oplus_project_aidl_service, hal_service_type, service_manager_type;
# Touch
type hal_oplus_touch_aidl_service, hal_service_type, service_manager_type;
# URCC
type hal_oplus_urcc_aidl_service, hal_service_type, service_manager_type;

View File

@@ -30,3 +30,6 @@ vendor.oplus.hardware.radio.IRadioStable/OplusRadio1 u:object_r:
# Touch
vendor.oplus.hardware.touch.IOplusTouch/default u:object_r:hal_oplus_touch_aidl_service:s0
# URCC
vendor.oplus.hardware.urcc.IUrcc/default u:object_r:hal_oplus_urcc_aidl_service:s0

View File

@@ -1 +1,3 @@
allow vendor_hal_perf_default hal_oplus_urcc_aidl_service:service_manager find;
r_dir_file(vendor_hal_perf_default, vendor_sysfs_usb_supply)