Storage: fix build breakage of storage firmware upgrade sepolicy

Bug: 361093041
Test: local build
Change-Id: I12a3f2822b2a547031ce29522597ed4a31a69b06
Signed-off-by: Randall Huang <huangrandall@google.com>
This commit is contained in:
Randall Huang 2024-09-03 06:11:57 +08:00
parent b18291cc9f
commit 2baf9fb7c5

View file

@ -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;