Skip to content

Commit cd91f86

Browse files
Martijn CoenenGerrit Code Review
Martijn Coenen
authored and
Gerrit Code Review
committed
Merge "Split fsverity_init in two phases."
2 parents f38f0fd + 3b68bf2 commit cd91f86

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

rootdir/init.rc

+6-3
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ on late-fs
612612
# HALs required before storage encryption can get unlocked (FBE/FDE)
613613
class_start early_hal
614614

615+
# Load trusted keys from dm-verity protected partitions
616+
exec -- /system/bin/fsverity_init --load-verified-keys
617+
615618
on post-fs-data
616619
mark_post_data
617620

@@ -853,6 +856,9 @@ on post-fs-data
853856
wait_for_prop apexd.status activated
854857
perform_apex_config
855858

859+
# Lock the fs-verity keyring, so no more keys can be added
860+
exec -- /system/bin/fsverity_init --lock
861+
856862
# After apexes are mounted, tell keymaster early boot has ended, so it will
857863
# stop allowing use of early-boot keys
858864
exec - system system -- /system/bin/vdc keymaster earlyBootEnded
@@ -1034,9 +1040,6 @@ on boot
10341040

10351041
class_start core
10361042

1037-
# Requires keystore (currently a core service) to be ready first.
1038-
exec -- /system/bin/fsverity_init
1039-
10401043
on nonencrypted
10411044
class_start main
10421045
class_start late_start

0 commit comments

Comments
 (0)