From dd970e750230b703da5ace45541f58541dd99b38 Mon Sep 17 00:00:00 2001 From: BruceZong Date: Tue, 9 May 2023 22:48:45 +0800 Subject: [PATCH] support access of hiview_service for haps Signed-off-by: BruceZong --- sepolicy/base/te/normal_hap.te | 1 + sepolicy/base/te/system_basic_hap.te | 1 + sepolicy/base/te/system_core_hap.te | 1 + 3 files changed, 3 insertions(+) diff --git a/sepolicy/base/te/normal_hap.te b/sepolicy/base/te/normal_hap.te index 357e364d3..a10eb7f69 100644 --- a/sepolicy/base/te/normal_hap.te +++ b/sepolicy/base/te/normal_hap.te @@ -125,3 +125,4 @@ allowxperm normal_hap_attr normal_hap_data_file_attr:file ioctl { 0x5413 0xf50c binder_call(normal_hap_attr system_basic_hap); allow normal_hap_attr dev_asanlog_file:dir { rw_dir_perms }; allow normal_hap_attr dev_asanlog_file:file { create_file_perms }; +allow normal_hap_attr sa_hiview_service:samgr_class { get }; diff --git a/sepolicy/base/te/system_basic_hap.te b/sepolicy/base/te/system_basic_hap.te index bfec85ed3..726a66dfd 100644 --- a/sepolicy/base/te/system_basic_hap.te +++ b/sepolicy/base/te/system_basic_hap.te @@ -138,3 +138,4 @@ allow system_basic_hap sa_locationhub_lbsservice_gnss:samgr_class { get }; allow system_basic_hap sa_locationhub_lbsservice_network:samgr_class { get }; allow system_basic_hap sa_locationhub_lbsservice_passive:samgr_class { get }; allow system_basic_hap sa_location_geo_convert_service:samgr_class { get }; +allow system_basic_hap sa_hiview_service:samgr_class { get }; diff --git a/sepolicy/base/te/system_core_hap.te b/sepolicy/base/te/system_core_hap.te index 9a708ce57..696130495 100644 --- a/sepolicy/base/te/system_core_hap.te +++ b/sepolicy/base/te/system_core_hap.te @@ -122,3 +122,4 @@ allow system_core_hap tracefs_trace_marker_file:file { open write }; allowxperm system_core_hap dev_dri_file:chr_file ioctl { 0x641f }; allowxperm system_core_hap dev_mali:chr_file ioctl { 0x8000 0x8001 0x8002 0x8003 0x8005 0x8006 0x8007 0x800f 0x800e 0x8011 0x8014 0x8016 0x8018 0x8019 0x801d 0x801e 0x8024 0x8025 0x8026 0x8027 0x802a 0x802c 0x802d 0x802f 0x8030 0x8033 0x8034 0x8036 }; allowxperm system_core_hap system_core_hap_data_file:file ioctl { 0x5413 0xf50c }; +allow system_core_hap sa_hiview_service:samgr_class { get }; -- Gitee