Final round of IWYU fixes for Sandbox2

PiperOrigin-RevId: 560077736
Change-Id: Id810db20b0042b8cd4f8f7a352b2cc571de51b71
pull/171/head
Wiktor Garbacz 2023-08-25 06:49:42 -07:00 committed by Copybara-Service
parent c04ef4572c
commit 37f00991b9
16 changed files with 9 additions and 18 deletions

View File

@ -94,7 +94,9 @@ cc_test(
deps = [
":regs",
":sanitizer",
":syscall",
":util",
"//sandboxed_api:config",
"//sandboxed_api/sandbox2/util:bpf_helper",
"//sandboxed_api/util:status_matchers",
"@com_google_absl//absl/log:check",
@ -607,7 +609,6 @@ cc_library(
"//sandboxed_api/util:fileops",
"//sandboxed_api/util:raw_logging",
"//sandboxed_api/util:status",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",

View File

@ -558,8 +558,7 @@ target_link_libraries(sandbox2_sanitizer
sapi::strerror
sapi::raw_logging
sapi::base
PUBLIC absl::core_headers
absl::flat_hash_set
PUBLIC absl::flat_hash_set
absl::status
absl::statusor
)
@ -796,6 +795,7 @@ if(BUILD_TESTING AND SAPI_BUILD_TESTING)
sandbox2::bpf_helper
sandbox2::regs
sandbox2::sanitizer
sandbox2::syscall
sandbox2::util
sapi::test_main
)

View File

@ -16,7 +16,6 @@
#define SANDBOXED_API_SANDBOX2_BPFDISASSEMBLER_H_
#include <string>
#include <vector>
#include "absl/types/span.h"

View File

@ -48,6 +48,7 @@
#include "sandboxed_api/sandbox2/util.h"
#include "sandboxed_api/util/raw_logging.h"
#include "sandboxed_api/util/status.h"
#include "sandboxed_api/util/status.pb.h"
namespace sandbox2 {

View File

@ -40,9 +40,8 @@
#include "absl/log/die_if_null.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "absl/synchronization/mutex.h"
#include "sandboxed_api/util/status.pb.h"
#include "google/protobuf/message_lite.h"
namespace proto2 {
class Message;

View File

@ -18,7 +18,6 @@
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <sys/types.h>
#include <unistd.h>
#include <cerrno>

View File

@ -23,7 +23,6 @@
#include <sys/mount.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <syscall.h>
#include <unistd.h>

View File

@ -15,7 +15,6 @@
#ifndef SANDBOXED_API_SANDBOX2_NETWORK_PROXY_CLIENT_H_
#define SANDBOXED_API_SANDBOX2_NETWORK_PROXY_CLIENT_H_
#include <netinet/in.h>
#include <sys/socket.h>
#include <cstdint>

View File

@ -18,7 +18,6 @@
#include <netinet/in.h>
#include <cstdint>
#include <memory>
#include <string>
#include <vector>

View File

@ -18,7 +18,7 @@
#ifndef SANDBOXED_API_SANDBOX2_POLICY_H_
#define SANDBOXED_API_SANDBOX2_POLICY_H_
#include <asm/types.h>
#include <linux/bpf_common.h>
#include <linux/filter.h> // IWYU pragma: export
#include <linux/seccomp.h> // IWYU pragma: export

View File

@ -21,7 +21,6 @@
#include <sys/types.h>
#include <cstdint>
#include <string>
#include "absl/status/status.h"
#include "sandboxed_api/config.h"

View File

@ -5,7 +5,6 @@
#include <sys/prctl.h>
#include <sys/ptrace.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <syscall.h>
#include <unistd.h>
@ -18,7 +17,9 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "absl/log/check.h"
#include "sandboxed_api/config.h"
#include "sandboxed_api/sandbox2/sanitizer.h"
#include "sandboxed_api/sandbox2/syscall.h"
#include "sandboxed_api/sandbox2/util.h"
#include "sandboxed_api/sandbox2/util/bpf_helper.h"
#include "sandboxed_api/util/status_matchers.h"

View File

@ -19,7 +19,6 @@
#define SANDBOXED_API_SANDBOX2_RESULT_H_
#include <sys/resource.h>
#include <sys/types.h>
#include <cstdint>
#include <memory>

View File

@ -18,7 +18,6 @@
#ifndef SANDBOXED_API_SANDBOX2_SANITIZER_H_
#define SANDBOXED_API_SANDBOX2_SANITIZER_H_
#include "absl/base/macros.h"
#include "absl/container/flat_hash_set.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"

View File

@ -25,7 +25,6 @@
#include <vector>
#include "absl/base/attributes.h"
#include "absl/base/macros.h"
#include "absl/status/statusor.h"
namespace sandbox2::util {

View File

@ -16,8 +16,6 @@
#define SANDBOXED_API_SANDBOX2_UTIL_MINIELF_H_
#include <cstdint>
#include <cstdio>
#include <memory>
#include <string>
#include <vector>