Remove no longer needed friend declaration

Drive-by dependencies cleanup

PiperOrigin-RevId: 518551045
Change-Id: I132dfc42945f500e8efec58a4d58d3bee4d1f191
This commit is contained in:
Wiktor Garbacz 2023-03-22 06:26:39 -07:00 committed by Copybara-Service
parent 8a38e4de47
commit b50bc23138
4 changed files with 8 additions and 23 deletions

View File

@ -682,10 +682,7 @@ cc_library(
"//sandboxed_api/util:file_base",
"//sandboxed_api/util:fileops",
"//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:str_format",
],
)

View File

@ -615,19 +615,14 @@ add_library(sandbox2_namespace ${SAPI_LIB_TYPE}
namespace.h
)
add_library(sandbox2::namespace ALIAS sandbox2_namespace)
target_link_libraries(sandbox2_namespace PRIVATE
absl::core_headers
absl::str_format
absl::strings
protobuf::libprotobuf
sapi::file_base
sapi::fileops
sandbox2::mounts
sandbox2::mount_tree_proto
sapi::strerror
sandbox2::violation_proto
sapi::base
sapi::raw_logging
target_link_libraries(sandbox2_namespace
PRIVATE absl::strings
sapi::file_base
sapi::fileops
sapi::base
sapi::raw_logging
PUBLIC sandbox2::violation_proto
sandbox2::mounts
)
# sandboxed_api/sandbox2:forkingclient

View File

@ -33,12 +33,9 @@
#include <utility>
#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/path.h"
#include "sandboxed_api/util/raw_logging.h"
#include "sandboxed_api/util/strerror.h"
namespace sandbox2 {

View File

@ -21,10 +21,8 @@
#include <sys/types.h>
#include <cstdint>
#include <memory>
#include <string>
#include "absl/base/macros.h"
#include "sandboxed_api/sandbox2/mounts.h"
#include "sandboxed_api/sandbox2/violation.pb.h"
@ -61,8 +59,6 @@ class Namespace final {
bool allow_mount_propagation() const { return allow_mount_propagation_; }
private:
friend class StackTracePeer;
int32_t clone_flags_;
Mounts mounts_;
std::string hostname_;