From 2baf9fb7c5f5dc3a5d024906af84478aca0e9a3e Mon Sep 17 00:00:00 2001 From: Randall Huang Date: Tue, 3 Sep 2024 06:11:57 +0800 Subject: [PATCH 1/2] Storage: fix build breakage of storage firmware upgrade sepolicy Bug: 361093041 Test: local build Change-Id: I12a3f2822b2a547031ce29522597ed4a31a69b06 Signed-off-by: Randall Huang --- bluejay/ufs_firmware_update.te | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bluejay/ufs_firmware_update.te b/bluejay/ufs_firmware_update.te index 53ceba5..f0b801f 100644 --- a/bluejay/ufs_firmware_update.te +++ b/bluejay/ufs_firmware_update.te @@ -1,10 +1,10 @@ -type ufs_firmware_update, domain; -type ufs_firmware_update_exec, vendor_file_type, exec_type, file_type; - +# Storage firmware upgrade init_daemon_domain(ufs_firmware_update) +# ufs FFU allow ufs_firmware_update vendor_toolbox_exec:file execute_no_trans; allow ufs_firmware_update block_device:dir r_dir_perms; allow ufs_firmware_update fips_block_device:blk_file rw_file_perms; allow ufs_firmware_update sysfs:dir r_dir_perms; allow ufs_firmware_update sysfs_scsi_devices_0000:file r_file_perms; + From 1ffd592ab040c10a39acedb2f85c58aeb9a67b21 Mon Sep 17 00:00:00 2001 From: Randall Huang Date: Wed, 4 Sep 2024 12:47:11 +0800 Subject: [PATCH 2/2] storage: move storage related device type to common folder Bug: 364225000 Test: forrest build Change-Id: I7d1652ff0415d557a57d7eb99f9c2a9470f471ab Signed-off-by: Randall Huang --- bluejay/file_contexts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bluejay/file_contexts b/bluejay/file_contexts index a273c79..c3e78a4 100644 --- a/bluejay/file_contexts +++ b/bluejay/file_contexts @@ -1,5 +1,3 @@ -# Binaries -/vendor/bin/ufs_firmware_update\.sh u:object_r:ufs_firmware_update_exec:s0 - # Devices /dev/block/platform/14700000\.ufs/by-name/fips u:object_r:fips_block_device:s0 +