diff --git a/basic/non_plat/power_off_alarm.te b/basic/non_plat/power_off_alarm.te new file mode 100644 index 0000000..279febf --- /dev/null +++ b/basic/non_plat/power_off_alarm.te @@ -0,0 +1,9 @@ +type power_off_alarm, domain, mlstrustedsubject; +app_domain(power_off_alarm) +allow power_off_alarm app_api_service:service_manager find; +allow power_off_alarm system_app_data_file:dir create_dir_perms; +allow power_off_alarm system_app_data_file:{ file lnk_file } create_file_perms; + +# Purpose : support power-off alarm +allow power_off_alarm alarm_device:chr_file rw_file_perms; +allow power_off_alarm rtc_device:chr_file rw_file_perms; diff --git a/basic/non_plat/seapp_contexts b/basic/non_plat/seapp_contexts new file mode 100644 index 0000000..23a9bc9 --- /dev/null +++ b/basic/non_plat/seapp_contexts @@ -0,0 +1 @@ +user=system isPrivApp=true seinfo=platform name=com.qualcomm.qti.poweroffalarm type=system_app_data_file domain=power_off_alarm levelFrom=user diff --git a/basic/non_plat/system_server.te b/basic/non_plat/system_server.te index 8496364..8e61df4 100644 --- a/basic/non_plat/system_server.te +++ b/basic/non_plat/system_server.te @@ -144,11 +144,6 @@ allowxperm system_server proc_perfmgr:file ioctl { # Purpose : MTK wifi hal interface permission binder_call(system_server, mtk_hal_wifi) -# Date : W19.15 -# Operation : alarm device permission -# Purpose : support power-off alarm -allow system_server alarm_device:chr_file rw_file_perms; - # Date : WK19.7 # Operation: Q migration # Purpose : Allow system_server to use ioctl/ioctlcmd