From 42e212f6b7d4f6dd70e9751562f1524231e39a0e Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Wed, 26 Jun 2019 14:23:35 -0700 Subject: Preserve permissions when checking lower The code was wrongly assuming that only read access was required from the lower overlay when checking for permissions. This allowed non-writable files to be writable in the overlay. Fixes #316 PiperOrigin-RevId: 255263686 --- test/syscalls/BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/syscalls/BUILD') diff --git a/test/syscalls/BUILD b/test/syscalls/BUILD index 731e2aa85..b06e46c03 100644 --- a/test/syscalls/BUILD +++ b/test/syscalls/BUILD @@ -240,7 +240,7 @@ syscall_test( syscall_test(test = "//test/syscalls/linux:munmap_test") syscall_test( - add_overlay = False, # TODO(gvisor.dev/issue/316): enable when fixed. + add_overlay = True, test = "//test/syscalls/linux:open_create_test", ) -- cgit v1.2.3