summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/BUILD
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-04-01 15:30:21 -0700
committerShentubot <shentubot@google.com>2019-04-01 15:31:37 -0700
commit1a02ba3e6e1ee01e878efcff6a20ab7ff3083303 (patch)
treed3a7e42512d099a98e7e1f017252ba0765e87968 /test/syscalls/linux/BUILD
parent33c644bc0b8f60544264dcd5cc5f8c70436cd874 (diff)
Trim trailing newline when reading /proc/[pid]/{uid,gid}_map in test.
This reveals a bug in the tests that require CAP_SET{UID,GID}: After the child process enters the new user namespace, it ceases to have the relevant capability in the parent user namespace, so the privileged write must be done by the parent process. Change tests accordingly. PiperOrigin-RevId: 241412765 Change-Id: I587c1f24aa6f2180fb2e5e5c0162691ba5bac1bc
Diffstat (limited to 'test/syscalls/linux/BUILD')
-rw-r--r--test/syscalls/linux/BUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD
index 7dd63dd0a..1e386193b 100644
--- a/test/syscalls/linux/BUILD
+++ b/test/syscalls/linux/BUILD
@@ -1455,6 +1455,8 @@ cc_binary(
linkstatic = 1,
deps = [
"//test/util:capability_util",
+ "//test/util:cleanup",
+ "//test/util:file_descriptor",
"//test/util:fs_util",
"//test/util:logging",
"//test/util:multiprocess_util",