init.rc: set fsck log permission on post-fs-data
Fixes: 130829745 Test: build and trigger fsck crosshatch:/ # ls -l /dev/fscklogs/log -rwxrwx--- 1 root system 1584 1970-04-08 14:48 /dev/fscklogs/log Change-Id: Ifd0734e121d07b941a73d7cabde04928ce5e5c59 Merged-In: Ifd0734e121d07b941a73d7cabde04928ce5e5c59
This commit is contained in:
parent
1b2d56be18
commit
ec78cca331
1 changed files with 4 additions and 0 deletions
|
@ -608,6 +608,10 @@ on post-fs-data
|
|||
# IOCTLs on ashmem fds any more.
|
||||
setprop sys.use_memfd false
|
||||
|
||||
# Set fscklog permission
|
||||
chown root system /dev/fscklogs/log
|
||||
chmod 0770 /dev/fscklogs/log
|
||||
|
||||
# It is recommended to put unnecessary data/ initialization from post-fs-data
|
||||
# to start-zygote in device's init.rc to unblock zygote start.
|
||||
on zygote-start && property:ro.crypto.state=unencrypted
|
||||
|
|
Loading…
Reference in a new issue