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

« back to all changes in this revision

Viewing changes to lfs/cairo

  • 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:
1
1
###############################################################################
2
2
#                                                                             #
3
3
# IPFire.org - A linux based firewall                                         #
4
 
# Copyright (C) 2007-2023  IPFire Team  <info@ipfire.org>                     #
 
4
# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
5
5
#                                                                             #
6
6
# This program is free software: you can redistribute it and/or modify        #
7
7
# it under the terms of the GNU General Public License as published by        #
24
24
 
25
25
include Config
26
26
 
27
 
VER        = 1.17.6
 
27
VER        = 1.16.0
28
28
 
29
29
THISAPP    = cairo-$(VER)
30
 
DL_FILE    = $(THISAPP).tar.bz2
 
30
DL_FILE    = $(THISAPP).tar.xz
31
31
DL_FROM    = $(URL_IPFIRE)
32
32
DIR_APP    = $(DIR_SRC)/$(THISAPP)
33
33
TARGET     = $(DIR_INFO)/$(THISAPP)
40
40
 
41
41
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
42
42
 
43
 
$(DL_FILE)_BLAKE2 = 05ac766d33e9bdfc5df0347e9a80611554d64886715d1620fbe6f05f36f0134e46e1e6107738d260b380fab5ef2ac609922dce9ebcac01234710d8e2a76e9724
 
43
$(DL_FILE)_BLAKE2 = aa37edf7fdf0c952484fd0adc9281724227db93958d6e4919216b30e9017fab670bc2340e3b975737080f1f67dec24025fe0e4680e275ab7703cfb9235eb1fe0
44
44
 
45
45
install : $(TARGET)
46
46
 
70
70
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
71
71
        @$(PREBUILD)
72
72
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
73
 
        cd $(DIR_APP) && meson \
74
 
              --prefix=/usr \
75
 
                                builddir/
76
 
        cd $(DIR_APP) && ninja -C builddir/ $(MAKETUNING)
77
 
        cd $(DIR_APP) && ninja -C builddir/ install
 
73
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/cairo-1.16.0-binutils-2.34.patch
 
74
        cd $(DIR_APP) && ./configure --prefix=/usr \
 
75
                --disable-win32 --disable-os2 --disable-beos
 
76
        cd $(DIR_APP) && make $(MAKETUNING)
 
77
        cd $(DIR_APP) && make install
78
78
        @rm -rf $(DIR_APP)
79
79
        @$(POSTBUILD)