mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Mark Mounts::RecursivelyListMounts()
const
PiperOrigin-RevId: 553472906 Change-Id: Ia222751fd4b978dece6ef12c6677db8f3092ac1b
This commit is contained in:
parent
4d625e521b
commit
7722c07d0c
|
@ -23,7 +23,9 @@
|
||||||
|
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include "google/protobuf/util/message_differencer.h"
|
#include "google/protobuf/util/message_differencer.h"
|
||||||
#include "absl/container/flat_hash_set.h"
|
#include "absl/container/flat_hash_set.h"
|
||||||
|
@ -777,8 +779,9 @@ void RecursivelyListMountsImpl(const MountTree& tree,
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
void Mounts::RecursivelyListMounts(std::vector<std::string>* outside_entries,
|
void Mounts::RecursivelyListMounts(
|
||||||
std::vector<std::string>* inside_entries) {
|
std::vector<std::string>* outside_entries,
|
||||||
|
std::vector<std::string>* inside_entries) const {
|
||||||
RecursivelyListMountsImpl(GetMountTree(), "", outside_entries,
|
RecursivelyListMountsImpl(GetMountTree(), "", outside_entries,
|
||||||
inside_entries);
|
inside_entries);
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ class Mounts {
|
||||||
// inside_entries[i]. The elements of inside_entries are prefixed with either
|
// inside_entries[i]. The elements of inside_entries are prefixed with either
|
||||||
// 'R' (read-only) or 'W' (writable).
|
// 'R' (read-only) or 'W' (writable).
|
||||||
void RecursivelyListMounts(std::vector<std::string>* outside_entries,
|
void RecursivelyListMounts(std::vector<std::string>* outside_entries,
|
||||||
std::vector<std::string>* inside_entries);
|
std::vector<std::string>* inside_entries) const;
|
||||||
|
|
||||||
absl::StatusOr<std::string> ResolvePath(absl::string_view path) const;
|
absl::StatusOr<std::string> ResolvePath(absl::string_view path) const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user