mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Final round of IWYU fixes for Sandbox2
PiperOrigin-RevId: 560077736 Change-Id: Id810db20b0042b8cd4f8f7a352b2cc571de51b71
This commit is contained in:
parent
c04ef4572c
commit
37f00991b9
|
@ -94,7 +94,9 @@ cc_test(
|
||||||
deps = [
|
deps = [
|
||||||
":regs",
|
":regs",
|
||||||
":sanitizer",
|
":sanitizer",
|
||||||
|
":syscall",
|
||||||
":util",
|
":util",
|
||||||
|
"//sandboxed_api:config",
|
||||||
"//sandboxed_api/sandbox2/util:bpf_helper",
|
"//sandboxed_api/sandbox2/util:bpf_helper",
|
||||||
"//sandboxed_api/util:status_matchers",
|
"//sandboxed_api/util:status_matchers",
|
||||||
"@com_google_absl//absl/log:check",
|
"@com_google_absl//absl/log:check",
|
||||||
|
@ -607,7 +609,6 @@ cc_library(
|
||||||
"//sandboxed_api/util:fileops",
|
"//sandboxed_api/util:fileops",
|
||||||
"//sandboxed_api/util:raw_logging",
|
"//sandboxed_api/util:raw_logging",
|
||||||
"//sandboxed_api/util:status",
|
"//sandboxed_api/util:status",
|
||||||
"@com_google_absl//absl/base:core_headers",
|
|
||||||
"@com_google_absl//absl/container:flat_hash_set",
|
"@com_google_absl//absl/container:flat_hash_set",
|
||||||
"@com_google_absl//absl/status",
|
"@com_google_absl//absl/status",
|
||||||
"@com_google_absl//absl/status:statusor",
|
"@com_google_absl//absl/status:statusor",
|
||||||
|
|
|
@ -558,8 +558,7 @@ target_link_libraries(sandbox2_sanitizer
|
||||||
sapi::strerror
|
sapi::strerror
|
||||||
sapi::raw_logging
|
sapi::raw_logging
|
||||||
sapi::base
|
sapi::base
|
||||||
PUBLIC absl::core_headers
|
PUBLIC absl::flat_hash_set
|
||||||
absl::flat_hash_set
|
|
||||||
absl::status
|
absl::status
|
||||||
absl::statusor
|
absl::statusor
|
||||||
)
|
)
|
||||||
|
@ -796,6 +795,7 @@ if(BUILD_TESTING AND SAPI_BUILD_TESTING)
|
||||||
sandbox2::bpf_helper
|
sandbox2::bpf_helper
|
||||||
sandbox2::regs
|
sandbox2::regs
|
||||||
sandbox2::sanitizer
|
sandbox2::sanitizer
|
||||||
|
sandbox2::syscall
|
||||||
sandbox2::util
|
sandbox2::util
|
||||||
sapi::test_main
|
sapi::test_main
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#define SANDBOXED_API_SANDBOX2_BPFDISASSEMBLER_H_
|
#define SANDBOXED_API_SANDBOX2_BPFDISASSEMBLER_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include "absl/types/span.h"
|
#include "absl/types/span.h"
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
#include "sandboxed_api/sandbox2/util.h"
|
#include "sandboxed_api/sandbox2/util.h"
|
||||||
#include "sandboxed_api/util/raw_logging.h"
|
#include "sandboxed_api/util/raw_logging.h"
|
||||||
#include "sandboxed_api/util/status.h"
|
#include "sandboxed_api/util/status.h"
|
||||||
|
#include "sandboxed_api/util/status.pb.h"
|
||||||
|
|
||||||
namespace sandbox2 {
|
namespace sandbox2 {
|
||||||
|
|
||||||
|
|
|
@ -40,9 +40,8 @@
|
||||||
#include "absl/log/die_if_null.h"
|
#include "absl/log/die_if_null.h"
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
#include "absl/status/statusor.h"
|
#include "absl/status/statusor.h"
|
||||||
#include "absl/strings/string_view.h"
|
|
||||||
#include "absl/synchronization/mutex.h"
|
#include "absl/synchronization/mutex.h"
|
||||||
#include "sandboxed_api/util/status.pb.h"
|
#include "google/protobuf/message_lite.h"
|
||||||
|
|
||||||
namespace proto2 {
|
namespace proto2 {
|
||||||
class Message;
|
class Message;
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <syscall.h>
|
#include <syscall.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#ifndef SANDBOXED_API_SANDBOX2_NETWORK_PROXY_CLIENT_H_
|
#ifndef SANDBOXED_API_SANDBOX2_NETWORK_PROXY_CLIENT_H_
|
||||||
#define SANDBOXED_API_SANDBOX2_NETWORK_PROXY_CLIENT_H_
|
#define SANDBOXED_API_SANDBOX2_NETWORK_PROXY_CLIENT_H_
|
||||||
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#ifndef SANDBOXED_API_SANDBOX2_POLICY_H_
|
#ifndef SANDBOXED_API_SANDBOX2_POLICY_H_
|
||||||
#define 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/filter.h> // IWYU pragma: export
|
||||||
#include <linux/seccomp.h> // IWYU pragma: export
|
#include <linux/seccomp.h> // IWYU pragma: export
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
#include "sandboxed_api/config.h"
|
#include "sandboxed_api/config.h"
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
#include <sys/prctl.h>
|
#include <sys/prctl.h>
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <syscall.h>
|
#include <syscall.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -18,7 +17,9 @@
|
||||||
#include "gmock/gmock.h"
|
#include "gmock/gmock.h"
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
#include "absl/log/check.h"
|
#include "absl/log/check.h"
|
||||||
|
#include "sandboxed_api/config.h"
|
||||||
#include "sandboxed_api/sandbox2/sanitizer.h"
|
#include "sandboxed_api/sandbox2/sanitizer.h"
|
||||||
|
#include "sandboxed_api/sandbox2/syscall.h"
|
||||||
#include "sandboxed_api/sandbox2/util.h"
|
#include "sandboxed_api/sandbox2/util.h"
|
||||||
#include "sandboxed_api/sandbox2/util/bpf_helper.h"
|
#include "sandboxed_api/sandbox2/util/bpf_helper.h"
|
||||||
#include "sandboxed_api/util/status_matchers.h"
|
#include "sandboxed_api/util/status_matchers.h"
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#define SANDBOXED_API_SANDBOX2_RESULT_H_
|
#define SANDBOXED_API_SANDBOX2_RESULT_H_
|
||||||
|
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#ifndef SANDBOXED_API_SANDBOX2_SANITIZER_H_
|
#ifndef SANDBOXED_API_SANDBOX2_SANITIZER_H_
|
||||||
#define 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/container/flat_hash_set.h"
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
#include "absl/status/statusor.h"
|
#include "absl/status/statusor.h"
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "absl/base/attributes.h"
|
#include "absl/base/attributes.h"
|
||||||
#include "absl/base/macros.h"
|
|
||||||
#include "absl/status/statusor.h"
|
#include "absl/status/statusor.h"
|
||||||
|
|
||||||
namespace sandbox2::util {
|
namespace sandbox2::util {
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
#define SANDBOXED_API_SANDBOX2_UTIL_MINIELF_H_
|
#define SANDBOXED_API_SANDBOX2_UTIL_MINIELF_H_
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstdio>
|
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user