diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2021-08-09 10:16:59 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-08-09 10:20:21 -0700 |
commit | 34ec00c5e775479b15ae8ad69456cef02f0a545a (patch) | |
tree | d66037f5bfbce4f21e0785ff345596ba85b65be0 /test/util/BUILD | |
parent | c07dc3828a0330a3804514094d45e6362ae2de30 (diff) |
Run raw IP socket syscall tests on Fuchsia
+ Do not check for CAP_NET_RAW on Fuchsia
Fuchsia does not support capabilities the same way Linux does. Instead
emulate the check for CAP_NET_RAW by checking if a raw IP sockets may
be created.
PiperOrigin-RevId: 389663218
Diffstat (limited to 'test/util/BUILD')
-rw-r--r-- | test/util/BUILD | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/util/BUILD b/test/util/BUILD index 4a4401ba8..3211546f5 100644 --- a/test/util/BUILD +++ b/test/util/BUILD @@ -8,13 +8,21 @@ package( cc_library( name = "capability_util", testonly = 1, - srcs = ["capability_util.cc"], - hdrs = ["capability_util.h"], + srcs = [ + "fuchsia_capability_util.cc", + "linux_capability_util.cc", + ], + hdrs = [ + "capability_util.h", + "fuchsia_capability_util.h", + "linux_capability_util.h", + ], deps = [ ":cleanup", ":memory_util", ":posix_error", ":save_util", + ":socket_util", ":test_util", "@com_google_absl//absl/strings", ], |