File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -612,6 +612,9 @@ on late-fs
612
612
# HALs required before storage encryption can get unlocked (FBE/FDE)
613
613
class_start early_hal
614
614
615
+ # Load trusted keys from dm-verity protected partitions
616
+ exec -- /system/bin/fsverity_init --load-verified-keys
617
+
615
618
on post-fs-data
616
619
mark_post_data
617
620
@@ -853,6 +856,9 @@ on post-fs-data
853
856
wait_for_prop apexd.status activated
854
857
perform_apex_config
855
858
859
+ # Lock the fs-verity keyring, so no more keys can be added
860
+ exec -- /system/bin/fsverity_init --lock
861
+
856
862
# After apexes are mounted, tell keymaster early boot has ended, so it will
857
863
# stop allowing use of early-boot keys
858
864
exec - system system -- /system/bin/vdc keymaster earlyBootEnded
@@ -1034,9 +1040,6 @@ on boot
1034
1040
1035
1041
class_start core
1036
1042
1037
- # Requires keystore (currently a core service) to be ready first.
1038
- exec -- /system/bin/fsverity_init
1039
-
1040
1043
on nonencrypted
1041
1044
class_start main
1042
1045
class_start late_start
You can’t perform that action at this time.
0 commit comments