blob: 727d92a82e1e7295163bef4030be2a130242e716 [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 <vector>
#include <base/files/file_path.h>
namespace run_oci {
// Returns all mountpoints under |root|.
std::vector<base::FilePath> GetMountpointsUnder(
const base::FilePath& root, const base::FilePath& procSelfMountsPath);
// Returns true if the process has the CAP_SYS_ADMIN capability.
bool HasCapSysAdmin();
// Redirects all logging and stdout/stdio to |log_file|.
bool RedirectLoggingAndStdio(const base::FilePath& log_file);
} // namespace run_oci