summaryrefslogtreecommitdiff
path: root/pkg/rootless/rootless.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-02-25 17:46:48 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-02-25 17:52:06 +0100
commitd400f0b5b2d68c4148a7c173e7fbbfd9b377a660 (patch)
tree0d5ef4c9abaad91e02db1aad85108896abbeaf87 /pkg/rootless/rootless.go
parent3d37dc639d87e4469a6457cf4592ff5b773d0777 (diff)
downloadpodman-d400f0b5b2d68c4148a7c173e7fbbfd9b377a660.tar.gz
podman-d400f0b5b2d68c4148a7c173e7fbbfd9b377a660.tar.bz2
podman-d400f0b5b2d68c4148a7c173e7fbbfd9b377a660.zip
rootless: fix segfault when open fd >= FD_SETSIZE
if there are more than FD_SETSIZE open fds passed down to the Podman process, the initialization code could crash as it attempts to store them into a fd_set. Use an array of fd_set structs, each of them holding only FD_SETSIZE file descriptors. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/rootless/rootless.go')
0 files changed, 0 insertions, 0 deletions