summaryrefslogtreecommitdiff
path: root/vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go')
-rw-r--r--vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go b/vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go
new file mode 100644
index 000000000..7c049fd7a
--- /dev/null
+++ b/vendor/github.com/opencontainers/runc/libcontainer/eaccess_stub.go
@@ -0,0 +1,10 @@
+//go:build go1.20
+
+package libcontainer
+
+func eaccess(path string) error {
+ // Not needed in Go 1.20+ as the functionality is already in there
+ // (added by https://go.dev/cl/416115, https://go.dev/cl/414824,
+ // and fixed in Go 1.20.2 by https://go.dev/cl/469956).
+ return nil
+}