summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/BUILD
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-02-19 11:20:48 -0800
committerShentubot <shentubot@google.com>2019-02-19 11:21:46 -0800
commit22d8b6eba1487d3f0d87a578e414e451d9aeb26d (patch)
tree458bec2b96a9f0f4219c261708ba4a019ae232be /test/syscalls/BUILD
parentc611dbc5a7399922588e3fd99b22bda19f684afe (diff)
Break /proc/[pid]/{uid,gid}_map's dependence on seqfile.
In addition to simplifying the implementation, this fixes two bugs: - seqfile.NewSeqFile unconditionally creates an inode with mode 0444, but {uid,gid}_map have mode 0644. - idMapSeqFile.Write implements fs.FileOperations.Write ... but it doesn't implement any other fs.FileOperations methods and is never used as fs.FileOperations. idMapSeqFile.GetFile() => seqfile.SeqFile.GetFile() uses seqfile.seqFileOperations instead, which rejects all writes. PiperOrigin-RevId: 234638212 Change-Id: I4568f741ab07929273a009d7e468c8205a8541bc
Diffstat (limited to 'test/syscalls/BUILD')
-rw-r--r--test/syscalls/BUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/syscalls/BUILD b/test/syscalls/BUILD
index ca69f3309..1be7a9bd4 100644
--- a/test/syscalls/BUILD
+++ b/test/syscalls/BUILD
@@ -214,6 +214,8 @@ syscall_test(
test = "//test/syscalls/linux:proc_test",
)
+syscall_test(test = "//test/syscalls/linux:proc_pid_uid_gid_map_test")
+
syscall_test(
size = "medium",
test = "//test/syscalls/linux:pselect_test",