summaryrefslogtreecommitdiffhomepage
path: root/runsc/fsgofer/BUILD
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-08-19 18:03:15 -0700
committergVisor bot <gvisor-bot@google.com>2020-08-19 18:05:54 -0700
commit6335704625819914768800c16e82623a65fa6755 (patch)
treed68a1d75fd2f281b932212770bde241635a2102c /runsc/fsgofer/BUILD
parent25babd63519151eb6e70d847d8fd0172c1d7090f (diff)
Remove path walk from localFile.Mknod
Replace mknod call with mknodat equivalent to protect against symlink attacks. Also added Mknod tests. Remove goferfs reliance on gofer to check for file existence before creating a synthetic entry. Updates #2923 PiperOrigin-RevId: 327544516
Diffstat (limited to 'runsc/fsgofer/BUILD')
-rw-r--r--runsc/fsgofer/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/runsc/fsgofer/BUILD b/runsc/fsgofer/BUILD
index 05e3637f7..96c57a426 100644
--- a/runsc/fsgofer/BUILD
+++ b/runsc/fsgofer/BUILD
@@ -32,5 +32,6 @@ go_test(
"//pkg/log",
"//pkg/p9",
"//pkg/test/testutil",
+ "@org_golang_x_sys//unix:go_default_library",
],
)