From fbbb2f7ed6a2f735c8e8d48e8b5264d2057e93ad Mon Sep 17 00:00:00 2001 From: Ian Gudger Date: Wed, 4 Sep 2019 19:06:44 -0700 Subject: Run proc_net tests. PiperOrigin-RevId: 267280086 --- test/syscalls/linux/proc_net.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/syscalls/linux/proc_net.cc') diff --git a/test/syscalls/linux/proc_net.cc b/test/syscalls/linux/proc_net.cc index 03d0665eb..c097af196 100644 --- a/test/syscalls/linux/proc_net.cc +++ b/test/syscalls/linux/proc_net.cc @@ -14,6 +14,7 @@ #include "gtest/gtest.h" #include "gtest/gtest.h" +#include "test/util/capability_util.h" #include "test/util/file_descriptor.h" #include "test/util/fs_util.h" #include "test/util/test_util.h" @@ -35,6 +36,8 @@ TEST(ProcSysNetIpv4Sack, Exists) { } TEST(ProcSysNetIpv4Sack, CanReadAndWrite) { + SKIP_IF(!ASSERT_NO_ERRNO_AND_VALUE(HaveCapability((CAP_DAC_OVERRIDE)))); + auto const fd = ASSERT_NO_ERRNO_AND_VALUE(Open("/proc/sys/net/ipv4/tcp_sack", O_RDWR)); -- cgit v1.2.3