From 0bcf0bf8f3d6f76f59384090944add1f2167907c Mon Sep 17 00:00:00 2001 From: Woody Lin Date: Wed, 8 Feb 2023 11:25:21 +0800 Subject: [PATCH] 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 --- rootdir/init.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 2929da4da..68191bb8f 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -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