permission for fsck to fix persist
[ 1.802418] init: processing action (early-init) from (/vendor/etc/init/hw/init.sm7150.rc:39)
[ 1.808816] init: [libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/platform/soc/1d84000.ufshc/by-name/persist
[ 1.808857] init: [libfs_mgr]Filesystem on /dev/block/platform/soc/1d84000.ufshc/by-name/persist was not cleanly shutdown; state flags: 0x1, incompat feature flags: 0x46
[ 1.808901] init: [libfs_mgr]check_fs(): mount(/dev/block/platform/soc/1d84000.ufshc/by-name/persist,/mnt/vendor/persist,ext4)=-1: No such file or directory[ 1.808986] init: [libfs_mgr]Running /system/bin/e2fsck on /dev/block/sda2
[ 1.834254] audit: type=1400 audit(3940514.216:4): avc: denied { read } for pid=550 comm="e2fsck" name="sda2" dev="tmpfs" ino=24709 scontext=u:r:fsck:s0 tcontext=u:object_r:persist_block_device:s0 tclass=blk_file permissive=0
[ 1.834274] audit: type=1400 audit(3940514.216:5): avc: denied { read write } for pid=550 comm="e2fsck" name="sda2" dev="tmpfs" ino=24709 scontext=u:r:fsck:s0 tcontext=u:object_r:persist_block_device:s0 tclass=blk_file permissive=0
[ 1.834653] e2fsck: e2fsck 1.44.4 (18-Aug-2018)\x0a
[ 1.834661] e2fsck: /system/bin/e2fsck: Permission denied while trying to open /dev/block/platform/soc/1d84000.ufshc/by-name/persist\x0a
[ 1.834665] e2fsck: You must have r/w access to the filesystem or be root\x0a
[ 1.834671] e2fsck: e2fsck terminated by exit(8)
Bug: 148033913
Test:
factory reset => reboot get boot log and find fsck working with no error
log
Change-Id: I5793eeb0b7bc59fcc3a989c38124f794bf811c1d
1 file changed