~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to lfs/binutils

  • Committer: Peter Müller
  • Date: 2022-04-23 14:27:56 UTC
  • mto: This revision was merged to the branch mainline in revision 9750.
  • Revision ID: git-v1:7a981d94cb2c3e48ecaf07c506c8353a2c839d79
SSH: do not send spoofable TCP keep alive messages

By default, both SSH server and client rely on TCP-based keep alive
messages to detect broken sessions, which can be spoofed rather easily
in order to keep a broken session opened (and vice versa).

Since we rely on SSH-based keep alive messages, which are not vulnerable
to this kind of tampering, there is no need to double-check connections
via TCP keep alive as well.

This patch thereof disables using TCP keep alive for both SSH client and
server scenario. For usability reasons, a timeout of 5 minutes (10
seconds * 30 keep alive messages = 300 seconds) will be used for both
client and server configuration, as 60 seconds were found to be too
short for unstable connectivity scenarios.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
include Config
26
26
 
27
 
VER        = 2.41
 
27
VER        = 2.37
28
28
 
29
29
THISAPP    = binutils-$(VER)
30
30
DL_FILE    = $(THISAPP).tar.xz
75
75
        --prefix=$(TOOLS_DIR) \
76
76
        --with-lib-path=$(TOOLS_DIR)/lib \
77
77
        --with-sysroot \
78
 
        --disable-nls \
79
 
        --disable-gprofng
 
78
        --disable-nls
80
79
  EXTRA_MAKE =
81
80
  EXTRA_INSTALL =
82
81
endif
83
82
endif
84
83
 
 
84
ifeq "$(BUILD_ARCH)" "armv6l"
 
85
        EXTRA_CONFIG += \
 
86
                --with-abi=aapcs-linux \
 
87
                --with-float=softfp
 
88
endif
 
89
 
85
90
EXTRA_CONFIG += \
86
91
        --disable-werror \
87
92
        --enable-64-bit-bfd
94
99
 
95
100
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
96
101
 
97
 
$(DL_FILE)_BLAKE2 = 3bccec2b52f7e82a727121bf2a2e51a6249ba63dcd74c665fd834e858645c912ffd8245d848435288b938852830b482905606f55c40df4061215fd75c52ffc75
 
102
$(DL_FILE)_BLAKE2 = f5a374fdf0300f7734d1e462333296b16c9d5ed6eba167e1742a4da7082f4388c929e286bf76c3933b3e434937380340732a31790723654b491ea0c8ab5b9ba5
98
103
 
99
104
install : $(TARGET)
100
105