diff --git a/sandboxed_api/sandbox2/BUILD.bazel b/sandboxed_api/sandbox2/BUILD.bazel index ee11e1f..3a08b88 100644 --- a/sandboxed_api/sandbox2/BUILD.bazel +++ b/sandboxed_api/sandbox2/BUILD.bazel @@ -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", ], ) diff --git a/sandboxed_api/sandbox2/CMakeLists.txt b/sandboxed_api/sandbox2/CMakeLists.txt index 4f0e76f..87acb05 100644 --- a/sandboxed_api/sandbox2/CMakeLists.txt +++ b/sandboxed_api/sandbox2/CMakeLists.txt @@ -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 diff --git a/sandboxed_api/sandbox2/namespace.cc b/sandboxed_api/sandbox2/namespace.cc index 795ef78..0e44811 100644 --- a/sandboxed_api/sandbox2/namespace.cc +++ b/sandboxed_api/sandbox2/namespace.cc @@ -33,12 +33,9 @@ #include #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 { diff --git a/sandboxed_api/sandbox2/namespace.h b/sandboxed_api/sandbox2/namespace.h index 9d644ed..4a07068 100644 --- a/sandboxed_api/sandbox2/namespace.h +++ b/sandboxed_api/sandbox2/namespace.h @@ -21,10 +21,8 @@ #include #include -#include #include -#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_;