From 6cda4c1c19c22e60a62e7560cb2dcab0e89c93f2 Mon Sep 17 00:00:00 2001 From: Randall Huang Date: Tue, 21 Jan 2025 07:33:36 +0800 Subject: [PATCH] storage: fix userdata_exp.ai partition selinux error avc: denied { write } for comm="init" name="sda34" dev="tmpfs" ino=1296 scontext=u:r:init:s0 tcontext=u:object_r:userdata_exp_block_device:s0 tclass=blk_file permissive=1 Bug: 361093433 Test: boot without issue Change-Id: I0c74eb19172f39c44fc2ca61ba0bb8e38c808556 Signed-off-by: Randall Huang --- storage/sepolicy/init.te | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/sepolicy/init.te b/storage/sepolicy/init.te index 464ca4b..aa6d415 100644 --- a/storage/sepolicy/init.te +++ b/storage/sepolicy/init.te @@ -1,4 +1,5 @@ # init allow init sysfs_scsi_devices_0000:file w_file_perms; +allow init userdata_exp_block_device:blk_file write; dontaudit init intelligence_data_file:dir mounton;