From 7e72896011317d5bc523332660c8bac29e6b1741 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 8 Apr 2020 18:40:54 +0200 Subject: [PATCH] common: Add secril_config_svc Change-Id: I3c88da17a638a78ab58bcb33bb9b7d7e1fc7509a --- common/vendor/file_contexts | 1 + common/vendor/property_contexts | 5 +++++ common/vendor/secril_config_svc.te | 17 +++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 common/vendor/secril_config_svc.te diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts index 80eb20f..c5fc2f6 100644 --- a/common/vendor/file_contexts +++ b/common/vendor/file_contexts @@ -61,6 +61,7 @@ ### VENDOR /(vendor|system/vendor)/bin/cbd u:object_r:cbd_exec:s0 +/(vendor|system/vendor)/bin/secril_config_svc u:object_r:secril_config_svc_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@[0-9].[0-9]-service\.samsung u:object_r:hal_fingerprint_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.light@[0-9].[0-9]-service\.samsung u:object_r:hal_light_default_exec:s0 diff --git a/common/vendor/property_contexts b/common/vendor/property_contexts index 3fb4917..dfc8811 100644 --- a/common/vendor/property_contexts +++ b/common/vendor/property_contexts @@ -1,3 +1,8 @@ ### cbd vendor.cbd. u:object_r:vendor_cbd_prop:s0 persist.vendor.cbd. u:object_r:vendor_radio_prop:s0 + +### radio +ro.multisim. u:object_r:vendor_radio_prop:s0 +ro.vendor.multisim. u:object_r:vendor_radio_prop:s0 +ro.vendor.radio. u:object_r:vendor_radio_prop:s0 diff --git a/common/vendor/secril_config_svc.te b/common/vendor/secril_config_svc.te new file mode 100644 index 0000000..7396d75 --- /dev/null +++ b/common/vendor/secril_config_svc.te @@ -0,0 +1,17 @@ +# secril_config_svc.te + +type secril_config_svc, domain; +type secril_config_svc_exec, exec_type, vendor_file_type, file_type; + +# secril_config_svc is started by init, type transit from init domain to secril_config_svc domain +init_daemon_domain(secril_config_svc) + +# /mnt/vendor/efs/factory.prop +# /mnt/vendor/efs/telephony.prop +allow secril_config_svc efs_file:dir search; +allow secril_config_svc efs_file:file r_file_perms; + +# ro.multisim. +# ro.vendor.multisim. +# ro.vendor.radio.default_network +set_prop(secril_config_svc, vendor_radio_prop) -- 2.20.1