Commit Graph

21969 Commits

Author SHA1 Message Date
Michael Tremer
a0aefbd53f make.sh: Remove option to make /usr/src a ramdisk
I am not sure this is helping in any way these days that we have SSDs
everywhere...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
bcf9d74b59 make.sh: Remove docker stuff
This is basically unused for years. I even forgot we had this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
49714ec428 make.sh: Tidy up LOGFILE
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
510dd732ea make.sh: Refactor determining BASEDIR
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
8eeaf1ab7e make.sh: Group variables and initialization together
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
814360a348 make.sh: Set the CCACHE_DIR with the ccache to use
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
b0c45169f2 make.sh: Refactor the root user check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
86565d7f7a make.sh: Tidy up the environment creation function
NFC

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
f8b5e93d94 make.sh: Refactor the space check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:17 +00:00
Michael Tremer
37081a7a1d make.sh: No longer export LFS as it is not being used
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
4fd413a1a8 make.sh: Replace LFS with BUILD_DIR
This is probably a more specific name for this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
3a5d7b880b make.sh: Always mount a separate /tmp
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
d4e9fc7fc5 make.sh: Make BUILD_DIR a mountpoint
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
e940d23cf8 make.sh: Create a new, minimal /dev in the build environment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
4c92e5d852 make.sh: Don't bind-mount the host's /proc
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
6a644a5d30 make.sh: Create the second mount namespace as slave
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
738704d76c make.sh: Don't create a new IPC namespace
If we do this, we no longer can interrupt the build process on the
console.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
98ce3c7688 make.sh: Create lots more namespaces when we enter the chroot
This allows us to protect the host system a little bit more from the
host system by decoupling all namespaces.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
99ce7cd2ce make.sh: Ensure that we enter the chroot only in our own NS
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
d630cfec5b make.sh: Remove the fragile cleanup code
Since we now mount everything in a new namespace, there is no need to
clean up ourselves. This will be done when the last process leaves the
namespace.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
6dcd193170 make.sh: Launch build and shell commands in a new mount namespace
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Michael Tremer
3517868827 make.sh: Remove superfluous image check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-22 15:21:16 +00:00
Arne Fitzenreiter
6f83ae4c95 core187: exclude squid access.log from update
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-07-18 09:12:15 +02:00
Arne Fitzenreiter
97067db786 Revert "squid: Comment out access.log in rootfile"
the file was created to be shipped with permissions
so it is needed in the rootfile.

This reverts commit 516d541c29.
2024-07-18 09:07:08 +02:00
Michael Tremer
5b58a16967 make.sh: Update contributors
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-10 14:29:36 +00:00
Michael Tremer
0fee0acf86 make.sh: Run "make.sh lang"
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-10 14:29:21 +00:00
Michael Tremer
bf8abf549e samba: Fix rootfiles
The CGI script, the misc-progs helper and the menu entry were removed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-10 14:28:48 +00:00
Adolf Belka
516d541c29 squid: Comment out access.log in rootfile
- Everytime an update has been done on squid the access.log file has been replaced with an
   empty file, losing whatever messages have been in the log.
- This has been the case since squid was implemented in IPFire.
- Update of rootfile to comment out var/log/squid/access.log

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-08 15:32:58 +00:00
Matthias Fischer
a96514a265 apache: Update to 2.4.61
For details see:
https://dlcdn.apache.org/httpd/CHANGES_2.4.61

"Changes with Apache 2.4.61

  *) SECURITY: CVE-2024-39884: Apache HTTP Server: source code
     disclosure with handlers configured via AddType (cve.mitre.org)
     A regression in the core of Apache HTTP Server 2.4.60 ignores
     some use of the legacy content-type based configuration of
     handlers.   "AddType" and similar configuration, under some
     circumstances where files are requested indirectly, result in
     source code disclosure of local content. For example, PHP
     scripts may be served instead of interpreted.
     Users are recommended to upgrade to version 2.4.61, which fixes
     this issue."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-08 15:31:17 +00:00
Adolf Belka
b5befbc045 samba: Update to version 4.20.2
- Update from version 4.20.1 to 4.20.2
- Update of rootfile for both x86_64 and aarch64
- After doing a grep into the config directories I realised that the xxxMACHINExxx phrase
   is only added into rootfiles in the main common or package directories and not in the
   x86_64 and aarch64
- In the past I have submitted the samba rootfile with x86_64 replaced by xxxMACHINExxx.
   It seems to have worked, so the replacement probably occurs even in the architecture
   specific directories but it doesn't need to be used there as the directory is clearly
   only for that one architecture.
- Changelog
    4.20.2
	   * BUG 15662: vfs_widelinks with DFS shares breaks case insensitivity.
	   * BUG 13213: Samba build is not reproducible.
	   * BUG 15569: ldb qsort might r/w out of bounds with an intransitive compare
	     function.
	   * BUG 15625: Many qsort() comparison functions are non-transitive, which can
	     lead to out-of-bounds access in some circumstances.
	   * BUG 15638: Need to change gitlab-ci.yml tags in all branches to avoid CI
	     bill.
	   * BUG 15654: We have added new options --vendor-name and --vendor-patch-
	     revision arguments to ./configure to allow distributions and packagers to
	     put their name in the Samba version string so that when debugging Samba the
	     source of the binary is obvious.
	   * BUG 15665: CTDB RADOS mutex helper misses namespace support.
	   * BUG 13019: Dynamic DNS updates with the internal DNS are not working.
	   * BUG 14981: netr_LogonSamLogonEx returns NR_STATUS_ACCESS_DENIED with
	     SysvolReady=0.
	   * BUG 15412: Anonymous smb3 signing/encryption should be allowed (similar to
	     Windows Server 2022).
	   * BUG 15573: Panic in dreplsrv_op_pull_source_apply_changes_trigger.
	   * BUG 15620: s4:nbt_server: does not provide unexpected handling, so winbindd
	     can't use nmb requests instead cldap.
	   * BUG 15642: winbindd, net ads join and other things don't work on an ipv6
	     only host.
	   * BUG 15659: Segmentation fault when deleting files in vfs_recycle.
	   * BUG 15664: Panic in vfs_offload_token_db_fetch_fsp().
	   * BUG 15666: "client use kerberos" and --use-kerberos is ignored for the
	     machine account.
	   * BUG 15435: Regression DFS not working with widelinks = true.
	   * BUG 15633: samba-gpupdate - Invalid NtVer in netlogon_samlogon_response.
	   * BUG 15653: idmap_ad creates an incorrect local krb5.conf in case of trusted
	     domain lookups.
	   * BUG 15660: The images don't build after the git security release and CentOS
	     8 Stream is EOL.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-08 15:31:13 +00:00
Michael Tremer
1e2401a148 ruby: Add rootfile for all architectures
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-04 16:13:42 +00:00
Michael Tremer
86c80346f1 riscv64: Update util-linux rootfile
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-04 16:11:56 +00:00
Michael Tremer
3085c95994 vectorscan: Build as a fat library
The build system defaults to building the library for the host system
and therefore uses instructions that might not be available on the
target system.

This patch changes that we will build the library so that it will choose
the most optimised functions at runtime.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-04 15:39:10 +00:00
Michael Tremer
5b30e88dba core187: Ship the OpenVPN CRL updater
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-04 14:47:07 +00:00
Peter Müller
f1637cdee7 Core Update 187: Rewrite the SSH configuration on update
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-04 14:45:09 +00:00
Michael Tremer
16c1c5c6f8 core187: Ship and restart the firewall
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:32:37 +00:00
Michael Tremer
695c572993 sysctl: Conntrack: Disable picking up loose TCP connections
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:30:28 +00:00
Michael Tremer
175ba983f4 firewall: Implement generating SYNPROXY rules
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:30:28 +00:00
Michael Tremer
ad03130f24 firewall.cgi: Add a checkbox to enable SYN flood protection
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:30:28 +00:00
Michael Tremer
8711955b38 firewall: Enable SYNPROXY for untracked packets
This enables some DoS protection using SYNPROXY which will complete a
SYN handshake with the client before the connection is being forwarded.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:30:28 +00:00
Michael Tremer
be2774c0c6 firewall: Don't filter output INVALID packets
This should never cause any problems, but will cause that certain more
complicated featured like SYNPROXY won't work.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:30:28 +00:00
Michael Tremer
6342bb596b firewall: Split CONNTRACK chain
This is preparation to handle incoming/outgoing packets differently.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:30:28 +00:00
Michael Tremer
513cb428d7 core187: Ship and restart Apache
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:27:00 +00:00
Matthias Fischer
2c23602bc4 apache: Update to 2.4.60
Fixed:
CVE-2024-39573, CVE-2024-38477, CVE-2024-38476, CVE-2024-38475, CVE-2024-38474,
CVE-2024-38473, CVE-2024-38472, CVE-2024-36387.

For details see:
https://dlcdn.apache.org/httpd/CHANGES_2.4.60

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:26:17 +00:00
Michael Tremer
e5d8276638 OpenSSH: Ship the entire suite of helper programs
The SSH daemon has been split into a listener and session daemon to have
a smaller attack vector since the listener does not need to implement
the SSH protocol.

In order to keep SSH working, we need to ship the session daemon, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:25:09 +00:00
Michael Tremer
dec2fb4710 core187: Ship and restart OpenSSH
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:24:43 +00:00
Adolf Belka
0a574ab660 openssh: Update to version 9.8p1
- Update from version 9.7p1 to 9.8p1
- Update of rootfile
- Changelog
    9.8p1
	-There is a fix for CVE-2024-6387
	-The number of changes is too large to show all here. As well as the CVE fix and
	 another security related fix there are a log of bug fixes as well. The details can
         seen at https://www.openssh.com/txt/release-9.8

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:19:48 +00:00
Michael Tremer
c47863aca3 core187: Restart Suricata during the update
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:19:33 +00:00
Matthias Fischer
4d87fba16c suricata: Update to 7.0.6
Excerpt from changelog:
"7.0.6 -- 2024-06-26

Security #7042: defrag: id reuse can lead to invalid reassembly (7.0.x backport)(CVE 2024-37151)
Security #7105: http2: oom from duplicate headers (7.0.x backport)
Security #7033: http/range: segv when http.memcap is reached (7.0.x backport)
Security #6988: modbus: txs without responses are never freed (7.0.x backport)
Bug #7107: packet: app-layer-events incorrectly used on recycled packets (7.0.x backport)
Bug #7064: util/radix-tree: Possible dereference of nullptr in case of unsuccess allocation of memory for node (7.0.x backport)
Bug #7063: smtp/mime: data command rejected by pipelining server does not reset data mode (7.0.x backport)
Bug #7060: smtp: split name logged as 2 names (7.0.x backport)
Bug #7050: af-packet: failure to start up on many threads plus high load (7.0.x backport)
Bug #7043: Crasher in HTTP chunked / StreamingBuffer (7.0.x backport)
Bug #7038: pcap/log: MacOS rotates file well before limit is reached (7.0.x backport)
Bug #7035: time: in offline mode, time can stay behind at pcap start (7.0.x backport)
Bug #7023: unix-socket: iface-bypassed-stat crash (7.0.x backport)
Bug #7021: unix-socket: hostbit commands don't properly release host (7.0.x backport)
Bug #7015: rust: build with rust 1.78 with slice::from_raw_parts now requiring the pointer to be non-null (7.0.x backport)
Bug #6990: tls.random buffers don't work as expected (7.0.x backport)
Bug #6986: iprep: rule with '=,0' can't match (7.0.x backport)
Bug #6975: detect: log relevant frames app-layer metdata (7.0.x backport)
Bug #6950: decode/ppp: decoder.event.ppp.wrong_type on valid packet (7.0.x backport)
Bug #6897: detect/port: upper boundary ports are not correctly handled (7.0.x backport)
Bug #6895: detect/port: port grouping does not happen correctly if gap between a single and range port (7.0.x backport)
Bug #6862: Lightweight rules profiling: crash when profiling ends (7.0.x backport)
Bug #6848: alerts: wrongly using tx id 0 when there is no tx (7.0.x backport)
Bug #6845: coverity: warning in port grouping code (7.0.x backport)
Bug #6844: detect/port: port ranges are incorrect when a port is single as well as a part of range (7.0.x backport)
Bug #6690: Ethernet src should match src ip (7.0.x backport)
Bug #6520: detect-engine/port: recursive DetectPortInsert calls are expensive (7.0.x backport)
Optimization #6830: detect/port: port grouping is quite slow in worst cases (7.0.x backport)
Optimization #6829: detect/port: PortGroupWhitelist fn takes a lot of processing time (7.0.x backport)
Feature #7010: JA4 support for TLS and QUIC (7.0.x backport)
Feature #6557: Capability to have rules profiling on pcap run (7.0.x backport)
Documentation #6910: userguide: document how to verify tar.gz signature (7.0.x backport)
Documentation #6687: docs: port userguide build instruction changes from master-6.0.x (7.0.x backport)
Documentation #6601: docs: update eBPF installation instructions (7.0.x backport)"

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:18:57 +00:00
Matthias Fischer
7dbff1f446 nano: Update to 8.0
For details see:
https://www.nano-editor.org/news.php

"2024 May 1 - GNU nano 8.0 "Grus grus"

    By default ^F is bound to starting a forward search, and ^B to
    starting a backward search, while M-F and M-B repeat the search
    in the corresponding direction. (See the documentation if you
    want the old bindings back.)
    Command-line option --modernbindings (-/) makes ^Q quit, ^X cut,
    ^C copy, ^V paste, ^Z undo, ^Y redo, ^O open a file, ^W write a file,
    ^R replace, ^G find again, ^D find again backwards, ^A set the mark,
    ^T jump to a line, ^P show the position, and ^E execute.
    Above modern bindings are activated also when the name of
    nano's executable (or a symlink to it) starts with the letter "e".
    To open a file at a certain line number, one can now use also
    nano filename:number, besides nano +number filename.
    <Alt+Home> and <Alt+End> put the cursor on the first and last
    row in the viewport, while retaining the horizontal position.
    When the three digits in an #RGB color code are all the same,
    the code is mapped to the xterm grey scale, giving access to
    fourteen levels of grey instead of just four.
    For easier access, M-" is bound to placing/removing an anchor,
    and M-' to jumping to the next anchor.
    Whenever an error occurs, the keystroke buffer is cleared, thus
    stopping the execution of a macro or a string bind.
    The mousewheel scrolls the viewport instead of moving the cursor."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:18:51 +00:00