Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #include "MetadataCrypt.h" |
Paul Crowley | 14c8c07 | 2018-09-18 13:30:21 -0700 | [diff] [blame] | 18 | #include "KeyBuffer.h" |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 19 | |
Paul Crowley | 14c8c07 | 2018-09-18 13:30:21 -0700 | [diff] [blame] | 20 | #include <algorithm> |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 21 | #include <string> |
| 22 | #include <thread> |
| 23 | #include <vector> |
| 24 | |
| 25 | #include <fcntl.h> |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 26 | #include <sys/param.h> |
| 27 | #include <sys/stat.h> |
| 28 | #include <sys/types.h> |
| 29 | |
Daniel Rosenberg | 690d6de | 2018-12-14 01:08:10 -0800 | [diff] [blame] | 30 | #include <android-base/file.h> |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 31 | #include <android-base/logging.h> |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 32 | #include <android-base/properties.h> |
Paul Crowley | e4c93da | 2017-06-16 09:21:18 -0700 | [diff] [blame] | 33 | #include <android-base/unique_fd.h> |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 34 | #include <cutils/fs.h> |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 35 | #include <fs_mgr.h> |
David Anderson | b922473 | 2019-05-13 13:02:54 -0700 | [diff] [blame] | 36 | #include <libdm/dm.h> |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 37 | |
Daniel Rosenberg | 65f99c9 | 2018-08-28 01:58:49 -0700 | [diff] [blame] | 38 | #include "Checkpoint.h" |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 39 | #include "EncryptInplace.h" |
Steven Laver | ed7b353 | 2020-02-12 12:49:40 -0800 | [diff] [blame^] | 40 | #include "FsCrypt.h" |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 41 | #include "KeyStorage.h" |
| 42 | #include "KeyUtil.h" |
Daniel Rosenberg | 690d6de | 2018-12-14 01:08:10 -0800 | [diff] [blame] | 43 | #include "Keymaster.h" |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 44 | #include "Utils.h" |
| 45 | #include "VoldUtil.h" |
| 46 | |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 47 | #define TABLE_LOAD_RETRIES 10 |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 48 | |
Tom Cherry | 4c5bde2 | 2019-01-29 14:34:01 -0800 | [diff] [blame] | 49 | using android::fs_mgr::FstabEntry; |
| 50 | using android::fs_mgr::GetEntryForMountPoint; |
Pavel Grafov | e2e2d30 | 2017-08-01 17:15:53 +0100 | [diff] [blame] | 51 | using android::vold::KeyBuffer; |
David Anderson | b922473 | 2019-05-13 13:02:54 -0700 | [diff] [blame] | 52 | using namespace android::dm; |
Pavel Grafov | e2e2d30 | 2017-08-01 17:15:53 +0100 | [diff] [blame] | 53 | |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 54 | static const std::string kDmNameUserdata = "userdata"; |
| 55 | |
Daniel Rosenberg | 690d6de | 2018-12-14 01:08:10 -0800 | [diff] [blame] | 56 | static const char* kFn_keymaster_key_blob = "keymaster_key_blob"; |
| 57 | static const char* kFn_keymaster_key_blob_upgraded = "keymaster_key_blob_upgraded"; |
| 58 | |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 59 | static bool mount_via_fs_mgr(const char* mount_point, const char* blk_device) { |
| 60 | // fs_mgr_do_mount runs fsck. Use setexeccon to run trusted |
| 61 | // partitions in the fsck domain. |
LongPing Wei | 7f3ab95 | 2019-01-30 16:03:14 +0800 | [diff] [blame] | 62 | if (setexeccon(android::vold::sFsckContext)) { |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 63 | PLOG(ERROR) << "Failed to setexeccon"; |
| 64 | return false; |
| 65 | } |
Tom Cherry | 4c5bde2 | 2019-01-29 14:34:01 -0800 | [diff] [blame] | 66 | auto mount_rc = fs_mgr_do_mount(&fstab_default, const_cast<char*>(mount_point), |
Daniel Rosenberg | 65f99c9 | 2018-08-28 01:58:49 -0700 | [diff] [blame] | 67 | const_cast<char*>(blk_device), nullptr, |
| 68 | android::vold::cp_needsCheckpoint()); |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 69 | if (setexeccon(nullptr)) { |
| 70 | PLOG(ERROR) << "Failed to clear setexeccon"; |
| 71 | return false; |
| 72 | } |
| 73 | if (mount_rc != 0) { |
| 74 | LOG(ERROR) << "fs_mgr_do_mount failed with rc " << mount_rc; |
| 75 | return false; |
| 76 | } |
| 77 | LOG(DEBUG) << "Mounted " << mount_point; |
| 78 | return true; |
| 79 | } |
| 80 | |
Daniel Rosenberg | 690d6de | 2018-12-14 01:08:10 -0800 | [diff] [blame] | 81 | namespace android { |
| 82 | namespace vold { |
| 83 | |
| 84 | // Note: It is possible to orphan a key if it is removed before deleting |
| 85 | // Update this once keymaster APIs change, and we have a proper commit. |
Greg Kaiser | 8ae16db | 2018-12-18 11:10:31 -0800 | [diff] [blame] | 86 | static void commit_key(const std::string& dir) { |
Daniel Rosenberg | 690d6de | 2018-12-14 01:08:10 -0800 | [diff] [blame] | 87 | while (!android::base::WaitForProperty("vold.checkpoint_committed", "1")) { |
| 88 | LOG(ERROR) << "Wait for boot timed out"; |
| 89 | } |
| 90 | Keymaster keymaster; |
| 91 | auto keyPath = dir + "/" + kFn_keymaster_key_blob; |
| 92 | auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; |
| 93 | std::string key; |
| 94 | |
| 95 | if (!android::base::ReadFileToString(keyPath, &key)) { |
| 96 | LOG(ERROR) << "Failed to read old key: " << dir; |
| 97 | return; |
| 98 | } |
| 99 | if (rename(newKeyPath.c_str(), keyPath.c_str()) != 0) { |
| 100 | PLOG(ERROR) << "Unable to move upgraded key to location: " << keyPath; |
| 101 | return; |
| 102 | } |
| 103 | if (!keymaster.deleteKey(key)) { |
| 104 | LOG(ERROR) << "Key deletion failed during upgrade, continuing anyway: " << dir; |
| 105 | } |
| 106 | LOG(INFO) << "Old Key deleted: " << dir; |
| 107 | } |
| 108 | |
Tom Cherry | 4c5bde2 | 2019-01-29 14:34:01 -0800 | [diff] [blame] | 109 | static bool read_key(const FstabEntry& data_rec, bool create_if_absent, KeyBuffer* key) { |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 110 | if (data_rec.metadata_key_dir.empty()) { |
| 111 | LOG(ERROR) << "Failed to get metadata_key_dir"; |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 112 | return false; |
| 113 | } |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 114 | std::string metadata_key_dir = data_rec.metadata_key_dir; |
Daniel Rosenberg | 690d6de | 2018-12-14 01:08:10 -0800 | [diff] [blame] | 115 | std::string sKey; |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 116 | auto dir = metadata_key_dir + "/key"; |
| 117 | LOG(DEBUG) << "metadata_key_dir/key: " << dir; |
Paul Crowley | 98a23a1 | 2018-05-09 13:01:16 -0700 | [diff] [blame] | 118 | if (fs_mkdirs(dir.c_str(), 0700)) { |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 119 | PLOG(ERROR) << "Creating directories: " << dir; |
Paul Crowley | 98a23a1 | 2018-05-09 13:01:16 -0700 | [diff] [blame] | 120 | return false; |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 121 | } |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 122 | auto temp = metadata_key_dir + "/tmp"; |
Daniel Rosenberg | 690d6de | 2018-12-14 01:08:10 -0800 | [diff] [blame] | 123 | auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; |
| 124 | /* If we have a leftover upgraded key, delete it. |
| 125 | * We either failed an update and must return to the old key, |
| 126 | * or we rebooted before commiting the keys in a freak accident. |
| 127 | * Either way, we can re-upgrade the key if we need to. |
| 128 | */ |
| 129 | Keymaster keymaster; |
| 130 | if (pathExists(newKeyPath)) { |
| 131 | if (!android::base::ReadFileToString(newKeyPath, &sKey)) |
| 132 | LOG(ERROR) << "Failed to read old key: " << dir; |
| 133 | else if (!keymaster.deleteKey(sKey)) |
| 134 | LOG(ERROR) << "Old key deletion failed, continuing anyway: " << dir; |
| 135 | else |
| 136 | unlink(newKeyPath.c_str()); |
| 137 | } |
| 138 | bool needs_cp = cp_needsCheckpoint(); |
Steven Laver | ed7b353 | 2020-02-12 12:49:40 -0800 | [diff] [blame^] | 139 | if (!android::vold::retrieveKey(create_if_absent, kEmptyAuthentication, dir, temp, |
| 140 | is_metadata_wrapped_key_supported(), key, needs_cp)) |
Paul Crowley | 77df7f2 | 2020-01-23 15:29:30 -0800 | [diff] [blame] | 141 | return false; |
Daniel Rosenberg | 690d6de | 2018-12-14 01:08:10 -0800 | [diff] [blame] | 142 | if (needs_cp && pathExists(newKeyPath)) std::thread(commit_key, dir).detach(); |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 143 | return true; |
| 144 | } |
| 145 | |
Daniel Rosenberg | 690d6de | 2018-12-14 01:08:10 -0800 | [diff] [blame] | 146 | } // namespace vold |
| 147 | } // namespace android |
| 148 | |
Paul Crowley | 14c8c07 | 2018-09-18 13:30:21 -0700 | [diff] [blame] | 149 | static bool get_number_of_sectors(const std::string& real_blkdev, uint64_t* nr_sec) { |
Oleksiy Avramchenko | 625dc78 | 2018-05-23 10:50:46 +0200 | [diff] [blame] | 150 | if (android::vold::GetBlockDev512Sectors(real_blkdev, nr_sec) != android::OK) { |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 151 | PLOG(ERROR) << "Unable to measure size of " << real_blkdev; |
| 152 | return false; |
| 153 | } |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 154 | return true; |
| 155 | } |
| 156 | |
Paul Crowley | 84e84c5 | 2020-01-29 16:09:19 -0800 | [diff] [blame] | 157 | static std::string lookup_cipher(const std::string& cipher_name, bool is_legacy) { |
| 158 | if (is_legacy) { |
| 159 | if (cipher_name.empty() || cipher_name == "aes-256-xts") { |
| 160 | return "AES-256-XTS"; |
| 161 | } |
| 162 | } else { |
| 163 | if (cipher_name.empty() || cipher_name == "aes-256-xts") { |
| 164 | return "aes-xts-plain64"; |
| 165 | } else if (cipher_name == "adiantum") { |
| 166 | return "xchacha12,aes-adiantum-plain64"; |
| 167 | } |
| 168 | } |
| 169 | LOG(ERROR) << "No metadata cipher named " << cipher_name << " found, is_legacy=" << is_legacy; |
| 170 | return ""; |
| 171 | } |
| 172 | |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 173 | static bool create_crypto_blk_dev(const std::string& dm_name, const FstabEntry* data_rec, |
| 174 | const KeyBuffer& key, std::string* crypto_blkdev) { |
| 175 | uint64_t nr_sec; |
| 176 | if (!get_number_of_sectors(data_rec->blk_device, &nr_sec)) return false; |
David Anderson | b922473 | 2019-05-13 13:02:54 -0700 | [diff] [blame] | 177 | |
Paul Crowley | 92a14b6 | 2020-01-28 10:37:39 -0800 | [diff] [blame] | 178 | bool is_legacy; |
| 179 | if (!DmTargetDefaultKey::IsLegacy(&is_legacy)) return false; |
| 180 | |
Paul Crowley | 84e84c5 | 2020-01-29 16:09:19 -0800 | [diff] [blame] | 181 | auto cipher = lookup_cipher(data_rec->metadata_cipher, is_legacy); |
| 182 | if (cipher.empty()) return false; |
David Anderson | b922473 | 2019-05-13 13:02:54 -0700 | [diff] [blame] | 183 | |
| 184 | KeyBuffer hex_key_buffer; |
| 185 | if (android::vold::StrToHex(key, hex_key_buffer) != android::OK) { |
| 186 | LOG(ERROR) << "Failed to turn key to hex"; |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 187 | return false; |
| 188 | } |
David Anderson | b922473 | 2019-05-13 13:02:54 -0700 | [diff] [blame] | 189 | std::string hex_key(hex_key_buffer.data(), hex_key_buffer.size()); |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 190 | |
Paul Crowley | 92a14b6 | 2020-01-28 10:37:39 -0800 | [diff] [blame] | 191 | // Non-legacy driver always sets DUN |
| 192 | bool set_dun = !is_legacy || android::base::GetBoolProperty("ro.crypto.set_dun", false); |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 193 | if (!set_dun && data_rec->fs_mgr_flags.checkpoint_blk) { |
| 194 | LOG(ERROR) << "Block checkpoints and metadata encryption require ro.crypto.set_dun option"; |
| 195 | return false; |
| 196 | } |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 197 | |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 198 | DmTable table; |
Paul Crowley | 84e84c5 | 2020-01-29 16:09:19 -0800 | [diff] [blame] | 199 | table.Emplace<DmTargetDefaultKey>(0, nr_sec, cipher, hex_key, data_rec->blk_device, 0, |
| 200 | is_legacy, set_dun); |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 201 | |
| 202 | auto& dm = DeviceMapper::Instance(); |
Paul Crowley | 14c8c07 | 2018-09-18 13:30:21 -0700 | [diff] [blame] | 203 | for (int i = 0;; i++) { |
David Anderson | b922473 | 2019-05-13 13:02:54 -0700 | [diff] [blame] | 204 | if (dm.CreateDevice(dm_name, table)) { |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 205 | break; |
| 206 | } |
Paul Crowley | 14c8c07 | 2018-09-18 13:30:21 -0700 | [diff] [blame] | 207 | if (i + 1 >= TABLE_LOAD_RETRIES) { |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 208 | PLOG(ERROR) << "Could not create default-key device " << dm_name; |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 209 | return false; |
| 210 | } |
David Anderson | b922473 | 2019-05-13 13:02:54 -0700 | [diff] [blame] | 211 | PLOG(INFO) << "Could not create default-key device, retrying"; |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 212 | usleep(500000); |
| 213 | } |
| 214 | |
David Anderson | b922473 | 2019-05-13 13:02:54 -0700 | [diff] [blame] | 215 | if (!dm.GetDmDevicePathByName(dm_name, crypto_blkdev)) { |
| 216 | LOG(ERROR) << "Cannot retrieve default-key device status " << dm_name; |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 217 | return false; |
| 218 | } |
| 219 | return true; |
| 220 | } |
| 221 | |
Paul Lawrence | f376a01 | 2019-06-25 14:44:33 -0700 | [diff] [blame] | 222 | bool fscrypt_mount_metadata_encrypted(const std::string& blk_device, const std::string& mount_point, |
| 223 | bool needs_encrypt) { |
Eric Biggers | a701c45 | 2018-10-23 13:06:55 -0700 | [diff] [blame] | 224 | LOG(DEBUG) << "fscrypt_mount_metadata_encrypted: " << mount_point << " " << needs_encrypt; |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 225 | auto encrypted_state = android::base::GetProperty("ro.crypto.state", ""); |
Nikita Ioffe | f850e6e | 2019-12-09 21:19:11 +0000 | [diff] [blame] | 226 | if (encrypted_state != "" && encrypted_state != "encrypted") { |
Eric Biggers | a701c45 | 2018-10-23 13:06:55 -0700 | [diff] [blame] | 227 | LOG(DEBUG) << "fscrypt_enable_crypto got unexpected starting state: " << encrypted_state; |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 228 | return false; |
| 229 | } |
Tom Cherry | 4c5bde2 | 2019-01-29 14:34:01 -0800 | [diff] [blame] | 230 | |
| 231 | auto data_rec = GetEntryForMountPoint(&fstab_default, mount_point); |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 232 | if (!data_rec) { |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 233 | LOG(ERROR) << "Failed to get data_rec for " << mount_point; |
| 234 | return false; |
| 235 | } |
| 236 | if (blk_device != data_rec->blk_device) { |
| 237 | LOG(ERROR) << "blk_device " << blk_device << " does not match fstab entry " |
| 238 | << data_rec->blk_device << " for " << mount_point; |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 239 | return false; |
| 240 | } |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 241 | KeyBuffer key; |
Tom Cherry | 4c5bde2 | 2019-01-29 14:34:01 -0800 | [diff] [blame] | 242 | if (!read_key(*data_rec, needs_encrypt, &key)) return false; |
Paul Lawrence | 4b140d3 | 2019-08-07 15:22:57 -0700 | [diff] [blame] | 243 | |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 244 | std::string crypto_blkdev; |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 245 | if (!create_crypto_blk_dev(kDmNameUserdata, data_rec, key, &crypto_blkdev)) return false; |
Paul Lawrence | f376a01 | 2019-06-25 14:44:33 -0700 | [diff] [blame] | 246 | |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 247 | // FIXME handle the corrupt case |
| 248 | if (needs_encrypt) { |
Paul Crowley | c9b92f0 | 2020-01-30 15:26:15 -0800 | [diff] [blame] | 249 | uint64_t nr_sec; |
| 250 | if (!get_number_of_sectors(data_rec->blk_device, &nr_sec)) return false; |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 251 | LOG(INFO) << "Beginning inplace encryption, nr_sec: " << nr_sec; |
| 252 | off64_t size_already_done = 0; |
Paul Lawrence | f376a01 | 2019-06-25 14:44:33 -0700 | [diff] [blame] | 253 | auto rc = cryptfs_enable_inplace(crypto_blkdev.data(), blk_device.data(), nr_sec, |
Tom Cherry | 4c5bde2 | 2019-01-29 14:34:01 -0800 | [diff] [blame] | 254 | &size_already_done, nr_sec, 0, false); |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 255 | if (rc != 0) { |
| 256 | LOG(ERROR) << "Inplace crypto failed with code: " << rc; |
| 257 | return false; |
| 258 | } |
| 259 | if (static_cast<uint64_t>(size_already_done) != nr_sec) { |
| 260 | LOG(ERROR) << "Inplace crypto only got up to sector: " << size_already_done; |
| 261 | return false; |
| 262 | } |
| 263 | LOG(INFO) << "Inplace encryption complete"; |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 264 | } |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 265 | |
Paul Crowley | 0fd2626 | 2018-01-30 09:48:19 -0800 | [diff] [blame] | 266 | LOG(DEBUG) << "Mounting metadata-encrypted filesystem:" << mount_point; |
Tom Cherry | 4c5bde2 | 2019-01-29 14:34:01 -0800 | [diff] [blame] | 267 | mount_via_fs_mgr(data_rec->mount_point.c_str(), crypto_blkdev.c_str()); |
Paul Crowley | d575981 | 2016-06-02 11:04:27 -0700 | [diff] [blame] | 268 | return true; |
| 269 | } |