blob: e087f26863589146a80f27279e4c2687804a6923 [file] [log] [blame] [edit]
// Copyright 2021 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SECANOMALYD_MOUNTS_H_
#define SECANOMALYD_MOUNTS_H_
#include <optional>
#include <string>
#include <vector>
#include "secanomalyd/mount_entry.h"
namespace secanomalyd {
using MountEntries = std::vector<MountEntry>;
using MaybeMountEntries = std::optional<MountEntries>;
MaybeMountEntries ReadMounts();
// Used mostly for testing.
MaybeMountEntries ReadMountsFromString(const std::string& mounts);
MaybeMountEntries FilterPrivateMounts(const MaybeMountEntries& all_mounts);
} // namespace secanomalyd
#endif // SECANOMALYD_MOUNTS_H_