[ALPS03879689] mdlogger SELinux error
[Solution] Fix boot mode selinux error MTK-Commit-Id: 561f4064456c585ee83e66fc863065d77f256ff8 Change-Id: Id272b61b7e2fc462726770ccde9bd31c1725ce9e CR-Id: ALPS03879689 Feature: C2K Modem Log Tool
This commit is contained in:
parent
cce2bb9a1a
commit
933f54b148
@ -25,5 +25,5 @@ allow cmddumper media_rw_data_file:dir { create_dir_perms };
|
||||
allow cmddumper file_contexts_file:file { read getattr open };
|
||||
|
||||
# purpose: access /sys/devices/virtual/BOOT/BOOT/boot/boot_mode
|
||||
#allow cmddumper sysfs:file { read open };
|
||||
allow cmddumper sysfs_boot:file { read open };
|
||||
|
||||
|
@ -57,7 +57,7 @@ allow emdlogger storage_file:file { create_file_perms };
|
||||
|
||||
#permission for read boot mode
|
||||
#avc: denied { open } path="/sys/devices/virtual/BOOT/BOOT/boot/boot_mode" dev="sysfs"
|
||||
#allow emdlogger sysfs:file { read open };
|
||||
allow emdlogger sysfs_boot:file { read open };
|
||||
|
||||
# Allow read to sys/kernel/ccci/* files
|
||||
allow emdlogger sysfs_ccci:dir search;
|
||||
|
@ -53,3 +53,7 @@ allow mdlogger aee_aed:unix_stream_socket connectto;
|
||||
|
||||
## purpose: avc: denied { read } for name="plat_file_contexts"
|
||||
allow emdlogger file_contexts_file:file { read getattr open};
|
||||
|
||||
#permission for read boot mode
|
||||
#avc: denied { open } path="/sys/devices/virtual/BOOT/BOOT/boot/boot_mode" dev="sysfs"
|
||||
allow mdlogger sysfs_boot:file { read open };
|
@ -46,10 +46,6 @@ allow mdlogger storage_file:file { create_file_perms };
|
||||
## purpose: avc: denied { read } for name="plat_file_contexts"
|
||||
allow mdlogger file_contexts_file:file { read getattr open };
|
||||
|
||||
#permission for read boot mode
|
||||
#avc: denied { open } path="/sys/devices/virtual/BOOT/BOOT/boot/boot_mode" dev="sysfs"
|
||||
#allow mdlogger sysfs:file { read open };
|
||||
|
||||
# Allow read avc: denied { read } for name="mddb" dev="mmcblk0p25" ino=681
|
||||
# scontext=u:r:mdlogger:s0 tcontext=u:object_r:system_file:s0 tclass=dir permissive=0
|
||||
allow mdlogger system_file:dir read;
|
||||
|
Loading…
x
Reference in New Issue
Block a user