From dd1f2a2bd237331ba1e35baabe79855c7e68bc15 Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Thu, 6 Oct 2022 14:13:46 +0000 Subject: [PATCH] universal7885: sepolicy: Fix system_app rules Also move fm dev ioctl allow to fm hal --- .../sepolicy/private/hal_fmradio_default.te | 3 ++- universal7885-common/sepolicy/private/system_app.te | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/universal7885-common/sepolicy/private/hal_fmradio_default.te b/universal7885-common/sepolicy/private/hal_fmradio_default.te index 465f065..25ed2f3 100644 --- a/universal7885-common/sepolicy/private/hal_fmradio_default.te +++ b/universal7885-common/sepolicy/private/hal_fmradio_default.te @@ -1,5 +1,5 @@ type hal_fmradio_default, domain, coredomain; -type hal_fmradio_default_exec, exec_type, file_type, system_file_type; +type hal_fmradio_default_exec, exec_type, file_type, system_file_type; add_service(hal_fmradio_default, hal_fmradio_service); init_daemon_domain(hal_fmradio_default); @@ -11,3 +11,4 @@ allow hal_fmradio_default sysfs_fmradio_tune:file rw_file_perms; allow hal_fmradio_default sysfs_fmradio_tune:dir search; allow hal_fmradio_default sysfs_virtual:dir search; +allow hal_fmradio_default fm_radio_device:chr_file { read write open ioctl }; diff --git a/universal7885-common/sepolicy/private/system_app.te b/universal7885-common/sepolicy/private/system_app.te index f545e9a..520a394 100644 --- a/universal7885-common/sepolicy/private/system_app.te +++ b/universal7885-common/sepolicy/private/system_app.te @@ -1,14 +1,11 @@ # SamsungParts -allow system_app hal_parts_hwservice:hwservice_manager find; +allow system_app hal_parts_service:service_manager find; allow system_app hal_parts_default:binder call; r_dir_file(system_app, parts_data_file) # FMRadio -allow system_app hal_fmradio_hwservice:hwservice_manager find; +allow system_app hal_fmradio_service:service_manager find; allow system_app hal_fmradio_default:binder call; - -allow system_app fm_radio_device:chr_file { read write open ioctl }; -