1
0
mirror of https://passt.top/passt synced 2024-12-22 05:35:23 +00:00

passt: Drop PASST_LEGACY_NO_OPTIONS sections

...nobody uses those builds anymore.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-02-22 18:42:51 +01:00
parent 337f55166f
commit 5e0c75d609
4 changed files with 0 additions and 25 deletions

12
conf.c
View File

@ -1281,18 +1281,6 @@ void conf(struct ctx *c, int argc, char **argv)
if (!*c->pasta_ifn)
if_indextoname(c->ifi, c->pasta_ifn);
#ifdef PASST_LEGACY_NO_OPTIONS
if (c->mode == MODE_PASST) {
c->foreground = 1;
c->stderr = 1;
if (!tcp_tap) {
memset(c->tcp.port_to_tap, 0xff,
PORT_EPHEMERAL_MIN / 8);
}
}
#endif
c->tcp.ns_detect_ports = c->udp.ns_detect_ports = 0;
c->tcp.init_detect_ports = c->udp.init_detect_ports = 0;

View File

@ -66,7 +66,3 @@ scp *.deb *.rpm "${USER_HOST}:${BIN}/avx2/"
ssh "${USER_HOST}" "mv ${LATEST} ${AWAY}"
ssh "${USER_HOST}" "mv ${TEMP} ${LATEST}"
ssh "${USER_HOST}" "rm -rf ${AWAY}"
# Legacy, for KubeVirt tests
# CFLAGS="-DPASST_LEGACY_NO_OPTIONS -static" make avx2
# scp passt qrap "${USER_HOST}:${BUILDS}/static/"

View File

@ -309,9 +309,7 @@ int main(int argc, char **argv)
struct sigaction sa;
char *log_name;
#ifndef PASST_LEGACY_NO_OPTIONS
check_root();
#endif
drop_caps();
c.pasta_userns_fd = c.pasta_netns_fd = c.fd_tap = c.fd_tap_listen = -1;

7
tap.c
View File

@ -818,13 +818,6 @@ static void tap_sock_unix_init(struct ctx *c)
}
info("UNIX domain socket bound at %s\n", addr.sun_path);
#ifdef PASST_LEGACY_NO_OPTIONS
/*
* syscalls:passt chmod
*/
chmod(addr.sun_path,
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
#endif
listen(fd, 0);