Commit Graph

15649 Commits

Author SHA1 Message Date
Michael Tremer
5efedb5487 misc-progs: mpfirectrl: Use new run() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 21:06:57 +00:00
Michael Tremer
c651dd9b6b misc-progs: extrahdctrl: Use new run() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 21:06:57 +00:00
Michael Tremer
cf9efe511a misc-progs: addonctrl: Sanitise add-on names before use
Fixes: #12562
Reported-by: Albert Schwarzkopf <ipfire@quitesimple.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 21:06:57 +00:00
Michael Tremer
db984059b2 misc-progs: Add functions to sanitise input arguments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 21:06:57 +00:00
Michael Tremer
6733d973d6 misc-progs: pakfire: Use new run() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 21:06:57 +00:00
Michael Tremer
c33f477f5b misc-progs: backupctrl: Use new run() function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 21:06:57 +00:00
Michael Tremer
ca060524a7 misc-progs: Introduce run()
This function invokes a new command similar to safe_system()
but without launching a shell before.

That way, it is possible to execute commands without any risk
of shell command injection from nobody.

Fixes: #12562
Reported-by: Albert Schwarzkopf <ipfire@quitesimple.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 21:06:57 +00:00
Michael Tremer
5d482a74fa core154: Manually set capabilites for etherwake
The changes are not available in the running instance of
pakfire and tar.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 21:06:57 +00:00
Michael Tremer
d9f9f16366 Drop launch-ether-wake
The helper binary is being dropped and etherwake is enabled
for CAP_NET_RAW. This allows execution by unprivileged users
as needed by the web user interface (nobody).

Reported-by: Albert Schwarzkopf <ipfire@quitesimple.org>
Fixes: #12562
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 21:06:57 +00:00
Michael Tremer
29156d15f6 hostapd: Re-add accidentially removed CONFIG_SAE
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 18:56:07 +00:00
Michael Tremer
1035570fb0 core154: Do not package libloc database files
This is carried over from Core Update 153

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-27 18:43:30 +00:00
Michael Tremer
85f5656aca Revert "make: update to 4.3"
This reverts commit f1d98a1c3f.

The new version of make seems to break building u-boot on armv5tel.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-26 11:15:04 +00:00
Adolf Belka
53f04366ed iptables: Update to version 1.8.7
- Update from 1.8.6 to 1.8.7
Florian Westphal (4):
      xtables-monitor: fix rule printing
      xtables-monitor: fix packet family protocol
      xtables-monitor: print packet first
      xtables-monitor:

Pablo Neira Ayuso (2):
      tests: shell: update format of registers in bitwise payloads.
      configure: bump version for 1.8.7 release

Phil Sutter (21):
      nft: Optimize class-based IP prefix matches
      ebtables: Optimize masked MAC address matches
      tests/shell: Add test for bitwise avoidance fixes
      ebtables: Fix for broken chain renaming
      iptables-test.py: Accept multiple test files on commandline
      iptables-test.py: Try to unshare netns by default
      libxtables: Extend MAC address printing/parsing support
      xtables-arp: Don't use ARPT_INV_*
      xshared: Merge some command option-related code
      tests/shell: Test for fixed extension registration
      extensions: dccp: Fix for DCCP type 'INVALID'
      nft: Fix selective chain compatibility checks
      nft: cache: Introduce nft_cache_add_chain()
      nft: Implement nft_chain_foreach()
      nft: cache: Move nft_chain_find() over
      nft: Introduce struct nft_chain
      nft: Introduce a dedicated base chain array
      nft: cache: Sort custom chains by name
      tests: shell: Drop any dump sorting in place
      nft: Avoid pointless table/chain creation
      tests/shell: Fix nft-only/0009-needless-bitwise_0
- Rootfile updated

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-25 21:23:49 +00:00
Michael Tremer
adc2aa5f67 core154: Ship updated perl files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-25 19:34:16 +00:00
Leo-Andres Hofmann
eea288bc1a network-functions.pl: Improve zone configuration functions
Cache ethernet configuration in public variable "ethernet_settings",
add functions to simplify working with the network configuration.

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-25 19:32:40 +00:00
Leo-Andres Hofmann
abffcc99ad Refactor "get_available_network_zones", move to network-functions.pl
This function nicely translates the ethernet/settings "CONFIG_TYPE"
into a list of available zones. Therefore it should be more accessible!

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-25 19:32:38 +00:00
Arne Fitzenreiter
f1d98a1c3f make: update to 4.3
this this needed to build on systems with kernel >=5.5

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-25 19:30:45 +00:00
Michael Tremer
502f6c63a3 network-hotplug-bridges: Fix logical error in STP_PRIORITY check
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 17:09:10 +00:00
Matthias Fischer
bb859c27f0 nano: Update to 5.5
For details see:
https://www.nano-editor.org/news.php

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:06:40 +00:00
Michael Tremer
387d4b5e43 core154: Ship logrotate
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:06:25 +00:00
Matthias Fischer
9f2779d71c logrotate: Update to 3.18.0
Exerpt from 'ChangeLog.md':

"## [3.18.0] - 2021-01-08
  - allow UIDs and GIDs to be specified numerically (#217)
  - add support for Zstandard compressed files (#355)
  - make `delaycompress` not to fail with `rotate 0` (#341)"

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:06:08 +00:00
Matthias Fischer
bcc6636576 htop: Update to 3.0.5
For details see:
https://github.com/htop-dev/htop/blob/master/ChangeLog

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:05:57 +00:00
Michael Tremer
597e584f3d core154: Ship ipsec-interfaces
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:05:42 +00:00
Michael Tremer
0de7cc50ac IPsec: Disable XFRM policy lookup for VTI devices
This speeds up throughput slightly

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:05:10 +00:00
Michael Tremer
37ff8e005d core154: Ship sudo
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:04:55 +00:00
Adolf Belka
161613165a sudo: Upgrade to 1.9.5p1
- Upgrade sudo from 1.8.10p3 to 1.9.5p1
- Move sudo from legacy release (1.8) branch to stable release (1.9) branch
- Update rootfile
- Changelog available at https://www.sudo.ws/changes.html
- Tested out on vm testbed and sudo is working correctly

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:04:33 +00:00
Michael Tremer
93d540832a wpa_supplicant: Update to development version
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:03:43 +00:00
Michael Tremer
5b2fc5d65f hostapd: Update to development version
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-18 13:03:36 +00:00
Michael Tremer
50f75f8806 core154: Ship kmod
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 11:23:07 +00:00
Michael Tremer
5c21f1a078 kmod: Update to 28
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 11:22:59 +00:00
Michael Tremer
b14c24ca90 make.sh: Build zstd earlier in stage2
Since programs from the toolchain are linked against this, we need to
make this library available in stage 2, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 11:19:32 +00:00
Michael Tremer
5c3f3da559 core154: Ship SSH initscript
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 11:14:30 +00:00
Michael Tremer
675c9ca558 ssh: Ignore any errors when stopping daemon
The SSH init script only kills the main daemon which leads to any child
processes (for remaining connections) being untouched.

killproc returns 4 (unknown error) when not all processes were killed
which is not intended here. Therefore we ignore the error and do not
pause the shut down process for a minute.

Fixes: #12544
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 11:12:03 +00:00
Michael Tremer
0b58804370 core154: Ship initscript functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 10:54:07 +00:00
Michael Tremer
ad594123b6 core154: Ship header.pl
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 10:53:15 +00:00
Leo-Andres Hofmann
56d37c8dbf header.pl: Remove duplicate "IpInSubnet" function
This function is deprecated. The commonly used and maintained "IpInSubnet" function can be found in general-functions.pl.

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 10:52:49 +00:00
Arne Fitzenreiter
7fd195938f strace: update to 5.10
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 10:52:11 +00:00
Michael Tremer
80b1dc64f2 AWS: Ensure the product UUID is uppercase
Newer kernels seem to return this in lowercase format which makes the
comparison to "EC2" fail.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 10:51:58 +00:00
Michael Tremer
baa9712372 AWS: Hypervisor UUID has been dropped from newer kernels
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 10:51:51 +00:00
Michael Tremer
611c2b7103 iw: Update to 5.9
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-12 10:43:52 +00:00
Michael Tremer
a4cfeae49b core154: Ship WiFi changes
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-12 10:40:28 +00:00
Michael Tremer
0eec4bbe46 wpa_supplicant: Import fresh default configuration
This enables some more features that have been added to wpa_supplicant
over time. In our case we need SAE for WPA3 support.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-12 10:39:14 +00:00
Michael Tremer
3403eb308c wireless client: Try using SHA256 over SHA1 when possible
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-12 10:39:08 +00:00
Michael Tremer
5addf34780 wireless client: Add support for WPA3
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-12 10:38:59 +00:00
Michael Tremer
0c2be650b0 core154: Ship setup
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-12 10:37:17 +00:00
Arne Fitzenreiter
14cb18a539 setup: move gateway setting to red address setting.
DEFAULT_GATEWAY is used only in RED_STATIC config so it
fits better to this menu and is only selectable if red
is set to static mode.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-12 10:36:51 +00:00
Michael Tremer
f0b53518e5 flashrom: Only build package for x86_64 and i586
The ARM architectures do not seem to be supported

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-07 13:52:01 +00:00
Michael Tremer
acc82ade06 core154: Ship unbound initscript
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-07 11:57:53 +00:00
Giovanni Aneloni
2b113aebc4 unbound: make local zone transparent
Change local zone to "trasnparent" instead of "typetrasnparent" to avoid NXDOMAIN when querying local hosts

Fixes: #12391
Signed-off-by: Giovanni Aneloni <giovanni.aneloni@live.com>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-07 11:55:03 +00:00
Michael Tremer
f8e0e85d2e flashrom: Update to 1.2
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-07 11:39:08 +00:00