From 6cbd833218dc6d182967685290389c2a616d00f0 Mon Sep 17 00:00:00 2001 From: Treehugger Robot Date: Tue, 3 May 2022 13:44:35 +0000 Subject: [PATCH] [MS82.4] Update sepolicy prebuilts This CL partially cherry-picks ag/18156623 to update prebuilts. Other parts are already included by aosp/2069127. Test: m Bug: 230289468 Change-Id: If52dea348c01113fe1504eb7e51f6780f0ed4a11 --- prebuilts/api/33.0/private/file.te | 1 + prebuilts/api/33.0/private/file_contexts | 1 + prebuilts/api/33.0/private/system_server.te | 2 ++ prebuilts/api/33.0/private/vold_prepare_subdirs.te | 1 + 4 files changed, 5 insertions(+) diff --git a/prebuilts/api/33.0/private/file.te b/prebuilts/api/33.0/private/file.te index 5a843f9f5..1afa50f4a 100644 --- a/prebuilts/api/33.0/private/file.te +++ b/prebuilts/api/33.0/private/file.te @@ -62,6 +62,7 @@ type apex_compos_data_file, file_type, data_file_type, core_data_file_type, apex type apex_appsearch_data_file, file_type, data_file_type, core_data_file_type, apex_data_file_type; type apex_permission_data_file, file_type, data_file_type, core_data_file_type, apex_data_file_type; type apex_scheduling_data_file, file_type, data_file_type, core_data_file_type, apex_data_file_type; +type apex_tethering_data_file, file_type, data_file_type, core_data_file_type, apex_data_file_type; type apex_wifi_data_file, file_type, data_file_type, core_data_file_type, apex_data_file_type; # /data/font/files diff --git a/prebuilts/api/33.0/private/file_contexts b/prebuilts/api/33.0/private/file_contexts index b4f42cfc5..af5179983 100644 --- a/prebuilts/api/33.0/private/file_contexts +++ b/prebuilts/api/33.0/private/file_contexts @@ -589,6 +589,7 @@ /data/misc/apexdata/com\.android\.compos(/.*)? u:object_r:apex_compos_data_file:s0 /data/misc/apexdata/com\.android\.permission(/.*)? u:object_r:apex_system_server_data_file:s0 /data/misc/apexdata/com\.android\.scheduling(/.*)? u:object_r:apex_system_server_data_file:s0 +/data/misc/apexdata/com\.android\.tethering(/.*)? u:object_r:apex_system_server_data_file:s0 /data/misc/apexdata/com\.android\.uwb(/.*)? u:object_r:apex_system_server_data_file:s0 /data/misc/apexdata/com\.android\.wifi(/.*)? u:object_r:apex_system_server_data_file:s0 /data/misc/apexrollback(/.*)? u:object_r:apex_rollback_data_file:s0 diff --git a/prebuilts/api/33.0/private/system_server.te b/prebuilts/api/33.0/private/system_server.te index ec7bfe4ab..6d9d960bc 100644 --- a/prebuilts/api/33.0/private/system_server.te +++ b/prebuilts/api/33.0/private/system_server.te @@ -1362,12 +1362,14 @@ allow system_server { apex_appsearch_data_file apex_permission_data_file apex_scheduling_data_file + apex_tethering_data_file apex_wifi_data_file }:dir create_dir_perms; allow system_server { apex_appsearch_data_file apex_permission_data_file apex_scheduling_data_file + apex_tethering_data_file apex_wifi_data_file }:file create_file_perms; diff --git a/prebuilts/api/33.0/private/vold_prepare_subdirs.te b/prebuilts/api/33.0/private/vold_prepare_subdirs.te index e1c8044ff..818660c21 100644 --- a/prebuilts/api/33.0/private/vold_prepare_subdirs.te +++ b/prebuilts/api/33.0/private/vold_prepare_subdirs.te @@ -56,6 +56,7 @@ allow vold_prepare_subdirs { apex_appsearch_data_file apex_permission_data_file apex_scheduling_data_file + apex_tethering_data_file apex_wifi_data_file }:dir relabelfrom;