Lines Matching refs:mountpoint

242 static bool installFsKeyringKey(const std::string& mountpoint, const EncryptionOptions& options,  in installFsKeyringKey()  argument
246 android::base::unique_fd fd(open(mountpoint.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in installFsKeyringKey()
248 PLOG(ERROR) << "Failed to open " << mountpoint << " to install key"; in installFsKeyringKey()
253 PLOG(ERROR) << "Failed to install fscrypt key to " << mountpoint; in installFsKeyringKey()
260 bool installKey(const std::string& mountpoint, const EncryptionOptions& options, in installKey() argument
298 if (!installFsKeyringKey(mountpoint, options, arg)) return false; in installKey()
306 LOG(DEBUG) << "Installed fscrypt key with ref " << ref << " to " << mountpoint; in installKey()
355 bool evictKey(const std::string& mountpoint, const EncryptionPolicy& policy) { in evictKey() argument
360 android::base::unique_fd fd(open(mountpoint.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in evictKey()
362 PLOG(ERROR) << "Failed to open " << mountpoint << " to evict key"; in evictKey()
376 PLOG(ERROR) << "Failed to evict fscrypt key with ref " << ref << " from " << mountpoint; in evictKey()
380 LOG(DEBUG) << "Evicted fscrypt key with ref " << ref << " from " << mountpoint; in evictKey()
411 bool reloadKeyFromSessionKeyring(const std::string& mountpoint, const EncryptionPolicy& policy) { in reloadKeyFromSessionKeyring() argument
425 LOG(DEBUG) << "Installing fscrypt-provisioning key for " << ref << " back into " << mountpoint in reloadKeyFromSessionKeyring()
432 if (!installFsKeyringKey(mountpoint, policy.options, &arg)) return false; in reloadKeyFromSessionKeyring()