aboutgitcodebugslistschat
path: root/passt.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2024-05-22 19:35:25 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-05-23 16:42:27 +0200
commitfcfb592adc0ce754518e8d744df769e5ecf2d15c (patch)
tree5709301bc30e6754b62ced07821812f2f81d23b9 /passt.c
parentd02bb6ca0550b7e878da02d7bac67f7f8106ee91 (diff)
downloadpasst-fcfb592adc0ce754518e8d744df769e5ecf2d15c.tar
passt-fcfb592adc0ce754518e8d744df769e5ecf2d15c.tar.gz
passt-fcfb592adc0ce754518e8d744df769e5ecf2d15c.tar.bz2
passt-fcfb592adc0ce754518e8d744df769e5ecf2d15c.tar.lz
passt-fcfb592adc0ce754518e8d744df769e5ecf2d15c.tar.xz
passt-fcfb592adc0ce754518e8d744df769e5ecf2d15c.tar.zst
passt-fcfb592adc0ce754518e8d744df769e5ecf2d15c.zip
passt, tap: Don't use -1 as uninitialised value for fd_tap_listen
This is a remnant from the time we kept access to the original filesystem and we could reinitialise the listening AF_UNIX socket. Since commit 0515adceaa8f ("passt, pasta: Namespace-based sandboxing, defer seccomp policy application"), however, we can't re-bind the listening socket once we're up and running. Drop the -1 initalisation and the corresponding check. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'passt.c')
-rw-r--r--passt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/passt.c b/passt.c
index 771b8a7..1df1dc4 100644
--- a/passt.c
+++ b/passt.c
@@ -211,7 +211,7 @@ int main(int argc, char **argv)
isolate_initial();
- c.pasta_netns_fd = c.fd_tap = c.fd_tap_listen = -1;
+ c.pasta_netns_fd = c.fd_tap = -1;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;