OSDN Git Service

If the rollback directories won't encrypt, wipe them
authorPaul Crowley <paulcrowley@google.com>
Fri, 9 Aug 2019 21:19:11 +0000 (14:19 -0700)
committerPaul Crowley <paulcrowley@google.com>
Tue, 20 Aug 2019 18:40:55 +0000 (11:40 -0700)
commit58a49c3ae59d250cc1db49ce5a2678bf19bb92c3
tree916f0dd6675a1ba33b8a6b38716d695191172de4
parent5bb3b503a4a6a98867e72f488d65159fb0d4f54a
If the rollback directories won't encrypt, wipe them

/data/rollback and /data/rollback-observer used to be created
unencrypted by system-server. If they are unencrypted and have
content, force them to be encrypted by wiping their contents.

Bug: b/139193659
Test: Put content in these directories, then reboot and see it wiped.

Change-Id: I0320eb645ebe86965928acbacc8ad01dae2d5ba5
libfscrypt/fscrypt_init_extensions.cpp