Lines Matching refs:mountpoint

244 static bool installFsKeyringKey(const std::string& mountpoint, const EncryptionOptions& options,  in installFsKeyringKey()  argument
248 android::base::unique_fd fd(open(mountpoint.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in installFsKeyringKey()
250 PLOG(ERROR) << "Failed to open " << mountpoint << " to install key"; in installFsKeyringKey()
255 PLOG(ERROR) << "Failed to install fscrypt key to " << mountpoint; in installFsKeyringKey()
262 bool installKey(const std::string& mountpoint, const EncryptionOptions& options, in installKey() argument
300 if (!installFsKeyringKey(mountpoint, options, arg)) return false; in installKey()
308 LOG(DEBUG) << "Installed fscrypt key with ref " << ref << " to " << mountpoint; in installKey()
357 bool evictKey(const std::string& mountpoint, const EncryptionPolicy& policy) { in evictKey() argument
362 android::base::unique_fd fd(open(mountpoint.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in evictKey()
364 PLOG(ERROR) << "Failed to open " << mountpoint << " to evict key"; in evictKey()
378 PLOG(ERROR) << "Failed to evict fscrypt key with ref " << ref << " from " << mountpoint; in evictKey()
382 LOG(DEBUG) << "Evicted fscrypt key with ref " << ref << " from " << mountpoint; in evictKey()
413 bool reloadKeyFromSessionKeyring(const std::string& mountpoint, const EncryptionPolicy& policy) { in reloadKeyFromSessionKeyring() argument
427 LOG(DEBUG) << "Installing fscrypt-provisioning key for " << ref << " back into " << mountpoint in reloadKeyFromSessionKeyring()
434 if (!installFsKeyringKey(mountpoint, policy.options, &arg)) return false; in reloadKeyFromSessionKeyring()