blob: d7bef48a5acc1e4b78500baf8635a1d0ab02e035 [file] [log] [blame]
// Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <cstdint>
#include <string>
#include <base/files/file_path.h>
namespace imageloader {
// Parses a mapper table entry for a device denoted by "name" to determine the
// loop device number.
// Returns true on success.
bool MapperParametersToLoop(const std::string& verity_mount_parameters,
int32_t* loop);
// Returns true if an ancestor-descendant relationship holds for the given
// paths.
bool IsAncestor(const base::FilePath& ancenstor,
const base::FilePath& descendant);
} // namespace imageloader