Commit Graph

8041 Commits

Author SHA1 Message Date
Stefan Schantl
3c63c5da5e Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next 2022-07-07 17:17:54 +02:00
Peter Müller
7f623de323 Revert "Core Update 169: Delete unused initrd on 32-bit ARM to save space in /boot"
This reverts commit 5ead33d796.
2022-07-07 13:55:29 +00:00
Peter Müller
5ead33d796 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>
2022-07-07 13:52:09 +00:00
Peter Müller
b317b60a3e Core Update 170: Ship lsof
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-07-06 19:21:32 +00:00
Peter Müller
284efdbfb1 Core Update 170: Ship files affected by "aliases" changes
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-07-06 10:03:16 +00:00
Robin Roevens
50fdf0ee9c zabbix_agentd: Add IPFire specific userparameters
Provide IPFire specific items for the Zabbix server to monitor:
- ipfire.net.gateway.pingtime: Internet Line Quality
- ipfire.net.gateway.ping: Internet connection
- ipfire.net.fw.hits.raw: JSON formatted list of Firewall hits/chain
- ipfire.dhcpd.clients: Number of active DHCP leases
- ipfire.captive.clients: Number of Captive Portal clients

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
2022-07-06 09:57:40 +00:00
Robin Roevens
092330b128 zabbix_agentd: Sudoers file reorganization
- Remove sudoers file 'zabbix' in favour of new IPFire managed
  'zabbix_agentd' and user managed 'zabbix_agentd_user' which is
  included in the backup
- Provide migration of old sudoers file 'zabbix' or 'zabbix.user' to
  new zabbix_agentd_user sudoers file if it was modified by user.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
2022-07-06 09:57:40 +00:00
Robin Roevens
e2d54d57d4 zabbix_agentd: Configfile reorganization
- Restrict default main config to only the bare minimum options
  and add upstream provided config as example file.
- Remove /etc/zabbix_agentd from backup and instead add only
  zabbix_agentd.conf and subdirs 'scripts' and 'zabbix_agentd.d' to
  the backup.
- Move ipfire managed userparameter_pakfire.conf from
  user managed dir /etc/zabbix_agentd/zabbix_agent.d to
  ipfire managed dir /var/ipfire/zabbix_agentd/userparameters
- Add Include line to existing zabbix_agentd.conf to include
  the new ipfire managed config dir /var/ipfire/zabbix_agentd/...
- Add and include mandatory IPFire specific agent configuration
  which should never be changed by the user.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
2022-07-06 09:57:40 +00:00
Robin Roevens
1d00837e7e zabbix_agentd: Fix agent modules dir and few minor bugs
- Add agent modules-dir to backup
- Remove original, not used agent modules dir from rootfile
- Create modules-dir during install if it not already exists
- bugfix: Add existence check before creating log-dir, avoiding error
             messages if it already exists from a previous install
- bugfix: add extract_backup_includes to update.sh script to make
              sure backup includes exist when backup is taken.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
2022-07-06 09:57:40 +00:00
Peter Müller
801143615a Core Update 170: Ship ca-certificates
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-07-06 06:30:09 +00:00
Peter Müller
f42dc99758 Merge branch 'next' into temp-c170-development 2022-07-06 06:14:54 +00:00
Peter Müller
8000bc0a43 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>
2022-06-29 20:28:38 +00:00
Peter Müller
b55842c26a Core Update 169: Delete "random" initscript
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-29 20:13:11 +00:00
Michael Tremer
255873a5f9 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: b923dd3de0

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-29 20:11:34 +00:00
Michael Tremer
2fcfe2e1f3 core169: Add initramdisks for armv6l, too
Looks like I have been ahead of time.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-06-29 18:34:01 +00:00
Michael Tremer
636cf631c9 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>
2022-06-29 18:11:26 +00:00
Peter Müller
5991f39282 linux: Update rootfiles to reflect /dev mount option change
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-27 17:30:47 +00:00
Peter Müller
5503a18d71 Merge branch 'next' into temp-c170-development
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-27 13:29:18 +00:00
Peter Müller
f5117ab51d python3-msgpack: Add rootfile for 32-bit ARM
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-27 11:02:32 +00:00
Peter Müller
b121752277 Revert "Core Update 169: Ship U-Boot"
This reverts commit 65264b3ba6.
2022-06-27 07:34:10 +00:00
Peter Müller
53eb573f27 Core Update 170: Ship Pakfire functions.pl
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-25 11:15:43 +00:00
Adolf Belka
0eaaa300d8 rust-time: Required for update of python3-cryptography
- lfs and rootfile created
- Patch created to remove requirement for winapi and related windows dependencies

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:38 +00:00
Adolf Belka
541f938d8b rust-stable_deref_trait: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:38 +00:00
Adolf Belka
ccddf4ce8d rust-proc-macro-error-attr: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
fdb3fb1565 rust-proc-macro-error: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
023ed8cefd rust-pem: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
1cc86b66ec rust-paste-0.1.18: Required for update of python3-cryptography
- lfs and rootfile created
- python3-cryptography build requires older version than was already installed.
   Therefore named version 0.1.18 created, leaving original rust-paste in place

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
e09731d5e4 rust-ouroboros_macro: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
c5706bf1ef rust-ouroboros: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
79781dda3f rust-num_threads: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
fe6afd5ccc rust-num-traits: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
44daf2f5ee rust-num-integer: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
5b855a903e rust-indoc-0.3.6: Required for update of python3-cryptography
- lfs and rootfile created
- python3-cryptography build requires older version than was already installed.
   Therefore named version 0.3.6 created, leaving original rust-indoc in place

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
d6626067a7 rust-chrono: Required for update of python3-cryptography
- lfs and rootfile created
- Patch created to remove requirement for winapi and related windows dependencies

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
bc9673ded3 rust-base64: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
09c2a2ec0e rust-asn1_derive: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
1d14e5a23a rust-asn1: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
98eac192ad rust-aliasable: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
7230084809 rust-Inflector: Required for update of python3-cryptography
- lfs and rootfile created

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
4ccf0c9ddc rust-pyo3-macros-backend: Update to version 0.15.1 - required for python3-cryptography update
- Update from version 0.13.1 to 0.15.1
   Required to be at same version as rust-pyo3
- Update of rootfile
- Changelog not available

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
8024cc05a1 rust-pyo3-macros: Update to version 0.15.1 - required for python3-cryptography update
- Update from version 0.13.1 to 0.15.1
   Required to be at same version as rust-pyo3
- Update of rootfile
- Changelog not available

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
cacf78e8cc rust-pyo3: Update to version 0.15.1 - required for python3-cryptography
- Update from version 0.13.1 to 0.15.1
- Update of rootfile
- Changelog is too long to include here. For details see CHANGELOG.md file in source
   tarball

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Adolf Belka
643871d4a7 python3-cryptography: Update to version 36.0.2
- Update from version 3.4.7 to 36.0.2
   After version 3.4.8 the numbering scheme changed to 35.0.0 in Sept 2021
   See Chanelog section 35.0.0 below
- New release requires a lot of rust packages - see Changelog sections 35.0.0 & 36.0.0
   below. The required rust packages are installed in separate patches in this series
- Update of rootfile
- Changelog
	36.0.2 - 2022-03-15¶
	    Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 1.1.1n.
	36.0.1 - 2021-12-14¶
	    Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 1.1.1m.
	36.0.0 - 2021-11-21¶
	    FINAL DEPRECATION Support for verifier and signer on our asymmetric key
             classes was deprecated in version 2.0. These functions had an extended
             deprecation due to usage, however the next version of cryptography will drop
             support. Users should migrate to sign and verify.
	    The entire X.509 layer is now written in Rust. This allows alternate
             asymmetric key implementations that can support cloud key management
             services or hardware security modules provided they implement the necessary
             interface (for example: EllipticCurvePrivateKey).
	    Deprecated the backend argument for all functions.
	    Added support for AESOCB3.
	    Added support for iterating over arbitrary request attributes.
	    Deprecated the get_attribute_for_oid method on CertificateSigningRequest in
             favor of get_attribute_for_oid() on the new Attributes object.
	    Fixed handling of PEM files to allow loading when certificate and key are in
             the same file.
	    Fixed parsing of CertificatePolicies extensions containing legacy BMPString
             values in their explicitText.
	    Allow parsing of negative serial numbers in certificates. Negative serial
             numbers are prohibited by RFC 5280 so a deprecation warning will be raised
             whenever they are encountered. A future version of cryptography will drop
             support for parsing them.
	    Added support for parsing PKCS12 files with friendly names for all
             certificates with load_pkcs12(), which will return an object of type
             PKCS12KeyAndCertificates.
	    rfc4514_string() and related methods now have an optional attr_name_overrides
             parameter to supply custom OID to name mappings, which can be used to match
             vendor-specific extensions.
	    BACKWARDS INCOMPATIBLE: Reverted the nonstandard formatting of email address
             fields as E in rfc4514_string() methods from version 35.0.
	    The previous behavior can be restored with:
             name.rfc4514_string({NameOID.EMAIL_ADDRESS: "E"})
	    Allow X25519PublicKey and X448PublicKey to be used as public keys when
             parsing certificates or creating them with CertificateBuilder. These key
             types must be signed with a different signing algorithm as X25519 and X448
             do not support signing.
	    Extension values can now be serialized to a DER byte string by calling
             public_bytes().
	    Added experimental support for compiling against BoringSSL. As BoringSSL
             does not commit to a stable API, cryptography tests against the latest
             commit only. Please note that several features are not available when
             building against BoringSSL.
	    Parsing CertificateSigningRequest from DER and PEM now, for a limited time
             period, allows the Extension critical field to be incorrectly encoded. See
             the issue for complete details. This will be reverted in a future
             cryptography release.
	    When OCSPNonce are parsed and generated their value is now correctly wrapped
             in an ASN.1 OCTET STRING. This conforms to RFC 6960 but conflicts with the
             original behavior specified in RFC 2560. For a temporary period for
             backwards compatibility, we will also parse values that are encoded as
             specified in RFC 2560 but this behavior will be removed in a future release.
	35.0.0 - 2021-09-29¶
	    Changed the version scheme. This will result in us incrementing the major
             version more frequently, but does not change our existing backwards
             compatibility policy.
	    BACKWARDS INCOMPATIBLE: The X.509 PEM parsers now require that the PEM
             string passed have PEM delimiters of the correct type. For example, parsing
             a private key PEM concatenated with a certificate PEM will no longer be
             accepted by the PEM certificate parser.
	    BACKWARDS INCOMPATIBLE: The X.509 certificate parser no longer allows
             negative serial numbers. RFC 5280 has always prohibited these.
	    BACKWARDS INCOMPATIBLE: Additional forms of invalid ASN.1 found during X.509
             parsing will raise an error on initial parse rather than when the malformed
             field is accessed.
	    Rust is now required for building cryptography, the
             CRYPTOGRAPHY_DONT_BUILD_RUST environment variable is no longer respected.
	    Parsers for X.509 no longer use OpenSSL and have been rewritten in Rust.
             This should be backwards compatible (modulo the items listed above) and
             improve both security and performance.
	    Added support for OpenSSL 3.0.0 as a compilation target.
	    Added support for SM3 and SM4, when using OpenSSL 1.1.1. These algorithms
             are provided for compatibility in regions where they may be required, and
             are not generally recommended.
	    We now ship manylinux_2_24 and musllinux_1_1 wheels, in addition to our
             manylinux2010 and manylinux2014 wheels. Users on distributions like Alpine
             Linux should ensure they upgrade to the latest pip to correctly receive
             wheels.
	    Added rfc4514_attribute_name attribute to x509.NameAttribute.
	    Added KBKDFCMAC.
	3.4.8 - 2021-08-24¶
	    Updated Windows, macOS, and manylinux wheels to be compiled with
             OpenSSL 1.1.1l.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 11:13:37 +00:00
Peter Müller
34e16b8653 Core Update 170: Ship sudo
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-25 11:12:44 +00:00
Adolf Belka
2296698ec4 sudo: Update to version 1.9.11p3
- Update from version 1.9.10 to 1.9.11p3
- Update of rootfile required
- Changelog
    What's new in Sudo 1.9.11p3
	 * Fixed "connection reset" errors on AIX when running shell scripts
	   with the "intercept" or "log_subcmds" sudoers options enabled.
	   Bug #1034.
	 * Fixed very slow execution of shell scripts when the "intercept"
	   or "log_subcmds" sudoers options are set on systems that enable
	   Nagle's algorithm on the loopback device, such as AIX.
	   Bug #1034.
    What's new in Sudo 1.9.11p2
	 * Fixed a compilation error on Linux/x86_64 with the x32 ABI.
	 * Fixed a regression introduced in 1.9.11p1 that caused a warning
	   when logging to sudo_logsrvd if the command returned no output.
    What's new in Sudo 1.9.11p1
	 * Correctly handle EAGAIN in the I/O read/right events.  This fixes
	   a hang seen on some systems when piping a large amount of data
	   through sudo, such as via rsync.  Bug #963.
	 * Changes to avoid implementation or unspecified behavior when
	   bit shifting signed values in the protobuf library.
	 * Fixed a compilation error on Linux/aarch64.
	 * Fixed the configure check for seccomp(2) support on Linux.
	 * Corrected the EBNF specification for tags in the sudoers manual
	   page.  GitHub issue #153.
    What's new in Sudo 1.9.11
	 * Fixed a crash in the Python module with Python 3.9.10 on some
	   systems.  Additionally, "make check" now passes for Python 3.9.10.
	 * Error messages sent via email now include more details, including
	   the file name and the line number and column of the error.
	   Multiple errors are sent in a single message.  Previously, only
	   the first error was included.
	 * Fixed logging of parse errors in JSON format.  Previously,
	   the JSON logger would not write entries unless the command and
	   runuser were set.  These may not be known at the time a parse
	   error is encountered.
	 * Fixed a potential crash parsing sudoers lines larger than twice
	   the value of LINE_MAX on systems that lack the getdelim() function.
	 * The tests run by "make check" now unset the LANGUAGE environment
	   variable.  Otherwise, localization strings will not match if
	   LANGUAGE is set to a non-English locale.  Bug #1025.
	 * The "starttime" test now passed when run under Debian faketime.
	   Bug #1026.
	 * The Kerberos authentication module now honors the custom password
	   prompt if one has been specified.
	 * The embedded copy of zlib has been updated to version 1.2.12.
	 * Updated the version of libtool used by sudo to version 2.4.7.
	 * Sudo now defines _TIME_BITS to 64 on systems that define __TIMESIZE
	   in the header files (currently only GNU libc).  This is required
	   to allow the use of 64-bit time values on some 32-bit systems.
	 * Sudo's "intercept" and "log_subcmds" options no longer force the
	   command to run in its own pseudo-terminal.  It is now also
	   possible to intercept the system(3) function.
	 * Fixed a bug in sudo_logsrvd when run in store-first relay mode
	   where the commit point messages sent by the server were incorrect
	   if the command was suspended or received a window size change
	   event.
	 * Fixed a potential crash in sudo_logsrvd when the "tls_dhparams"
	   configuration setting was used.
	 * The "intercept" and "log_subcmds" functionality can now use
	   ptrace(2) on Linux systems that support seccomp(2) filtering.
	   This has the advantage of working for both static and dynamic
	   binaries and can work with sudo's SELinux RBAC mode.  The following
	   architectures are currently supported: i386, x86_64, aarch64,
	   arm, mips (log_subcmds only), powerpc, riscv, and s390x.  The
	   default is to use ptrace(2) where possible; the new "intercept_type"
	   sudoers setting can be used to explicitly set the type.
	 * New Georgian translation from translationproject.org.
	 * Fixed creating packages on CentOS Stream.
	 * Fixed a bug in the intercept and log_subcmds support where
	   the execve(2) wrapper was using the current environment instead
	   of the passed environment pointer.  Bug #1030.
	 * Added AppArmor integration for Linux.  A sudoers rule can now
	   specify an APPARMOR_PROFILE option to run a command confined by
	   the named AppArmor profile.
	 * Fixed parsing of the "server_log" setting in sudo_logsrvd.conf.
	   Non-paths were being treated as paths and an actual path was
	   treated as an error.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-25 11:12:32 +00:00
Peter Müller
a8344bbac5 Core Update 170: Ship xfsprogs
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-25 11:12:14 +00:00
Peter Müller
f653df852a Start Core Update 170
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-25 11:07:09 +00:00
Peter Müller
617bb64f63 Core Update 169: Ship general-functions.pl
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-25 09:15:17 +00:00
Adolf Belka
de6ef4d40a 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>
2022-06-25 09:11:58 +00:00
Adolf Belka
006309eaaf python3-packaging: Moved to rootfiles/packages/ directory
- Required for borgbackup execution

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-06-25 09:11:58 +00:00