Storage: add selinux for ufs firmware upgrade event
avc: denied { execute_no_trans } for comm="ufs_firmware_up" path="/vendor/bin/toybox_vendor" dev="dm-11" ino=380 scontext=u:r:ufs_firmware_update:s0 tcontext=u:object_r:vendor_toolbox_exec:s0 tclass=file permissive=1 avc: denied { read } for comm="cat" name="vendor" dev="sysfs" ino=63193 scontext=u:r:ufs_firmware_update:s0 tcontext=u:object_r:sysfs_scsi_devices_0000:s0 tclass=file permissive=1 avc: denied { open } for comm="cat" path="/sys/devices/platform/13200000.ufs/vendor" dev="sysfs" ino=63193 scontext=u:r:ufs_firmware_update:s0 tcontext=u:object_r:sysfs_scsi_devices_0000:s0 tclass=file permissive=1 avc: denied { search } for comm="dd" name="block" dev="tmpfs" ino=12 scontext=u:r:ufs_firmware_update:s0 tcontext=u:object_r:block_device:s0 tclass=dir permissive=1 avc: denied { write } for comm="dd" name="sda12" dev="tmpfs" ino=1139 scontext=u:r:ufs_firmware_update:s0 tcontext=u:object_r:ufs_internal_block_device:s0 tclass=blk_file permissive=1 Bug: 361093041 Test: NA Change-Id: I54445d4543a733baae85cd408b433033dd93ec6b Signed-off-by: Randall Huang <huangrandall@google.com>
This commit is contained in:
parent
e5c668587d
commit
0f4a0bb8a2
1 changed files with 9 additions and 0 deletions
9
storage/sepolicy/ufs_firmware_update.te
Normal file
9
storage/sepolicy/ufs_firmware_update.te
Normal file
|
@ -0,0 +1,9 @@
|
|||
# support ufs ffu via ota
|
||||
init_daemon_domain(ufs_firmware_update)
|
||||
|
||||
# support ufs ffu via ota
|
||||
allow ufs_firmware_update vendor_toolbox_exec:file execute_no_trans;
|
||||
allow ufs_firmware_update block_device:dir { search };
|
||||
allow ufs_firmware_update ufs_internal_block_device:blk_file rw_file_perms;
|
||||
allow ufs_firmware_update sysfs_scsi_devices_0000:file r_file_perms;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue