4585 Commits

Author SHA1 Message Date
Arne Fitzenreiter
6d501c0558 cpufrequtils: hide output on disabled cores.
We disable cores if the are affected by some cpu vulnerabilities
this cores report errors if you try to change the settings.
So only print the output for core0 and hide it for all cores.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-02-18 11:41:20 +01:00
Arne Fitzenreiter
51fd73ea2b cpufrequtils: fix initskript for amd-pstate
the initskript loads a test-modul for amd-pstate (which traces on intel)
and off course reports errors if firmware settings are missing.

this also fix the error at start because also amd-pstate doesn't support
ondemand mode.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-02-17 19:57:42 +01:00
Michael Tremer
4c68bcb588 installer: Fail if the bootloader could not be installed
If GRUB could not be installed during installation, the installer
continued without reporting the error to the user.

This change will make the installer fail.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-02-09 12:02:28 +00:00
Adolf Belka
37c5b4b62e firewall: Fixes bug12981 - add if loop to log or not log dropped hostile traffic
- This v3 version now has two if loops allowing logging of incoming drop hostile or
   outgoing drop hostile or both or neither.
- Dependent on the choice in optionsfw.cgi this loop will either log or not log the
   dropped hostile traffic.

Fixes: bug12981
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-02-07 11:02:17 +00:00
Arne Fitzenreiter
88b6ad8112 mympd: create/check config before first start
this create missing folders for webradio and state.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-01-31 21:09:14 +01:00
Adolf Belka
e9ba050b69 readline: Update patches to patch 1 to patch 10
- Update from version 8.2 with patch 1 to 8.2 with patches 1 to 10
- Update of rootfile not required
- Changelog
    Patch 10
	Fix the case where text to be completed from the line buffer (quoted) is
	compared to the common prefix of the possible matches (unquoted) and the
	quoting makes the former appear to be longer than the latter. Readline
	assumes the match doesn't add any characters to the word and doesn't display
	multiple matches.
    Patch 9
	Fix issue where the directory name portion of the word to be completed (the
	part that is passed to opendir()) requires both tilde expansion and dequoting.
	Readline only performed tilde expansion in this case, so filename completion
	would fail.
    Patch 8
	Add missing prototypes for several function declarations.
    Patch 7
	If readline is called with no prompt, it should display a newline if return
	is typed on an empty line. It should still suppress the final newline if
	return is typed on the last (empty) line of a multi-line command.
    Patch 6
	This is a variant of the same issue as the one fixed by patch 5. In this
	case, the signal arrives and is pending before readline calls rl_getc().
	When this happens, the pending signal will be handled by the loop, but may
	alter or destroy some state that the callback uses. Readline needs to treat
	this case the same way it would if a signal interrupts pselect/select, so
	compound operations like searches and reading numeric arguments get cleaned
	up properly.
    Patch 5
	If an application is using readline in callback mode, and a signal arrives
	after readline checks for it in rl_callback_read_char() but before it
	restores the application's signal handlers, it won't get processed until the
	next time the application calls rl_callback_read_char(). Readline needs to
	check for and resend any pending signals after restoring the application's
	signal handlers.
    Patch 4
	There are systems that supply one of select or pselect, but not both.
    Patch 3
	The custom color prefix that readline uses to color possible completions
	must have a leading `.'.
    Patch 2
	It's possible for readline to try to zero out a line that's not null-
	terminated, leading to a memory fault.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-31 17:06:19 +00:00
Michael Tremer
a61a21ef75 glibc: Import latest patches from upstream
These include (amongst others) fixes for:

GLIBC-SA-2024-0001:
===================
syslog: Heap buffer overflow in __vsyslog_internal (CVE-2023-6246)

__vsyslog_internal did not handle a case where printing a SYSLOG_HEADER
containing a long program name failed to update the required buffer
size, leading to the allocation and overflow of a too-small buffer on
the heap.

GLIBC-SA-2024-0002:
===================
syslog: Heap buffer overflow in __vsyslog_internal (CVE-2023-6779)

__vsyslog_internal used the return value of snprintf/vsnprintf to
calculate buffer sizes for memory allocation.  If these functions (for
any reason) failed and returned -1, the resulting buffer would be too
small to hold output.

GLIBC-SA-2024-0003:
===================
syslog: Integer overflow in __vsyslog_internal (CVE-2023-6780)

__vsyslog_internal calculated a buffer size by adding two integers, but
did not first check if the addition would overflow.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-31 11:09:41 +00:00
Michael Tremer
500b6311b4 collectd: Do not sync
Calling a global sync operation manually is generally a bad idea as it
can block for forever. If people have storage that does not retain
anything that is being written to it, they need to fix their hardware.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-31 10:30:27 +00:00
Adolf Belka
85db98e919 bash: Update to include patches 22 to 26
- Update from version 5.2 with patches 1 to 21 to 5.2 with patches 1 to 26
- Update of rootfile not required
- Changelog
    Patch 26
	The custom color prefix that readline uses to color possible completions
	 must have a leading `.'.
    Patch 25
	Make sure a subshell checks for and handles any terminating signals before
	 exiting (which might have arrived after the command completed) so the parent
	 and any EXIT trap will see the correct value for $?.
    Patch 24
	Fix bug where associative array compound assignment would not expand tildes
	 in values.
    Patch 23
	Running `local -' multiple times in a shell function would overwrite the
	 original saved set of options.
    Patch 22
	It's possible for readline to try to zero out a line that's not null-
	 terminated, leading to a memory fault.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-31 10:27:43 +00:00
Arne Fitzenreiter
9786225a9b mympd: new addon to control mpd via WebGUI
myMPD is written in C and has a nice WebGUI to play
local music and also a WebRadio browser.
This is to replace the removec client175.

After install it can reached via
https://IP_OF_THE_IPFIRE:8800

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-29 16:02:42 +00:00
Arne Fitzenreiter
c4b233ddf7 mpfire: fix initskript uninstall
the uninstall with rm /etc/rc*.d/*mpd remove not only the mpd initlinks.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-29 16:02:18 +00:00
Adolf Belka
0839a78a90 shadow: Updated to version 4.14.3
- Updated from version 4.14.2 to 4.14.3
- Update of rootfile not required
- Patch renamed to new version number
- Changelog
    4.14.3
	libshadow:
	    Avoid null pointer dereference.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-23 14:01:46 +00:00
Adolf Belka
64f9606302 pam: Update to version 1.6.0
- Update from version 1.5.3 to 1.6.0
- Update of rootfile
- A build bug was found with 1.6.0 if --enable-read-both-confs was set in the configure.
   A commit fixing this has been released and converted into a patch for IPFire. This
   will end up in the next pam release version and the IPFire patch can then be removed.
- Changelog
    1.6.0
	* Added support of configuration files with arbitrarily long lines.
	* build: fixed build outside of the source tree.
	* libpam: added use of getrandom(2) as a source of randomness if available.
	* libpam: fixed calculation of fail delay with very long delays.
	* libpam: fixed potential infinite recursion with includes.
	* libpam: implemented string to number conversions validation when parsing
	  controls in configuration.
	* pam_access: added quiet_log option.
	* pam_access: fixed truncation of very long group names.
	* pam_canonicalize_user: new module to canonicalize user name.
	* pam_echo: fixed file handling to prevent overflows and short reads.
	* pam_env: added support of '\' character in environment variable values.
	* pam_exec: allowed expose_authtok for password PAM_TYPE.
	* pam_exec: fixed stack overflow with binary output of programs.
	* pam_faildelay: implemented parameter ranges validation.
	* pam_listfile: changed to treat \r and \n exactly the same in configuration.
	* pam_mkhomedir: hardened directory creation against timing attacks.
	  Please note that using *at functions leads to more open file handles
	  during creation.
	* pam_namespace: fixed potential local DoS (CVE-2024-22365).
	* pam_nologin: fixed file handling to prevent short reads.
	* pam_pwhistory: helper binary is now built only if SELinux support is enabled.
	* pam_pwhistory: implemented reliable usernames handling when remembering
	  passwords.
	* pam_shells: changed to allow shell entries with absolute paths only.
	* pam_succeed_if: fixed treating empty strings as numerical value 0.
	* pam_unix: added support of disabled password aging.
	* pam_unix: synchronized password aging with shadow.
	* pam_unix: implemented string to number conversions validation.
	* pam_unix: fixed truncation of very long user names.
	* pam_unix: corrected rounds retrieval for configured encryption method.
	* pam_unix: implemented reliable usernames handling when remembering passwords.
	* pam_unix: changed to always run the helper to obtain shadow password entries.
	* pam_unix: unix_update helper binary is now built only if SELinux support
	  is enabled.
	* pam_unix: added audit support to unix_update helper.
	* pam_userdb: added gdbm support.
	* Multiple minor bug fixes, portability fixes, documentation improvements,
	  and translation updates.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-23 14:01:09 +00:00
Adolf Belka
2d79832a54 wavemon: Update to version 0.9.5
- Update from version 0.9.4 to 0.9.5
- Update of rootfile not required
- force-netlink-include-path patch updated due to chganges in file in source tarball
- Changelog
    0.9.5
	Info Screen:
	    improve format of percentages (use fixed format rather than auto-format).
	Configuration:
	    fix ncurses support for white backgrounds (#119),
	    configuration file now either in $XDG_CONFIG_HOME/wavemon/wavemonrc or in
	     $HOME/.config/wavemon/wavemonrc (#106).
	Miscellaneous
	    avoid including include linux/if.h (#109),
	    check and set support for C99 standard (#108),
	    updated README (#107),
	    configuration file can now be located in XDG_CONFIG_HOME (#105),
	    added portable implementation of asprintf(3),
	    updated copied nl80211 header file,
	    make -Wpedantic the default when building.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-23 13:57:03 +00:00
Adolf Belka
330f38dabe dmidecode: Update to version 3.5
- Update from version 3.3 to 3.5
- Update of rootfile not required
- Two patches no longer required as fixes are now in source tarball
- Changelog
    3.5 (Tue Mar 14 2023)
          - Decode HPE OEM records 216, 224, 230, 238 and 242.
          - Fortify entry point length checks.
          - Add a --no-quirks option.
          - Drop the CPUID exception list.
          - Do not let --dump-bin overwrite an existing file.
          - Ensure /dev/mem is a character device file.
          - Bug fixes:
            Fix segmentation fault in HPE OEM record 240
          - Minor improvements:
            Typo fixes
            Write the whole dump file at once
            Fix a build warning when USE_MMAP isn't set
    3.4 (Mon Jun 27 2022)
          - Support for SMBIOS 3.4.0. This includes new memory device types, new
            processor upgrades, new slot types and characteristics, decoding of memory
            module extended speed, new system slot types, new processor characteristics
            and new format of Processor ID.
          - Support for SMBIOS 3.5.0. This includes new processor upgrades, BIOS
            characteristics, new slot characteristics, new on-board device types, new
            pointing device interface types, and a new record type (type 45 -
            Firmware Inventory Information).
          - Decode HPE OEM records 194, 199, 203, 236, 237, 238 and 240.
          - Bug fixes:
            Fix OEM vendor name matching
            Fix ASCII filtering of strings
            Fix crash with option -u
          - Minor improvements:
            Skip details of uninstalled memory modules
            Don't display the raw CPU ID in quiet mode
            Improve the formatting of the manual pages

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-23 11:35:15 +00:00
Erik Kapfer
e5a77641f3 Firewall initscript: Restore Tor IPTable rules by manual firewall restart
If the firewall will be manually restart via '/etc/init.d/firewall restart',
the IPTable rules for the Tor relay will be deleted since 'iptables_init' only
flushes and creates inbound and unbound chains for Tor but does not restore the
ruleset from Tor initscript.

For reference and tests please see -->
https://community.ipfire.org/t/tor-stop-working-without-stop-the-process-or-give-an-error-message/10697

Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-19 16:37:44 +00:00
Michael Tremer
b87cd867f7 network: Only try to restart collectd if it is running
This updated version of this script avoids any errors if collectd is not
running (yet) which might happen during the boot process.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-19 16:37:24 +00:00
Michael Tremer
f2d7d4ec16 collectd: Restart is required after reconnect
The "ping" plugin does not re-resolve the gateway IP address after
pinging it for the first time. For most people this won't be a big
problem, but if the default gateway changes, the latency graph won't
work any more.

In order to do re-resolve "gateway", the only way is to restart
collectd.

Fixes: #13522
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
2024-01-14 16:04:03 +00:00
Arne Fitzenreiter
ed5e80eb62 grub: update to 2.12 (final release version)
this should fix problems on systems installed on xfs

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-01-10 07:22:59 +01:00
Adolf Belka
cfb6d9c7fd postfix: Update to version 3.8.4 + prevent smtp smuggling
- Update from version 3.8.3 to 3.8.4
- Update of rootfile not required
- Permanent fix for smtp smuggling will be in version 3.9. However the fix has been
   backported into version 3.8.4 but with the default for the parameter of "no".
- This patch sets the defaults for all the main.cf parameters highlighted by Wietse
   Venema in http://www.postfix.org/smtp-smuggling.html
- Additionally the implementation of smtpd_forbid_bare_newline = yes has been added to
   the install.sh pak for postfix so that it will be included into any main.cf file being
   restored from backup. This parameter is available for the first time in 3.8.4 so will
   not be in any backup prior to this release and can therefore be safely applied to
   restored versions of main.cf.
- This fix in install.sh will be able to be removed when version 3.9 is released early
   in 2024 as the default for that parameter in that version onwards will then be "yes"
- Changelog
    3.8.4
	Security: with "smtpd_forbid_bare_newline = yes" (default
	 "no" for Postfix < 3.9), reply with "Error: bare <LF>
	 received" and disconnect when an SMTP client sends a line
	 ending in <LF>, violating the RFC 5321 requirement that
	 lines must end in <CR><LF>. This prevents SMTP smuggling
	 attacks that target a recipient at a Postfix server. For
	 backwards compatibility, local clients are excluded by
	 default with "smtpd_forbid_bare_newline_exclusions =
	 $mynetworks". Files: mantools/postlink, proto/postconf.proto,
	 global/mail_params.h, global/smtp_stream.c, global/smtp_stream.h,
	 smtpd/smtpd.c.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2024-01-08 10:00:02 +00:00
Adolf Belka
de1cd0d54d bash: Update the patches applied to bash
- Update the patches to include patches 16 to 21
- Update of rootfile not required
- Changelog
	patch 21: fix for expanding command substitutions in a word expansion in a
		  here-document
	patch 20: allow time reserved word as first token in command substitution
	patch 19: fix case where background job set the terminal process group
	patch 18: fix for returning unknown tokens to the bison parser
	patch 17: fix for optimizing forks when using the . builtin in a subshell
	patch 16: fix for a crash if one of the expressions in an arithmetic for command
		  expands to NULL

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2024-01-07 14:05:33 +00:00
Adolf Belka
4fc6f9cbe2 apache2: Apply patch to make work with updated libxml2
- libxml2 since version 2.12.0 has removed a variable that was specified in the apache
   apache mod_xml2enc code.
- This dependency caused the apache2 build to fail with the updated libxml2.
- This patch removes the dependency. It will be able to be removed when the next apache
   update is carried out as the patch was created from an apache commit.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2024-01-03 21:07:37 +00:00
Arne Fitzenreiter
73b04029c9 dracut: fix early_microcode put into ramdisk
the kernel has no CONFIG_MICROCODE_{AMD|INTEL} anymore so this patch change the check
to CONFIG_MICROCODE.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2023-12-20 08:44:10 +01:00
Arne Fitzenreiter
0348f6b23f Merge remote-tracking branch 'origin/master' into next 2023-12-19 17:55:21 +01:00
Arne Fitzenreiter
6c85ffbfd4 alsa: remove kernel module unload at uninstall
this sometimes result in unstable/crashing kernel.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2023-12-19 11:44:03 +01:00
Arne Fitzenreiter
cb58d049e0 alsa: don't report failed module loads
this will stop pakfire if the kernel was updated before the alsa update.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2023-12-19 11:35:53 +01:00
Arne Fitzenreiter
9d77a9a5cb installer: update filecount
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2023-12-07 10:19:37 +01:00
Arne Fitzenreiter
afede937d1 backupiso: bump IPFire version
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2023-12-06 11:06:01 +01:00
Arne Fitzenreiter
9c969555f1 kernel: purge unused patches
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2023-12-05 17:15:48 +00:00
Arne Fitzenreiter
95f9d9350d kernel: update to 6.6.2
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2023-12-05 17:15:48 +00:00
Peter Müller
2d88071356 ca-certificates: Remove obsolete patch for removing TrustCor's CAs
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2023-12-04 22:28:49 +00:00
Michael Tremer
c7b8f3631a apache2: Properly re-execute Apache on restart
Previously, we sent Apache a signal to relaunch itself which caused
Apache to kill all child processes, and re-execute them.

However, when updating glibc, any newly compiled modules could not be
loaded as Apache was running with the previous version of glibc until
the next reboot.

This change will now properly stop Apache and restart it which solves
this problem.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-11-27 11:24:00 +00:00
Arne Fitzenreiter
3273f4796a grub: update to 2.12-rc1
this is the first version that support booting linux kernel on
riscv. The release of the final version was delayed again and again
so i have bootstrapped the rc1 from the git and fixed the path in 25_bli.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2023-11-24 12:53:51 +00:00
Peter Müller
fc1ee4e1e2 OpenSSH: Update to 9.5p1
Please refer to https://www.openssh.com/releasenotes.html#9.5p1 for the
changelog of this version. The patch for fixing zlib version check has
now been amended upstream and can therefore be deleted from IPFire 2.x's
codebase.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2023-11-22 16:12:49 +00:00
Adolf Belka
f56b492193 linux-firmware: Updat6e to version 20231030
- Update from version 20230804 to 20231030
- Update of rootfile - process defined by Peter Mueller used on rootfile to identify
   changes and check if the entries were commented out in previous rootfile.
   This is second time that I have used this approach so probably still worthwhile for
   Peter to confirm I got it correct.
- Patch for amd family 19h removed as it is now included in the source tarball.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-11-22 15:19:38 +00:00
Adolf Belka
e979680572 mcelog: Update to version 196
- Update from version 181 to 196
- Update of rootfile not required
- Fix python call patch removed as correct python call now in the source tarball
- Changelog file is no longer used. Review of changes has to be done via the git repo.
   https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/log/

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-11-21 19:30:01 +00:00
Adolf Belka
ed1c441faa lua: Update to version 5.4.6
- Update from version 5.4.4 to 5.4.6
- Update of rootfile
- Updated version number in shared library patch
- Changelog
    5.4.6
	read overflow in 'l_strcmp'. Reported by Xmilia Hermit on 09 Jun 2023. existed
	 since 5.0 (at least). fixed in github.
	Call hook may be called twice when count hook yields. Reported by G.k Ray on
	 20 Jul 2023. existed since 5.4.0 (at least). fixed in github.
	Wrong line number for function calls. Reported by Thadeu de Paula on 20 Aug 2023.
	 existed since 5.2. fixed in github.
    5.4.5
	Changing the signature of 'lua_resetthread' broke ABI. Reported by Andrew Gierth
	 on 29 Apr 2023. fixed in 5.4.6. fixed in github

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-11-21 19:27:56 +00:00
Adolf Belka
c012d7c0b4 shadow: Update to version 4.14.2
- Update from version 4.13 to 4.14.2
- Update of rootfile not required
- Supress installation of groups patch updated for changed layout of source tarball
- Changelog
    4.14.2:
	    libshadow:
	        Fix build with musl libc.
	        Avoid NULL dereference.
	        Update utmp at an initial login
	    useradd(8):
	        Set proper SELinux labels for def_usrtemplate
	    Manual:
	        Document --prefix in chage(1), chpasswd(8), and passwd(1)
    4.14.1:
	    Build system:
	        Merge libshadow and libmisc into a single libshadow. This fixes
	        problems in the linker, which were reported at least in Gentoo.
    4.14.0
      This release includes some steps toward preparing for the Y2038 (e.g. removing
      lastlog conditionally), a great deal of removal of obsolete function checks (like
      rmdir), and overhaul of some string manipulation functions, of which there is
      more to come. And a great deal more. The abbreviated git log follows:
	Serge Hallyn: configure.ac: check for strlcpy
	Michael Vetter: Remove intree website
	Serge Hallyn: 4.14.0-rc4 pre-release
	Serge Hallyn: Releases: add etc/shadow-maint to distfiles
	Serge Hallyn: 4.14.0-rc3
	Iker Pedrosa: libmisc: include freezero
	Iker Pedrosa: libmisc: add freezero source code
	Iker Pedrosa: libmisc: add readpassphrase source code
	Iker Pedrosa: configure: add with-libbsd option
	Iker Pedrosa: man: include shadow-man.xsl in tarball
	Iker Pedrosa: man: include its.rules in tarball
	Iker Pedrosa: autogen: enable lastlog build
	Christian Göttsche: Add wrapper for write(2)
	Serge Hallyn: tag 4.14.0-rc2
	Michael Vetter: Add new files to libmisc_la_SOURCES
	Serge Hallyn: Add a make dist CI test
	Serge Hallyn: 4.14.0-rc1
	Serge Hallyn: remove xmalloc.c from POTFILES.in
	Iker Pedrosa: logoutd: add missing <utmp.h> include
	Iker Pedrosa: CI: compile old utmp interface in Fedora
	Iker Pedrosa: src: add SELINUX library
	Iker Pedrosa: libmisc: conditionally compile utmp.c and logind.c
	Iker Pedrosa: lib: replace USER_NAME_MAX_LENGTH macro
	Iker Pedrosa: libmisc: call active_sessions_count()
	Iker Pedrosa: libmisc: implement active_sessions_count()
	Iker Pedrosa: utmp: update update_utmp()
	Iker Pedrosa: utmp: move update_utmp
	Iker Pedrosa: utmp: move failtmp()
	Iker Pedrosa: libmisc: implement get_session_host()
	Iker Pedrosa: configure: new option enable-logind
	xiongshenglan: shadow userdel: add the adaptation to the busybox ps in 01-kill_user_procs.sh
	Michael Vetter: chsh: warn if root sets a shell not listed in /etc/shells
	Michael Vetter: doc: mention ci workflow file to learn about deps
	Serge Hallyn: man/po/Makefile: add a comment to shadow-man-pages.pot
	Vegard Nossum: newgrp: fix potential string injection
	Todd Zullinger: lastlog: fix alignment of Latest header
	Iker Pedrosa: configure: fix lastlog check
	Alan D. Salewski: subuid.5: reference newusers(8) rather than newusers(1)
	Iker Pedrosa: CI: build lastlog in Fedora
	Iker Pedrosa: man: conditionally build lastlog documentation
	Iker Pedrosa: usermod: conditionally build lastlog functionality
	Iker Pedrosa: useradd: conditionally build lastlog functionality
	Iker Pedrosa: login: conditionally build lastlog functionality
	Iker Pedrosa: lastlog: stop building by default
	Iker Pedrosa: CI: update debian repos
	Bernd Kuhls: Fix yescrypt support
	Jeffrey Bencteux: chgpasswd: fix segfault in command-line options
	Alejandro Colomar: gpasswd(1): Fix password leak
	Alejandro Colomar: src/useradd.c: create_mail(): Cosmetic
	Alejandro Colomar: src/useradd.c: create_home(): Cosmetic
	Alejandro Colomar: src/useradd.c: create_home(): Cosmetic
	Alejandro Colomar: src/useradd.c: create_home(): Cosmetic
	Alejandro Colomar: src/useradd.c: close_group_files(): Cosmetic
	Alejandro Colomar: src/useradd.c: check_uid_range(): Cosmetic
	Jaroslav Jindrak: build: link passwd, chpasswd and chage against libdl
	Jaroslav Jindrak: configure: check whether fgetpwent_r is available before marking xprefix_getpwnam_r as reentrant
	Jaroslav Jindrak: passwd: fall back to non-PAM code when prefix is used
	Jaroslav Jindrak: chpasswd: fall back to non-PAM code when prefix is used
	Jaroslav Jindrak: chpasswd: add --prefix/-P options
	Jaroslav Jindrak: chage: add --prefix/-P options
	Jaroslav Jindrak: passwd: Respect --prefix/-P options
	Michael Vetter: prefix: add prefix support
	Iker Pedrosa: strtoday: remove unnecessary cast
	Alejandro Colomar: Use temporary variable
	Alejandro Colomar: realloc(NULL, ...) is equivalent to malloc(...)
	Alejandro Colomar: Simplify allocation APIs
	Christian Göttsche: Drop alloca(3)
	Christian Göttsche: usermod: fix off-by-one issues
	Alejandro Colomar: libmisc/csrand.c: Update comments
	Alejandro Colomar: lib/nss.c: Fix use of invalid p
	Alejandro Colomar: lib/nss.c: Fix use of uninitialized p
	Alejandro Colomar: Centralize error handling
	Alejandro Colomar: Second verse, it gets worse; it gets no better than this
	Alejandro Colomar: ROFL: Rolling on the floor looping
	Alejandro Colomar: This ain't no loop
	Iker Pedrosa: newusers: Improve error message
	Martin Kletzander: ch(g)passwd: Check selinux permissions upon startup
	Skyler Ferrante: Check if crypt_method null before dereferencing
	Alejandro Colomar: xgetXXbyYY: Simplify elifs
	Alejandro Colomar: xgetXXbyYY: Centralize error handling
	Alejandro Colomar: xgetXXbyYY: tfix
	Samanta Navarro: xgetXXbyYY: Avoid duplicated error handling block
	Samanta Navarro: xgetXXbyYY: Handle DUP_FUNCTION failure
	Serge Hallyn: sub_[ug]id_{add,remove}: fix return values
	Martin Kletzander: usermod: Small optimization using memmove for password unlock
	Alejandro Colomar: Reorder logic to improve comprehensibility
	Alejandro Colomar: newusers: Fail early
	Alejandro Colomar: newusers: Add missing error handling
	Samanta Navarro: libmisc: Use safer chroot/chdir sequence
	Samanta Navarro: su: Prevent stack overflow in check_perms
	Samanta Navarro: subsystem: Prevent endless loop
	Serge Hallyn: def_load: avoid NULL deref
	Serge Hallyn: def_load: split the econf from non-econf definition
	Tobias Stoeckmann: Plug econf memory leaks
	Samanta Navarro: chsh: Verify that login shell path is absolute
	Samanta Navarro: process_prefix_flag: Drop privileges
	bubu: Update French translations
	Samanta Navarro: get_pid.c: Use tighter validation checks
	Markus Hiereth: replace inadequate German translation of login error message
	Markus Hiereth: Update German translations
	Samanta Navarro: Remove some static char arrays
	Samanta Navarro: commonio: Use do_lock_file again
	Serge Hallyn: Fix broken docbook translations
	ed neville: open with O_CREAT when lock path does not exist
	Samanta Navarro: commonio_open: Remove fcntl call
	Samanta Navarro: commonio_lock_nowait: Remove deprecated code
	Samanta Navarro: login_prompt: Simplify login_prompt API
	Samanta Navarro: login_prompt: Use _exit in signal handler
	Samanta Navarro: login_prompt: Do not parse environment variables
	Samanta Navarro: libmisc/yesno.c: Fix regression
	Alejandro Colomar: libmisc, man: Drop old check and advice for complex character sets in passwords
	Christian Göttsche: semanage: disconnect to free libsemanage internals
	Christian Göttsche: commonio: free removed database entries
	ed neville: run_parts for groupadd and groupdel
	lilinjie: fix typos
	Alejandro Colomar: libmisc/yesno.c: Use getline(3) and rpmatch(3)
	Samanta Navarro: newgrp/useradd: always set SIGCHLD to default
	Serge Hallyn: Update AUTHORS to add Marek Michałkiewicz
	Samanta Navarro: Read whole line in yes_or_no
	Christian Göttsche: useradd/usermod: add --selinux-range argument
	Alejandro Colomar: CI: Make build logs more readable
	Iker Pedrosa: ci: remove explicit fedora dependencies
	Iker Pedrosa: README: add reference to contribution guidelines
	Iker Pedrosa: doc: add contributions introduction
	Iker Pedrosa: doc: add license
	Iker Pedrosa: doc: add releases
	Iker Pedrosa: doc: add Continuous Integration
	Iker Pedrosa: doc: add tests
	Iker Pedrosa: doc: add coding style
	Iker Pedrosa: doc: add build & install
	Serge Hallyn: trivial: vipw.8: fix grammar
	Christian Göttsche: sssd: skip flushing if executable does not exist
	Christian Göttsche: Overhaul valid_field()
	Martin Kletzander: semanage: Do not set default SELinux range
	Michael Vetter: Fix typo in groupadd usage
	Christian Göttsche: ci: update Differential ShellCheck
	tomspiderlabs: Added control character check
	Mike Gilbert: usermod: respect --prefix for --gid option
	Alejandro Colomar: Fix su(1) silent truncation
	Alejandro Colomar: Simplify is_my_tty()
	Alejandro Colomar: Fix is_my_tty() buffer overrun
	Alejandro Colomar: Add STRLEN(): a constexpr strlen(3) for string literals
	Alejandro Colomar: Fix crash with large timestamps
	Paul Eggert: Prefer strcpy(3) to strlcpy(3) when either works
	Paul Eggert: Fix change_field() buffer underrun
	Paul Eggert: Omit unneeded test in change_field()
	Paul Eggert: Simplify change_field() by using strcpy
	skyler-ferrante: Fix null dereference in basename
	Iker Pedrosa: CI: script for local container build
	Iker Pedrosa: CI: build project in containers
	Iker Pedrosa: container: add fedora
	Iker Pedrosa: container: add debian
	Iker Pedrosa: container: add alpine
	Iker Pedrosa: SECURITY.md: add Iker Pedrosa
	Christian Göttsche: selinux: use type safe function pointer assignment
	Christian Göttsche: Use strict prototype in definition
	Vinícius dos Santos Oliveira: Add .editorconfig
	Serge Hallyn: run_some: fix shellcheck warning
	Serge Hallyn: fail on any run_some test failure
	Serge Hallyn: ignore first test in run_some
	Serge Hallyn: swap first two tests - does the first one still fail?
	Serge Hallyn: tests: remove some github runner PATH tweaking
	Alejandro Colomar: tests: Support git-worktree(1)
	Serge Hallyn: tests: newuidmap and newgidmap: update expected fail message
	Serge Hallyn: libsubid: include alloc.h
	Serge Hallyn: run_some: log stderr
	Vinícius dos Santos Oliveira: Validate fds created by the user
	Serge Hallyn: get_pidfd_from_fd: return -1 on error, not 0
	Serge Hallyn: g-h-a workflow: workaround
	Serge Hallyn: Fix regression in some translation strings
	Iker Pedrosa: lib: bit_ceil_wrapul(): stop recursion
	Iker Pedrosa: lib: define ULONG_WIDTH if non-existent
	maqi: Update translation
	Serge Hallyn: newuidmap and newgidmap: support passing pid as fd
	Alejandro Colomar: Fix use-after-free of pointer after realloc(3)
	Alejandro Colomar: Use safer allocation macros
	Alejandro Colomar: libmisc: Add safer allocation macros
	Alejandro Colomar: Use xreallocarray() instead of its pattern
	Alejandro Colomar: Use reallocarrayf() instead of its pattern

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-11-21 19:21:28 +00:00
Adolf Belka
2454246ecc hwdata: Update pci.ids to 2023.09.22 and usb.ids to 2023.11.08
- Update pci.ids from version 2023.08.12 to 2023.09.22
- Update usb.ids from version 2023.08.24 to 2023.11.08

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-11-21 19:19:49 +00:00
Adolf Belka
5197e7bc6a dhcpcd: Update to version 10.0.4
- Update from version 10.0.2 to 10.0.4
- Update of rootfile not required
- Two patches removed as the fixes have been included in the source tarball
- Changelog
    10.0.4
	    privsep: allow __NR_mmap2 call by @olegartys in #253
	    privsep: allow __NR_clock_gettime32 syscall by @olegartys in #254
	    compat/arc4random.c: use memset instead of explicit_bzero by
	     @ffontaine in #252
	    privsep: avoid SIGPIPE errors when scripts write to stderr/stdout after
	     dhcpcd is daemonised
    10.0.3
	    Do not crash on dhcpcd test run by @pemensik in #231
	    Add automated CI builds for Ubuntu, OpenBSD, FreeBSD and NetBSD by
	     @tobhe in #229
	    dhcpcd: Fix off-by-one overflow when read() writes full BUFSIZ by
	     @tobhe in #236
	    privsep: fix strlcpy overflow in psp_ifname by @tobhe in #239
	    ci: execute tests after successful build by @tobhe in #243
	    compat: update arc4random() to newer chacha20 based version from OpenBSD by
	     @tobhe in #227
	    Support libcrypto for hmac and sha256 by @tobhe in #223
	    Use a local variable instead of the optind by @gotthardp in #86
	    Send correct amount of used buffer for prefix exclude option by
	     @ctomahogh in #250
	    compat: use OpenSSL RAND_priv_bytes() for entropy by @tobhe in #248

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-11-21 19:08:49 +00:00
Michael Tremer
0f7cdd7661 Merge branch 'master' into next 2023-10-11 07:50:21 +00:00
Michael Tremer
c48872ef76 curl: Fix CVE-2023-38545
https://curl.se/docs/CVE-2023-38545.html

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-10-11 07:47:47 +00:00
Adolf Belka
ebcfcd1003 udev: Update to version 3.2.14
- Update from version 3.2.12 to 3.2.14
- Update of rootfile not required
- This version update includes the patches previously used to add the dummies for tags
   and to update to udev version 251 which is bugfix #253
- Changelog
    3.2.14
	    Clear sysattr cache if a null pointer is passed by @NaofumiHonda in #255
	    Add /usr/local/lib/udev/rules.d by @bbonev in #260
	    Fix := not preventing further assignments to RUN by @bbonev in #257
	    Let libudev find hwdb.bin under UDEV_HWDB_BIN by
	     @vivien-consider-dropping-github in #264
	    Add a generic --output argument to udevadm hwdb by
	     @vivien-consider-dropping-github in #263
	    Dynamically get the udevadm hwdb files with a path variable by
	     @vivien-consider-dropping-github in #262
	    More wording fixes for the manual page for udev by
	     @vivien-consider-dropping-github in #265
	    Add missing API from 247 by @bbonev in #253
	    Ensure that standard file descriptors are open by @bbonev in #266

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-10-09 08:17:26 +00:00
Adolf Belka
375d921d00 sysvinit: Update to version 3.08
- Update from version 3.00 to 3.08
- Update of rootfile
- All the other patches and sed modifications are now built mintyo the source tarball,
   except for the mountpoint patch which is stilol needed
- Changelog
    3.08
	This release focuses on three changes which are basically imports of patches from Gentoo. Special thanks to floppym for supplying these.
	    Applied a patch from floppm which adds kexec option to the halt command. This can be used as "halt -k".
	    floppym provided patch which causes the halt command to call "shutdown -h -H" instead of "shutdown -h" when halt is invoked without parameters. This forces the shutdown command to set the INIT_HALT variable and assume, unless other conditions apply, that the "halt" call really wants to halt the machine and INIT_HALT should be set. In other words we assume halt wants to halt unless told otherwise.
	     Addresses downstream Gentoo bug ID 911257.
	    Updated halt documentation and help output to display parameters in alphabetical order.
    3.07
	The 3.07 release of SysV init mostly introduces fixes and improvements for the
	 killall5 and pidof programs. (These are actually the same program, but are
	 invoked with two different names, which result in different behaviour. The main
	 highlights in this release are:
		Fixed killall5 so that processes in the omit list are not sent any
		 signals, including SIGSTOP.
		Fixed usage message for killall5 to be more accurate.
		pidof was not returning PIDs of programs which were launched using a
		 symbolic link. This has been fixed so programs run from a symbolic link
		 show up in process lists.
    3.06
	    Mark Hindley fixed typo in es.po
	    Mark Hindley cleaned up translation code in src/Makefile.
	    Drop sulogin from Debian build. Removed libcrypt-dev dependency.
	    Fixed pt translation pages which were failing due to mis-matched open/close
	     tags.
	    Makefile now respects ROOT prefix when setting up pidof-to-killall5 symbolic
	     link.
	    Removed redundant translation files from man directory.
	    Makefile now respects DESTDIR. User can specify either ROOT= or DESTDIR= to
	     set install prefix.
    3.05
	This release (3.05) focuses on two things:
	    Updating the translation framework.
	    Fixing compiling issues on various systems.
	The second point, compiling, encompasses a few minor changes to get SysV init to
	 build properly on GNU Hurd, systems without certain GNU assumptions, and systems
	 running the latest glibc library (2.36 at time of writing).
    3.04
	This release contains one minor fix which allows the bootlogd code to properly
	 compile on Debian's GNU Hurd branch.
    3.03
	This release includes two minor changes. One is fixing a typo in the init manual
	 page (init.8). this fix was offered by Mark hindley.
	Mark, and a few other people, also pointed out that a fix in 3.02 for bootlogd
	 introduced reliance on a defined PATH_MAX constant. This is used elsewhere in
	 the code, but is not explicitly defined in bootlogd, which caused bootlogd to
	 not build properly on GNU Hurd and musl C systems. This has been fixed.
    3.02
	    Added q and Q flags to synopsis in shutdown manual page.
	    Applied fixes for markup and spacing in manual pages.
	     Patch provided by Mario Blattermann.
	    Added translation framework (po4a) from Mario Blttermann.
	    Added Makefile for man/ directory. Will handle translations
	     and substitutions.
	    Applied new translations for multiple languages from Mario Blattermann.
	    Added ability to use "@" symbol in command named in the inittab file. This
	     treats commands as literal and does not launch a shell to interpret them.
	    Updated inittab manual page to include overview of symbols which trigger
	     a shell interpretor and how to disable them using the @ symbol.
	    Introduced change which adds error checking in bootlogd when performing
	     chdir(). - Provided by Alexander Vickberg
	    Add check for console using TIOCGDEV on Linux systems in bootlogd to
	     make finding console more robust. - Provided by Alexander Vickberg
    3.01
	    Default to showing processes in the uninterruptable state (D).
	     The -z flag no longer affects whether processes in D state are shown.
	     The -z flag does still toggle whether zombie (Z) processes are shown.
	    Removed unnecessary check which is always true from init tab parsing.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-10-09 08:17:23 +00:00
Arne Fitzenreiter
64d0f1a074 grub: fix mkimage on riscv64 and fix cdrom
the riscv64 image needs more than 1.44MB

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-10-09 08:16:24 +00:00
Arne Fitzenreiter
e275a07b67 kernel: update to 6.1.56
this also builds the dtb files on riscv64

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-10-09 08:13:02 +00:00
Michael Tremer
aabdf04299 Merge branch 'master' into next 2023-10-04 12:58:12 +00:00
Michael Tremer
b9215da1ed glibc: Import patches from upstream
This patch imports the latest patches from the 2.38 branch:

  https://git.ipfire.org/?p=thirdparty/glibc.git;a=shortlog;h=refs/heads/release/2.38/master

This includes a fix for a buffer overflow in the tunables code
(CVE-2023-4911) as well as  CVE-2023-4806 and CVE-2023-5156.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-10-04 12:54:17 +00:00
Adolf Belka
01ed9ff321 urlfilterctrl: Fix bug#10649 - add option to remove urlfilter from fcron directories
- Currently if the urlfilter update is enabled then autoupdate.pl is renamed urlfilter and
   added into either the daily, weekly or monthly fcron directoiries. If the update is
   disabled then the urlfilter update script stays in the directory and is not removed.
- This patch adds in the option of remove to the urlfilterctrl program. The first part
   of the urlfilterctrl.c code removes any existing symlinks so all that needs to be done
   for the remove option is to not add any symlinks to the fcron directories.
- Confirmed in a vm testbed that the current approach leaves the symlink in place. Installed
   the changes from this and the previous patch and confirmed that when the url update is
   disabled the symlink is removed.

Fixes: Bug#10649
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-09-28 09:39:26 +00:00
Adolf Belka
ef320681e9 procps: Update to version v4.0.4
- Update from version v4.0.3 to v4.0.4
- Update of rootfile
- Removal of patch to fix build failures with gettext-0.22 as this has been incorporated
   into the source tarball.
- Changelog
    procps-ng-4.0.4
	  * library (API & ABI unchanged)
	    increment revision: 0:2:0
	    tolerates all potential 'cpuinfo' formats              issue #272
	    restore the proper main thread tics valuations         issue #280
	    Remove myself from proc count                          merge #193
	    Refactor the escape code                               Debian #1035649
	  * free: -L one line output                               issue #156
	  * pgrep: Use only --signal option for signal             Debian #1031765
	  * pgrep: suppress >15 warning if using regex             Debian #1037450
	  * pidof: Add -t option to show threads                   merge #190
	  * pmap: Reset totals between processes                   issue #298
	  * ps: fixed missing or corrupted fields with -m option   Debian #1036631, issue #279
	  * ps: Fix buffer overflow in -C option CVE-2023-4016     Debian #1042887, issue #297
	  * ps: Add --signames to show signal names in masks       merge #98
	  * sysctl: -N show names                                  merge #198, RH #2222056
	  * tests: dont compare floats with ==                     issue #271
	  * tests: skips tests if maps missing                     merge #197, Gentoo #583036
	  * top: bad command line arguments yield EXIT_FAILURE     issue #273
	  * top: avoids keystroke induced '%Cpu' distortions
	  * top: includes VM (guest) tics in 'system' overhead     issue #274
	  * top: includes VM (guest) tics with '!' toggle          merge #179
	  * top: lessen summary cpu distortions on first display   merge #180
	  * top: better backspace handling wtth line edits         issue #278
	  * vmstat: Print guest time in non-wide mode
	  * w: Fix musl UT_HOSTSIZE issue
	  * watch: Add color support at compile time               issue #296

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-09-12 16:18:08 +00:00