diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-01-11 11:25:43 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-01-12 10:38:32 +0100 |
commit | fdbc278868fa0e9ea470d77857a7905811d2faa0 (patch) | |
tree | 1d60c9297247957de352aca7e9047aa59d9c8ec7 /libpod/oci_attach_linux_nocgo.go | |
parent | 41613bdb96953c9cea8a8fd46da211bd42660944 (diff) | |
download | podman-fdbc278868fa0e9ea470d77857a7905811d2faa0.tar.gz podman-fdbc278868fa0e9ea470d77857a7905811d2faa0.tar.bz2 podman-fdbc278868fa0e9ea470d77857a7905811d2faa0.zip |
oci: use /proc/self/fd/FD to open unix socket
instead of opening directly the UNIX socket path, grab a reference to
it through a O_PATH file descriptor and use the fixed size string
"/proc/self/fd/%d" to open the UNIX socket. In this way it won't hit
the 108 chars length limit.
Closes: https://github.com/containers/podman/issues/8798
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/oci_attach_linux_nocgo.go')
-rw-r--r-- | libpod/oci_attach_linux_nocgo.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libpod/oci_attach_linux_nocgo.go b/libpod/oci_attach_linux_nocgo.go deleted file mode 100644 index a514a555d..000000000 --- a/libpod/oci_attach_linux_nocgo.go +++ /dev/null @@ -1,7 +0,0 @@ -//+build linux,!cgo - -package libpod - -func unixPathLength() int { - return 107 -} |