]> git.ipfire.org Git - ipfire-2.x.git/log
ipfire-2.x.git
21 months agoCore Update 169: Delete unused initrd on 32-bit ARM to save space in /boot core169
Peter Müller [Thu, 7 Jul 2022 13:58:05 +0000 (13:58 +0000)] 
Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot

On 64-bit ARM, this is still needed for booting. Since the initrds were
already shipped with the updater, there is no need to regenerate them
locally again.

https://community.ipfire.org/t/again-with-the-file-system-full-core-169/8186

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
21 months agoCore Update 169: Drop entropy.cgi
Peter Müller [Wed, 29 Jun 2022 20:28:38 +0000 (20:28 +0000)] 
Core Update 169: Drop entropy.cgi

Since the kernel now always reports 256 bits of entropy to be available,
this CGI does not show any useful information anymore. To avoid
confusions, it will hereby be removed entirely.

Fixes: #12893
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
21 months agoCore Update 169: Delete "random" initscript
Peter Müller [Wed, 29 Jun 2022 20:13:11 +0000 (20:13 +0000)] 
Core Update 169: Delete "random" initscript

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
21 months agorandom: Drop busy-loop script
Michael Tremer [Wed, 29 Jun 2022 18:32:17 +0000 (18:32 +0000)] 
random: Drop busy-loop script

This is no longer required because the kernel will now try to
generate some randomness in an easier way when needed.

This has been added in: b923dd3de0acbf415cee193191250347b733fab8

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
21 months agosysctl: Permit ptrace usage for processes with CAP_SYS_PTRACE
Peter Müller [Wed, 29 Jun 2022 19:43:08 +0000 (19:43 +0000)] 
sysctl: Permit ptrace usage for processes with CAP_SYS_PTRACE

https://lists.ipfire.org/pipermail/development/2022-June/013763.html

Reported-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
21 months agocore169: Add initramdisks for armv6l, too
Michael Tremer [Wed, 29 Jun 2022 18:34:01 +0000 (18:34 +0000)] 
core169: Add initramdisks for armv6l, too

Looks like I have been ahead of time.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
21 months agocore169: Ship initramdisks
Michael Tremer [Wed, 29 Jun 2022 18:11:26 +0000 (18:11 +0000)] 
core169: Ship initramdisks

Those were not part of the update which renders any machine that
installs it unbootable.

Fixes: #12892
Reported-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
21 months agolinux: Update rootfiles to reflect /dev mount option change
Peter Müller [Mon, 27 Jun 2022 17:30:47 +0000 (17:30 +0000)] 
linux: Update rootfiles to reflect /dev mount option change

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
21 months agopython3-msgpack: Add rootfile for 32-bit ARM
Peter Müller [Mon, 27 Jun 2022 11:02:32 +0000 (11:02 +0000)] 
python3-msgpack: Add rootfile for 32-bit ARM

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
21 months agoRevert "U-Boot: Update to 2022.04"
Peter Müller [Mon, 27 Jun 2022 07:34:16 +0000 (07:34 +0000)] 
Revert "U-Boot: Update to 2022.04"

Arne reported that this introduced regressions on some NanoPi models.

This reverts commit b8a9c9e70a0ff84401e53f1481f3c1eafab76a29.

21 months agoRevert "Core Update 169: Ship U-Boot"
Peter Müller [Mon, 27 Jun 2022 07:34:10 +0000 (07:34 +0000)] 
Revert "Core Update 169: Ship U-Boot"

This reverts commit 65264b3ba6358d78d70c2cc7b9e1c883b0b4af4a.

21 months agoRevert "u-boot: Clarify source URLs and add missing rk3399 firmware"
Peter Müller [Mon, 27 Jun 2022 07:33:59 +0000 (07:33 +0000)] 
Revert "u-boot: Clarify source URLs and add missing rk3399 firmware"

This reverts commit be5703ef78b6244dcf06b72e6f34ab72b2e7fc55.

21 months agoRevert "u-boot: .xz != .gz"
Peter Müller [Mon, 27 Jun 2022 07:33:48 +0000 (07:33 +0000)] 
Revert "u-boot: .xz != .gz"

This reverts commit 01b3a62a35a38db9d67121e66f983c0e0a38ca46.

21 months agoRevert "u-boot: Sigh, fix another .xz != .gz"
Peter Müller [Mon, 27 Jun 2022 07:33:40 +0000 (07:33 +0000)] 
Revert "u-boot: Sigh, fix another .xz != .gz"

This reverts commit 480202725b872018667ce0cdc337c25c94cef72b.

21 months agolinux: Amend upstream patch to harden mount points of /dev
Peter Müller [Sat, 25 Jun 2022 22:20:48 +0000 (22:20 +0000)] 
linux: Amend upstream patch to harden mount points of /dev

This patch, which has been merged into the mainline Linux kernel, but
not yet backported to the 5.15.x tree, precisely addresses our
situation: IPFire does not use systemd, but CONFIG_DEVTMPFS_MOUNT.

The only explanation I have for bug #12889 arising _now_ is that some
component (dracut, maybe) changed its behaviour regarding remounting of
already mounted special file systems. As current dracut won't (re)mount
any file system already found to be mounted, this means that the mount
options decided by the kernel remained untouched for /dev, hence being
weak in terms of options hardening possible.

As CONFIG_DEVTMPFS_SAFE would not show up in "make menuconfig", changes
to kernel configurations have been simulated.

Fixes: #12889
Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
21 months agoCore Update 169: Ship general-functions.pl
Peter Müller [Sat, 25 Jun 2022 09:15:17 +0000 (09:15 +0000)] 
Core Update 169: Ship general-functions.pl

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
21 months agogeneral-functions.pl: Fix for bug #12865 - Static IP address pools - Add network...
Adolf Belka [Fri, 24 Jun 2022 21:58:57 +0000 (23:58 +0200)] 
general-functions.pl: Fix for bug #12865 - Static IP address pools - Add network - Name wit>

- The fix for bug #12428 removed spaces from the validhostname subroutine as hostnames are
   not supposed to have spaces
- This resulted in spaces no longer being allowed for the Static IP Address Pools names
- New subroutine created called validccdname. This allows letters, upper and lower case,
   numbers, spaces and dashes

Fixes: Bug #12865
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
21 months agoovpnmain.cgi: Fix for bug #12865 - Static IP address pools - Add network - Name with...
Adolf Belka [Fri, 24 Jun 2022 21:58:56 +0000 (23:58 +0200)] 
ovpnmain.cgi: Fix for bug #12865 - Static IP address pools - Add network - Name with space

- The fix for bug #12428 removed spaces from the validhostname subroutine as hostnames are
   not supposed to have spaces
- This resulted in spaces no longer being allowed for the Static IP Address Pools names
- New subroutine created called validccdname in general-functions.pl

Fixes: Bug #12865
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
21 months agopython3-msgpack: Required for build and execution of borgbackup 1.2.0
Adolf Belka [Fri, 24 Jun 2022 12:14:26 +0000 (14:14 +0200)] 
python3-msgpack: Required for build and execution of borgbackup 1.2.0

- New python module required for borgbackup. In borgbackup version 1.1.18 or 1.1.19
   the old bundled msgpack in borgbackup was removed and a specified version range
   of python3-msgpack required.
- This patch adds the lfs and rootfiles for this module

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
21 months agopython3-packaging: Moved to rootfiles/packages/ directory
Adolf Belka [Fri, 24 Jun 2022 12:14:25 +0000 (14:14 +0200)] 
python3-packaging: Moved to rootfiles/packages/ directory

- Required for borgbackup execution

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
21 months agoborgbackup: Fix bug #12884 - borgbackup 1.2.0 crashes on running any borg command
Adolf Belka [Fri, 24 Jun 2022 12:14:24 +0000 (14:14 +0200)] 
borgbackup: Fix bug #12884 - borgbackup 1.2.0 crashes on running any borg command

- When borgbackup was upgraded from version 1.1.17 to 1.2.0 the build was sucessfully
   completed but there was no testing feedback till after full release. It turned out
   that it did not successfully run.
- python3-packaging which had been installed for the build of borgbackup needed to also
   be available for the execution.
- When borgbackup was upgraded to 1.2.0 it was noticed that the old python3-msgpack was
   no longer needed as borgbackup used its own bundled msgpack since around version 1.1.10
   What was not seen was that in version 1.1.19 or 1.1.18 the bundled version of msgpack
   had been removed and that the newer version of python3-msgpack now needed to be
   installed but the version number has to meet the borgbackup requirements which currently
   require it to be =<1.0.3
- This patch adds the python3-packaging and python3-msgpack modules as dependencies for
   borgbackup
- The egg-info files are uncommented in the rootfile so that the borgbackup metadata can
   be found by python.
- The updated borgbackup build together with the python3-packaging and python3-msgpack
   modules were installed into a vm system using the .ipfire packages.
   Successfully initialised a borgbackup repo and ran two backups to the repo and checked
   the stats for the backup. Everything ran fine.

Fixes: Bug #12884
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
22 months agopython3-botocore: Bump package version
Peter Müller [Thu, 23 Jun 2022 13:27:46 +0000 (13:27 +0000)] 
python3-botocore: Bump package version

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agopython3-botocore: Ship interface descriptions
Michael Tremer [Thu, 23 Jun 2022 12:31:41 +0000 (12:31 +0000)] 
python3-botocore: Ship interface descriptions

botocore parses any interface descriptions and exposes them to Python.
For that to work, we need to ship them.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agopython3-botocore: Add httpchecksum module
Michael Tremer [Thu, 23 Jun 2022 12:31:40 +0000 (12:31 +0000)] 
python3-botocore: Add httpchecksum module

It looks like this has been commented out by mistake

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoCore Update 169: Ship ruleset-sources
Peter Müller [Thu, 23 Jun 2022 13:25:00 +0000 (13:25 +0000)] 
Core Update 169: Ship ruleset-sources

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoruleset-sources: Update download URL for Talos rulesets.
Stefan Schantl [Thu, 23 Jun 2022 06:03:19 +0000 (08:03 +0200)] 
ruleset-sources: Update download URL for Talos rulesets.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoovpnmain.cgi: Fix for bug #12883 - separate .p12 file corrupted
Adolf Belka [Wed, 22 Jun 2022 20:22:36 +0000 (22:22 +0200)] 
ovpnmain.cgi: Fix for bug #12883 - separate .p12 file corrupted

- Patch https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=2feacd989823aa1dbd5844c315a9abfd49060487
   from May 2021 put the variable containing the .p12 content into double quotes which
   causes the contents to be treated as text whereas the .p12 file is an application file.
- Most people must be downloading the zip package of .p12, ovpn.conf and ta.key files so
   the problem was not noticed till now and flagged up in the forum.
   https://community.ipfire.org/t/openvpn-p12-password-on-android-problem/8127
- The problem does not occur for the .p12 file in the zip file as the downloading of the
   zip file does not have the variable name in double quotes.
- Putting the zip file variable into double quotes caused the downloaded zip file to be
   corrupt and not able to be opened as an archive.
- Removing the double quotes from the .p12 variable name caused the separate .p12 file
   download to be able to be correctly opened.
- The same quoted variable name is used also for the cacert.pem, cert.pem, servercert.pem
   and ta.key file downloads. To be consistent the same change has been applied to these.

Fixes: Bug #2883
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agomisc-progs: Fix passing argument list
Michael Tremer [Thu, 23 Jun 2022 11:43:56 +0000 (11:43 +0000)] 
misc-progs: Fix passing argument list

The run() function expects all arguments without the basename of the
program.

This regression was introduced in a609195a26f2666a177b988a6691bc27b10e6d64.

Fixes: #12886
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
22 months agolinux: Align kernel configurations on ARM
Peter Müller [Thu, 23 Jun 2022 07:42:27 +0000 (07:42 +0000)] 
linux: Align kernel configurations on ARM

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Restart ntpd to apply configuration changes
Peter Müller [Thu, 23 Jun 2022 07:27:19 +0000 (07:27 +0000)] 
Core Update 169: Restart ntpd to apply configuration changes

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agolinux: Update rootfile
Peter Müller [Thu, 23 Jun 2022 06:44:09 +0000 (06:44 +0000)] 
linux: Update rootfile

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoOpenSSL: Fix rootfile
Peter Müller [Thu, 23 Jun 2022 06:38:41 +0000 (06:38 +0000)] 
OpenSSL: Fix rootfile

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship vulnerabilities.cgi
Peter Müller [Wed, 22 Jun 2022 18:11:56 +0000 (18:11 +0000)] 
Core Update 169: Ship vulnerabilities.cgi

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agovulnerabilities.cgi: Add MMIO Stale Data
Peter Müller [Wed, 22 Jun 2022 18:11:11 +0000 (18:11 +0000)] 
vulnerabilities.cgi: Add MMIO Stale Data

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agolinux: Update to 5.15.49
Peter Müller [Wed, 22 Jun 2022 15:10:01 +0000 (15:10 +0000)] 
linux: Update to 5.15.49

Changelog can be retrieved from https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.49 .

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCrap, OpenSSL download server returned a corrputed file :-/
Peter Müller [Wed, 22 Jun 2022 14:32:39 +0000 (14:32 +0000)] 
Crap, OpenSSL download server returned a corrputed file :-/

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship changed initscripts
Peter Müller [Wed, 22 Jun 2022 12:27:02 +0000 (12:27 +0000)] 
Core Update 169: Ship changed initscripts

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoExplicitly harden mount options of sensitive file systems
Peter Müller [Wed, 22 Jun 2022 12:23:10 +0000 (12:23 +0000)] 
Explicitly harden mount options of sensitive file systems

These were found to got lost after upgrading to Core Update 169, so we
set them explicitly to avoid accidential security downgrades.

https://lists.ipfire.org/pipermail/development/2022-June/013714.html

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship OpenSSL
Peter Müller [Wed, 22 Jun 2022 12:17:48 +0000 (12:17 +0000)] 
Core Update 169: Ship OpenSSL

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoOpenSSL: Update to 1.1.1p
Peter Müller [Wed, 22 Jun 2022 12:16:37 +0000 (12:16 +0000)] 
OpenSSL: Update to 1.1.1p

Please refer to https://www.openssl.org/news/openssl-1.1.1-notes.html
for the release notes regarding this version.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoUpdate French translation
Peter Müller [Wed, 22 Jun 2022 12:12:52 +0000 (12:12 +0000)] 
Update French translation

Signed-off-by: Stéphane Pautrel <stephane.pautrel@acb78.com>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship NTP configuration changes
Peter Müller [Mon, 20 Jun 2022 20:44:58 +0000 (20:44 +0000)] 
Core Update 169: Ship NTP configuration changes

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoShip NTP changes
Jon Murphy [Fri, 27 May 2022 00:40:31 +0000 (19:40 -0500)] 
Ship NTP changes

- Device time more accurate.  (e.g., +/- 10 seconds per day to < 100 ms on some devices)
   ( I know we don't need the perfect time server )
 - NTP and time will be accurate in manual mode (setting on Time Server > NTP Configuration WebGUI)
 - Change NTP "prefer" server:
    - The current preferred NTP server in an Undisciplined Local Clock.
    - This is intended when no outside source of synchronized time is available.
    - Change the "prefer" server from 127.127.1.0 to the Primary NTP server specified on
      the Time Server > NTP Configuration WebGUI page.
 - Change allows the drift file (located at /etc/ntp/drift) to be populated by ntpd.
    - The drift file is updated about once per hour which helps correct the device time.

Signed-off-by: Jon Murphy <jon.murphy@ipfire.org>
22 months agosysctl: Actually arm YAMA
Peter Müller [Mon, 20 Jun 2022 20:10:47 +0000 (20:10 +0000)] 
sysctl: Actually arm YAMA

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship keyutils
Peter Müller [Mon, 20 Jun 2022 19:50:16 +0000 (19:50 +0000)] 
Core Update 169: Ship keyutils

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship poppler
Peter Müller [Mon, 20 Jun 2022 19:48:55 +0000 (19:48 +0000)] 
Core Update 169: Ship poppler

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoTor: Update to 0.4.7.8
Peter Müller [Sun, 19 Jun 2022 09:41:05 +0000 (09:41 +0000)] 
Tor: Update to 0.4.7.8

Changes in version 0.4.7.8 - 2022-06-17
  This version fixes several bugfixes including a High severity security issue
  categorized as a Denial of Service. Everyone running an earlier version
  should upgrade to this version.

  o Major bugfixes (congestion control, TROVE-2022-001):
    - Fix a scenario where RTT estimation can become wedged, seriously
      degrading congestion control performance on all circuits. This
      impacts clients, onion services, and relays, and can be triggered
      remotely by a malicious endpoint. Tracked as CVE-2022-33903. Fixes
      bug 40626; bugfix on 0.4.7.5-alpha.

  o Minor features (fallbackdir):
    - Regenerate fallback directories generated on June 17, 2022.

  o Minor features (geoip data):
    - Update the geoip files to match the IPFire Location Database, as
      retrieved on 2022/06/17.

  o Minor bugfixes (linux seccomp2 sandbox):
    - Allow the rseq system call in the sandbox. This solves a crash
      issue with glibc 2.35 on Linux. Patch from pmu-ipf. Fixes bug
      40601; bugfix on 0.3.5.11.

  o Minor bugfixes (logging):
    - Demote a harmless warn log message about finding a second hop to
      from warn level to info level, if we do not have enough
      descriptors yet. Leave it at notice level for other cases. Fixes
      bug 40603; bugfix on 0.4.7.1-alpha.
    - Demote a notice log message about "Unexpected path length" to info
      level. These cases seem to happen arbitrarily, and we likely will
      never find all of them before the switch to arti. Fixes bug 40612;
      bugfix on 0.4.7.5-alpha.

  o Minor bugfixes (relay, logging):
    - Demote a harmless XOFF log message to from notice level to info
      level. Fixes bug 40620; bugfix on 0.4.7.5-alpha.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
22 months agoPostfix: Update to 3.7.2
Peter Müller [Sun, 19 Jun 2022 09:42:20 +0000 (09:42 +0000)] 
Postfix: Update to 3.7.2

Please refer to https://www.postfix.org/announcements/postfix-3.7.2.html
for this versions' release announcement.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
22 months agou-boot: Sigh, fix another .xz != .gz
Peter Müller [Sat, 18 Jun 2022 14:42:10 +0000 (14:42 +0000)] 
u-boot: Sigh, fix another .xz != .gz

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoUpdate rootfiles to reflect OpenVPN 2FA changes
Peter Müller [Sat, 18 Jun 2022 14:40:29 +0000 (14:40 +0000)] 
Update rootfiles to reflect OpenVPN 2FA changes

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agou-boot: .xz != .gz
Peter Müller [Sat, 18 Jun 2022 10:38:40 +0000 (10:38 +0000)] 
u-boot: .xz != .gz

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agou-boot: Clarify source URLs and add missing rk3399 firmware
Peter Müller [Sat, 18 Jun 2022 08:16:03 +0000 (08:16 +0000)] 
u-boot: Clarify source URLs and add missing rk3399 firmware

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoRun ./make.sh update-contributors
Peter Müller [Fri, 17 Jun 2022 16:49:57 +0000 (16:49 +0000)] 
Run ./make.sh update-contributors

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoZut alors, uniq 'files' as well
Peter Müller [Fri, 17 Jun 2022 16:48:44 +0000 (16:48 +0000)] 
Zut alors, uniq 'files' as well

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoSort 'files'
Peter Müller [Fri, 17 Jun 2022 16:48:13 +0000 (16:48 +0000)] 
Sort 'files'

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship OpenVPN 2FA changes
Peter Müller [Fri, 17 Jun 2022 16:47:44 +0000 (16:47 +0000)] 
Core Update 169: Ship OpenVPN 2FA changes

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoMerge branch 'temp-ms-ovpn-2fa' into next
Peter Müller [Fri, 17 Jun 2022 16:39:40 +0000 (16:39 +0000)] 
Merge branch 'temp-ms-ovpn-2fa' into next

22 months agoCore Update 169: Ship libtiff and krb5
Peter Müller [Fri, 17 Jun 2022 16:30:51 +0000 (16:30 +0000)] 
Core Update 169: Ship libtiff and krb5

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Remove pakfire metadata for krb5 and libtiff
Peter Müller [Fri, 17 Jun 2022 16:29:55 +0000 (16:29 +0000)] 
Core Update 169: Remove pakfire metadata for krb5 and libtiff

Both packages have become part of the core system, so these files
are not longer needed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agolibtiff: Move into core system.
Stefan Schantl [Sun, 15 May 2022 16:02:20 +0000 (18:02 +0200)] 
libtiff: Move into core system.

pango and the PDF tools as core parts are linked against
libtiff, therefore this library has to become a part of the
core distribution too.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
22 months agokrb5: Move package into core system.
Stefan Schantl [Sun, 15 May 2022 16:02:19 +0000 (18:02 +0200)] 
krb5: Move package into core system.

On one hand, the key.dns_resolver binary is linked against libkrb5, so this
library at least is required by the base system.

On the other hand this easily allows different services on the firewall
to use kerberos for authentication (ssh etc).

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
22 months agokernel: Align x86_64 rootfile for kernel update
Peter Müller [Fri, 17 Jun 2022 16:27:42 +0000 (16:27 +0000)] 
kernel: Align x86_64 rootfile for kernel update

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship U-Boot
Peter Müller [Fri, 17 Jun 2022 15:54:10 +0000 (15:54 +0000)] 
Core Update 169: Ship U-Boot

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoU-Boot: Update to 2022.04
Peter Müller [Fri, 17 Jun 2022 15:52:45 +0000 (15:52 +0000)] 
U-Boot: Update to 2022.04

https://wiki.ipfire.org/devel/telco/2022-06-13

Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship misc-progs
Peter Müller [Fri, 17 Jun 2022 11:01:06 +0000 (11:01 +0000)] 
Core Update 169: Ship misc-progs

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agomisc-progs: Add path to executable to argv
Michael Tremer [Wed, 15 Jun 2022 09:53:20 +0000 (09:53 +0000)] 
misc-progs: Add path to executable to argv

Otherwise, the first argument would always be swollowed :(

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
22 months agosamba: Ship with CU169
Adolf Belka [Thu, 16 Jun 2022 21:31:59 +0000 (23:31 +0200)] 
samba: Ship with CU169

- samba is linked to liblber from openldap. openldap was updated in CU168 but
  I missed that samba had a dependency to one of its libraries.
- find-dependencies was not run on openldap liblber although looking at the openldap
  rootfile it is clear that an sobump occurred.
- This patch increments the samba PAK_VER so that it will be shipped and therefore
  have the library links updated.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
22 months agonetatalk: Ship with CU169 - Fixes bug #12878
Adolf Belka [Thu, 16 Jun 2022 21:16:36 +0000 (23:16 +0200)] 
netatalk: Ship with CU169 - Fixes bug #12878

- netatalk is linked to liblber from openldap. openldap was updated in CU168 but
  I missed that netatalk had a dependency to one of its libraries.
- find-dependencies was not run on openldap liblber although looking at the openldap
  rootfile it is clear that an sobump occurred.
- This patch increments the netatalk PAK_VER so that it will be shipped and therefore
  have the library links updated.

Fixes: Bug #12878
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship libtiff and krb5
Peter Müller [Fri, 17 Jun 2022 16:30:51 +0000 (16:30 +0000)] 
Core Update 169: Ship libtiff and krb5

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Remove pakfire metadata for krb5 and libtiff
Peter Müller [Fri, 17 Jun 2022 16:29:55 +0000 (16:29 +0000)] 
Core Update 169: Remove pakfire metadata for krb5 and libtiff

Both packages have become part of the core system, so these files
are not longer needed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agolibtiff: Move into core system.
Stefan Schantl [Sun, 15 May 2022 16:02:20 +0000 (18:02 +0200)] 
libtiff: Move into core system.

pango and the PDF tools as core parts are linked against
libtiff, therefore this library has to become a part of the
core distribution too.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
22 months agokrb5: Move package into core system.
Stefan Schantl [Sun, 15 May 2022 16:02:19 +0000 (18:02 +0200)] 
krb5: Move package into core system.

On one hand, the key.dns_resolver binary is linked against libkrb5, so this
library at least is required by the base system.

On the other hand this easily allows different services on the firewall
to use kerberos for authentication (ssh etc).

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
22 months agokernel: Align x86_64 rootfile for kernel update
Peter Müller [Fri, 17 Jun 2022 16:27:42 +0000 (16:27 +0000)] 
kernel: Align x86_64 rootfile for kernel update

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship U-Boot
Peter Müller [Fri, 17 Jun 2022 15:54:10 +0000 (15:54 +0000)] 
Core Update 169: Ship U-Boot

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoU-Boot: Update to 2022.04
Peter Müller [Fri, 17 Jun 2022 15:52:45 +0000 (15:52 +0000)] 
U-Boot: Update to 2022.04

https://wiki.ipfire.org/devel/telco/2022-06-13

Cc: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoCore Update 169: Ship misc-progs
Peter Müller [Fri, 17 Jun 2022 11:01:06 +0000 (11:01 +0000)] 
Core Update 169: Ship misc-progs

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
22 months agomisc-progs: Add path to executable to argv
Michael Tremer [Wed, 15 Jun 2022 09:53:20 +0000 (09:53 +0000)] 
misc-progs: Add path to executable to argv

Otherwise, the first argument would always be swollowed :(

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
22 months agosamba: Ship with CU169
Adolf Belka [Thu, 16 Jun 2022 21:31:59 +0000 (23:31 +0200)] 
samba: Ship with CU169

- samba is linked to liblber from openldap. openldap was updated in CU168 but
  I missed that samba had a dependency to one of its libraries.
- find-dependencies was not run on openldap liblber although looking at the openldap
  rootfile it is clear that an sobump occurred.
- This patch increments the samba PAK_VER so that it will be shipped and therefore
  have the library links updated.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
22 months agonetatalk: Ship with CU169 - Fixes bug #12878
Adolf Belka [Thu, 16 Jun 2022 21:16:36 +0000 (23:16 +0200)] 
netatalk: Ship with CU169 - Fixes bug #12878

- netatalk is linked to liblber from openldap. openldap was updated in CU168 but
  I missed that netatalk had a dependency to one of its libraries.
- find-dependencies was not run on openldap liblber although looking at the openldap
  rootfile it is clear that an sobump occurred.
- This patch increments the netatalk PAK_VER so that it will be shipped and therefore
  have the library links updated.

Fixes: Bug #12878
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
22 months agoovpnmain.cgi: URI encode OTPAuth String in QRCode
Timo Eissler [Thu, 16 Jun 2022 10:39:45 +0000 (12:39 +0200)] 
ovpnmain.cgi: URI encode OTPAuth String in QRCode

Signed-off-by: Timo Eissler <timo.eissler@ipfire.org>
22 months agoperl-URI-Encode: New package
Timo Eissler [Thu, 16 Jun 2022 10:38:48 +0000 (12:38 +0200)] 
perl-URI-Encode: New package

Simple percent Encoding/Decoding

Signed-off-by: Timo Eissler <timo.eissler@ipfire.org>
22 months agoovpnmain.cgi: Remove trailing newline from OTP secret
Timo Eissler [Tue, 14 Jun 2022 18:56:12 +0000 (20:56 +0200)] 
ovpnmain.cgi: Remove trailing newline from OTP secret

Signed-off-by: Timo Eissler <timo.eissler@ipfire.org>
22 months agoopenvpn-authenticator: Always return general connection data
Michael Tremer [Tue, 14 Jun 2022 15:57:03 +0000 (15:57 +0000)] 
openvpn-authenticator: Always return general connection data

The function returned different output when TOTP was configured and not
which is not what it should do.

This version will now try to add the TOTP configuration, or will add
nothing it if fails to do so.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoopenvpn-authenticator: Don't process configuration when row is too short
Michael Tremer [Tue, 14 Jun 2022 15:53:19 +0000 (15:53 +0000)] 
openvpn-authenticator: Don't process configuration when row is too short

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoopenvpn-authenticator: Change event and environment handling
Timo Eissler [Tue, 7 Jun 2022 15:53:23 +0000 (17:53 +0200)] 
openvpn-authenticator: Change event and environment handling

Move reading of environment in it's own function because not all
events have a ENV block following and thus always reading the ENV
will cause RuntimeError("Unexpected environment line ...").

22 months agoopenvpn-authenticator: Fix call of _client_auth_successful
Timo Eissler [Tue, 7 Jun 2022 10:20:14 +0000 (12:20 +0200)] 
openvpn-authenticator: Fix call of _client_auth_successful

22 months agoopenvpn-authenticator: Return only available data
Timo Eissler [Tue, 7 Jun 2022 10:14:12 +0000 (12:14 +0200)] 
openvpn-authenticator: Return only available data

For connections which have not enabled OTP return
connection name and common_name attributes only.

22 months agoopenvpn-authenticator: Generate TOTP instead of HOTP codes
Timo Eissler [Tue, 7 Jun 2022 10:12:20 +0000 (12:12 +0200)] 
openvpn-authenticator: Generate TOTP instead of HOTP codes

22 months agoovpnmain.cgi: Fix OTP secret handling
Timo Eissler [Tue, 7 Jun 2022 09:20:56 +0000 (11:20 +0200)] 
ovpnmain.cgi: Fix OTP secret handling

Convert stored hex OTP secret to binary prior to converting to base32.

22 months agoovpnmain.cgi: Fix comparison operators
Timo Eissler [Tue, 7 Jun 2022 09:16:31 +0000 (11:16 +0200)] 
ovpnmain.cgi: Fix comparison operators

22 months agoopenvpn-2fa: Configure fake authentication credentials
Michael Tremer [Wed, 4 May 2022 13:58:18 +0000 (14:58 +0100)] 
openvpn-2fa: Configure fake authentication credentials

These configuration option are required to make the client authenticate
itself against the server.

The server may then accept those credentials without any further ado or
ask for a OTP.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoopenvpn-2fa: Enable management socket for RW server
Michael Tremer [Wed, 4 May 2022 13:51:51 +0000 (14:51 +0100)] 
openvpn-2fa: Enable management socket for RW server

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoopenvpn-2fa: Drop the previous authentication handler
Michael Tremer [Wed, 4 May 2022 13:49:32 +0000 (14:49 +0100)] 
openvpn-2fa: Drop the previous authentication handler

This has been replaced by the newer authenticator

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoopenvpn-2fa: Import a prototype of an authenticator
Michael Tremer [Wed, 4 May 2022 13:46:41 +0000 (14:46 +0100)] 
openvpn-2fa: Import a prototype of an authenticator

This script runs aside of OpenVPN and connects to the management socket.
On the socket, OpenVPN will post any new clients trying to authenticate
which will be handled by the authenticator.

If a client has 2FA enabled, it will be challanged for the current token
which will then be checked in a second pass.

Clients which do not have 2FA enabled will just be authenticated no
matter what and tls-verify will have handled the rest.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoovpnmain.cgi: Load all modules at the beginning
Michael Tremer [Tue, 3 May 2022 11:54:17 +0000 (11:54 +0000)] 
ovpnmain.cgi: Load all modules at the beginning

Although Perl modules tend to take a long time to load, it is better to
do this at the beginning so that loading the script will show any
errors.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoovpnmain.cgi: Disable sending any error messages to the browser again
Michael Tremer [Tue, 3 May 2022 11:51:11 +0000 (11:51 +0000)] 
ovpnmain.cgi: Disable sending any error messages to the browser again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoopenpvn-2fa: Fix rootfiles
Michael Tremer [Fri, 15 Apr 2022 07:29:10 +0000 (07:29 +0000)] 
openpvn-2fa: Fix rootfiles

Some rootfiles where in the wrong location, some others had some
architecture hard-coded.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoperl-YAML-Tiny: Update checksum and remove unnecessary fields
Michael Tremer [Thu, 14 Apr 2022 21:02:04 +0000 (21:02 +0000)] 
perl-YAML-Tiny: Update checksum and remove unnecessary fields

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoperl-Module-ScanDeps: Update checksum and remove unnecessary fields
Michael Tremer [Thu, 14 Apr 2022 20:59:10 +0000 (20:59 +0000)] 
perl-Module-ScanDeps: Update checksum and remove unnecessary fields

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoperl-Module-Install: Update checksum and remove unnecessary fields
Michael Tremer [Thu, 14 Apr 2022 20:57:33 +0000 (20:57 +0000)] 
perl-Module-Install: Update checksum and remove unnecessary fields

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>