From ab3085004e35cff9517fcedb03317f3f1ac84cf9 Mon Sep 17 00:00:00 2001 From: Paul Crowley Date: Wed, 11 Sep 2019 14:57:45 -0700 Subject: [PATCH] Add a per-boot-key policy reference Bug: 140882488 Test: Booted twice, checked logs to ensure encryption is different each time, adb created files in directory. Change-Id: I5c962edb316d160dd09c0df893912c6b257d7810 --- libfscrypt/include/fscrypt/fscrypt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libfscrypt/include/fscrypt/fscrypt.h b/libfscrypt/include/fscrypt/fscrypt.h index 8a68b935..ff82d47a 100644 --- a/libfscrypt/include/fscrypt/fscrypt.h +++ b/libfscrypt/include/fscrypt/fscrypt.h @@ -32,6 +32,7 @@ int fscrypt_policy_ensure(const char *directory, const char *policy, static const char* fscrypt_unencrypted_folder = "/unencrypted"; static const char* fscrypt_key_ref = "/unencrypted/ref"; +static const char* fscrypt_key_per_boot_ref = "/unencrypted/per_boot_ref"; static const char* fscrypt_key_mode = "/unencrypted/mode"; __END_DECLS -- 2.11.0