From 6720a995bc81169cdd7dc8f142c0fed8b9ce6dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thi=C3=A9baud=20Weksteen?= Date: Mon, 25 Mar 2024 10:56:42 +1100 Subject: [PATCH] Add exception for vendor_aconfig_storage_file Backporting the original change would require aosp/2960462, aosp/2976451 and aosp/2982791. Simply add the exception and the basic type definition. Test: m plat_policy_for_vendor.cil Change-Id: I9750c24ffa26994e4f5deadd9d772e31211a446a Merged-In: I9750c24ffa26994e4f5deadd9d772e31211a446a --- private/domain.te | 1 + private/file.te | 3 +++ 2 files changed, 4 insertions(+) diff --git a/private/domain.te b/private/domain.te index 59d9d8aab..4aabe5b8a 100644 --- a/private/domain.te +++ b/private/domain.te @@ -623,6 +623,7 @@ full_treble_only(` -vendor_task_profiles_file -vendor_uuid_mapping_config_file -vndk_sp_file + -vendor_aconfig_storage_file }:file *; ') diff --git a/private/file.te b/private/file.te index e81108a4b..83261daac 100644 --- a/private/file.te +++ b/private/file.te @@ -137,3 +137,6 @@ type sysfs_dt_avf, fs_type, sysfs_type; # Type for /sys/devices/uprobe. type sysfs_uprobe, fs_type, sysfs_type; + +# Type for /vendor/etc/aconfig +type vendor_aconfig_storage_file, vendor_file_type, file_type;