universal7885: sepolicy: Fix system_app rules

Also move fm dev ioctl allow to fm hal
This commit is contained in:
roynatech2544 2022-10-06 14:13:46 +00:00
commit dd1f2a2bd2
2 changed files with 4 additions and 6 deletions

View file

@ -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 };

View file

@ -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 };