Add hal_shared_modem_platform to modem_diagnostic_app.te

This is needed to access the modem platform HAL.
FLAG: EXEMPT HAL interface change
Test: manual testing of selinux
Bug: 351024952

Change-Id: I95fc6b997e08ae46089ed90a1060c23274f6cd58
This commit is contained in:
Rohan Narayanan 2024-12-03 17:52:20 -08:00
parent 57bf47fc5c
commit afb2839d6e

View file

@ -1,3 +1,4 @@
# Selinux rule for ModemDiagnosticService (MDS) app
type modem_diagnostic_app, domain; type modem_diagnostic_app, domain;
app_domain(modem_diagnostic_app) app_domain(modem_diagnostic_app)
@ -10,6 +11,7 @@ userdebug_or_eng(`
allow modem_diagnostic_app sysfs_modem_state:file r_file_perms; allow modem_diagnostic_app sysfs_modem_state:file r_file_perms;
hal_client_domain(modem_diagnostic_app, hal_power_stats); hal_client_domain(modem_diagnostic_app, hal_power_stats);
hal_client_domain(modem_diagnostic_app, hal_shared_modem_platform);
allow modem_diagnostic_app hal_vendor_radio_external_service:service_manager find; allow modem_diagnostic_app hal_vendor_radio_external_service:service_manager find;
allow modem_diagnostic_app hal_exynos_rild_hwservice:hwservice_manager find; allow modem_diagnostic_app hal_exynos_rild_hwservice:hwservice_manager find;