From a50f6c3c2cd5f566b0969e7c8c8a023f96e95b6a Mon Sep 17 00:00:00 2001 From: Paul Crowley Date: Thu, 24 Oct 2019 23:21:44 -0700 Subject: [PATCH] Use new encryption_options fstab entry Bug: 143307095 Test: change cuttlefish fstab Change-Id: Ia40daafc9b573c40f29c74dc2ef513fba3fc2bf9 --- FsCrypt.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/FsCrypt.cpp b/FsCrypt.cpp index d1fa256..c101ba8 100644 --- a/FsCrypt.cpp +++ b/FsCrypt.cpp @@ -201,8 +201,11 @@ static void get_data_file_encryption_options(EncryptionOptions* options) { if (entry == nullptr) { return; } - ParseOptionsParts(entry->file_contents_mode, entry->file_names_mode, entry->file_policy_version, - options); + if (!ParseOptions(entry->encryption_options, options)) { + LOG(ERROR) << "Unable to parse encryption options for " << DATA_MNT_POINT ": " + << entry->encryption_options; + return; + } } // Retrieve the version to use for encryption policies on the /data filesystem.