Fix labels on /data/system/shutdown-checkpoints/

Bug: 260366497
Bug: 264600011
Test: The correct label is assigned to dir after taking reboot
Test: Both system_server and dumpstate can access it
Change-Id: Icecbb59ddf936088aa3873bf1b143a08f035fefe
This commit is contained in:
Woody Lin 2023-02-08 11:25:21 +08:00
parent 8f09cb5ba6
commit 0bcf0bf8f3
1 changed files with 4 additions and 0 deletions

View File

@ -925,6 +925,10 @@ on post-fs-data
mkdir /data/system/dropbox 0700 system system
mkdir /data/system/heapdump 0700 system system
mkdir /data/system/users 0775 system system
# Mkdir and set SELinux security contexts for shutdown-checkpoints.
# TODO(b/270286197): remove these after couple releases.
mkdir /data/system/shutdown-checkpoints 0700 system system
restorecon_recursive /data/system/shutdown-checkpoints
# Create the parent directories of the user CE and DE storage directories.
# These parent directories must use encryption=None, since each of their