mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Remove no longer needed friend declaration
Drive-by dependencies cleanup PiperOrigin-RevId: 518551045 Change-Id: I132dfc42945f500e8efec58a4d58d3bee4d1f191
This commit is contained in:
parent
8a38e4de47
commit
b50bc23138
|
@ -682,10 +682,7 @@ cc_library(
|
||||||
"//sandboxed_api/util:file_base",
|
"//sandboxed_api/util:file_base",
|
||||||
"//sandboxed_api/util:fileops",
|
"//sandboxed_api/util:fileops",
|
||||||
"//sandboxed_api/util:raw_logging",
|
"//sandboxed_api/util:raw_logging",
|
||||||
"//sandboxed_api/util:strerror",
|
|
||||||
"@com_google_absl//absl/base:core_headers",
|
|
||||||
"@com_google_absl//absl/strings",
|
"@com_google_absl//absl/strings",
|
||||||
"@com_google_absl//absl/strings:str_format",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -615,19 +615,14 @@ add_library(sandbox2_namespace ${SAPI_LIB_TYPE}
|
||||||
namespace.h
|
namespace.h
|
||||||
)
|
)
|
||||||
add_library(sandbox2::namespace ALIAS sandbox2_namespace)
|
add_library(sandbox2::namespace ALIAS sandbox2_namespace)
|
||||||
target_link_libraries(sandbox2_namespace PRIVATE
|
target_link_libraries(sandbox2_namespace
|
||||||
absl::core_headers
|
PRIVATE absl::strings
|
||||||
absl::str_format
|
sapi::file_base
|
||||||
absl::strings
|
sapi::fileops
|
||||||
protobuf::libprotobuf
|
sapi::base
|
||||||
sapi::file_base
|
sapi::raw_logging
|
||||||
sapi::fileops
|
PUBLIC sandbox2::violation_proto
|
||||||
sandbox2::mounts
|
sandbox2::mounts
|
||||||
sandbox2::mount_tree_proto
|
|
||||||
sapi::strerror
|
|
||||||
sandbox2::violation_proto
|
|
||||||
sapi::base
|
|
||||||
sapi::raw_logging
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# sandboxed_api/sandbox2:forkingclient
|
# sandboxed_api/sandbox2:forkingclient
|
||||||
|
|
|
@ -33,12 +33,9 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "absl/strings/str_cat.h"
|
#include "absl/strings/str_cat.h"
|
||||||
#include "absl/strings/str_format.h"
|
|
||||||
#include "absl/strings/string_view.h"
|
|
||||||
#include "sandboxed_api/util/fileops.h"
|
#include "sandboxed_api/util/fileops.h"
|
||||||
#include "sandboxed_api/util/path.h"
|
#include "sandboxed_api/util/path.h"
|
||||||
#include "sandboxed_api/util/raw_logging.h"
|
#include "sandboxed_api/util/raw_logging.h"
|
||||||
#include "sandboxed_api/util/strerror.h"
|
|
||||||
|
|
||||||
namespace sandbox2 {
|
namespace sandbox2 {
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,8 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "absl/base/macros.h"
|
|
||||||
#include "sandboxed_api/sandbox2/mounts.h"
|
#include "sandboxed_api/sandbox2/mounts.h"
|
||||||
#include "sandboxed_api/sandbox2/violation.pb.h"
|
#include "sandboxed_api/sandbox2/violation.pb.h"
|
||||||
|
|
||||||
|
@ -61,8 +59,6 @@ class Namespace final {
|
||||||
bool allow_mount_propagation() const { return allow_mount_propagation_; }
|
bool allow_mount_propagation() const { return allow_mount_propagation_; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class StackTracePeer;
|
|
||||||
|
|
||||||
int32_t clone_flags_;
|
int32_t clone_flags_;
|
||||||
Mounts mounts_;
|
Mounts mounts_;
|
||||||
std::string hostname_;
|
std::string hostname_;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user