Commit Graph

16725 Commits

Author SHA1 Message Date
Michael Tremer
b71a7fb97d Partially revert "vpnmain.cgi: Use new system methods"
This reverts commit a81cbf6127.

It was no longer possible to generate the root/host certificates.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-13 15:33:42 +00:00
Michael Tremer
8c946d1c0a ovpnmain.cgi: Join certificate output before &Header::cleanhtml();
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-13 15:33:40 +00:00
Michael Tremer
dd2c09fd6b core158: Ship etherwake
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-12 16:23:54 +00:00
Michael Tremer
37ef9fe4e0 stripper: Handle capabilities
During the build process, we set capabilities to elevate privileges of
certain progrems (e.g. ping). These have been removed during the build
process because of strip.

This patch collects any capabilities from all files that are being
stripped and restores them after calling strip.

Fixes: #12652
Reported-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-10 15:21:55 +00:00
Michael Tremer
db7ef52a91 core158: Run sshctrl
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-09 15:24:33 +00:00
Peter Müller
d0ba077ed3 Pakfire: call "sync" in function.sh after having extracted archives
After upgrading to Core Update 157, a few number of users reported their
systems to be unworkable after a reboot. Most of them (the systems, not
the users) were apparently missing the new Linux kernel in their Grub
configuration, causing a non-functional bootloader written to disk.

While we seem to be able to rule out issues related to poor storage
(SDDs, flash cards, etc.) or very high I/O load, it occurred to me we
are not calling "sync" after having extracted a Core Update's .tar.gz
file.

This patch therefore proposes to do so. It is a somewhat homeopathic
approach, though, but might ensure all parts of the system to have
properly processed the contents of an extracted archive. While we cannot
even reasonably guess it will solve the problem(s) mentioned initially,
doing so cannot hurt either.

See also:
https://community.ipfire.org/t/after-update-ipfire-to-157-no-boot/5641/45

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-09 13:54:39 +00:00
Michael Tremer
a26986a3b0 core158: Ship pakfire functions.sh
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-09 13:25:41 +00:00
Michael Tremer
c639ab1d31 pakfire: Do not delay directory restore
https://www.gnu.org/software/tar/manual/tar.html#Directory-Modification-Times-and-Permissions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-09 13:25:00 +00:00
Michael Tremer
b6cad4d231 pakfire: Put tar options into an array
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-09 13:23:56 +00:00
Michael Tremer
6f15b0cbe0 pakfire.cgi: Sleep after running a pakfire command
This is required to have better chances in the race of showing the log
output afterwards.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-09 13:19:08 +00:00
Michael Tremer
124926ee86 pakfire.cgi: Remove confusing dots in install message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-09 13:05:13 +00:00
Michael Tremer
75ee0279ec pakfire.cgi: Pass packages to install/uninstall as array
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-09 13:04:14 +00:00
Michael Tremer
0fd28c360e fireinfo.cgi: Fix kernel version
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-09 12:56:17 +00:00
Stefan Schantl
1d32c50e03 ddns.cgi: Fix sanity check logic.
The input validation did not work in the proper way. It allways
reported "No password" when using a provider which supports token and
the token has been given.

This of course is wrong and leaded to unuseable providers.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-07 09:34:31 +00:00
Michael Tremer
92a5ad86e7 core158: Ship ppp
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-02 14:43:01 +00:00
Michael Tremer
2d6e633d7f Revert "ppp: update to 2.4.9"
This reverts commit 0cd9215b56.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-02 14:38:28 +00:00
Michael Tremer
33cfcae627 aws-cli: Depend on python3-six
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-01 17:16:36 +00:00
Michael Tremer
5996c28157 Revert "python-six: Removal of python2 & 3 addon versions of six"
This reverts commit 3a61ae73fa.

This module is required by awscli.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-01 17:16:09 +00:00
Michael Tremer
29e59d8c3e core158: Fully terminate apache before restarting it
Asking apache to restart itself fails when the binary is changed and
some symbols cannot be resolved. We therefore terminate all processes
and start them again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-01 10:10:17 +00:00
Michael Tremer
17f0494bf2 core158: Fix name of vnstat initscript
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-01 10:09:40 +00:00
Michael Tremer
0a48e5694b core158: Actually drop motion instead of monit
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-28 19:29:27 +00:00
Michael Tremer
c304035042 core158: Uninstall all dropped add-ons
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-28 17:32:52 +00:00
Stéphane Pautrel
f38464e9fd Update French translation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-28 16:12:21 +00:00
Michael Tremer
10f012edff Revert "OpenSSH: restrict file permissions for sshd_config to 0600"
This reverts commit a9fb87809e.

This prevents the SSH configuration being parsed by the web user
interface.

Reported-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-24 17:45:17 +00:00
Michael Tremer
addeeb1f79 Revert "ncat: Update to 7.91"
This reverts commit ee3b6ba0c7.

ncat segfaults straight away (#12647)

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-24 09:19:28 +00:00
Stefan Schantl
274ca65bc5 ovpnmain.cgi: Fix typos.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-22 13:36:40 +00:00
Stefan Schantl
b959b9f5a6 ovpnmain.cgi: Call correct system_output() function.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-22 13:36:37 +00:00
Michael Tremer
27ca856f72 Merge branch 'core157' 2021-06-21 19:41:25 +00:00
Michael Tremer
05de8ec3c8 core157: Ship lua
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-21 19:39:30 +00:00
Stefan Schantl
f560408053 ovpnmain.cgi: Fix detection of used DH key lenght.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-21 17:18:26 +00:00
Stefan Schantl
016859ffe4 vpnmain.cgi: Fix typo.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-21 17:16:41 +00:00
Stefan Schantl
8f73d902e3 pppsetup.cgi: Fix typos.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-21 17:16:00 +00:00
Michael Tremer
556edb5adc Merge remote-tracking branch 'origin/next' 2021-06-21 10:04:11 +00:00
Matthias Fischer
4b25f1d86d nano: Update to 5.8
For details see:
https://www.nano-editor.org/news.php

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-20 12:37:59 +00:00
Matthias Fischer
9e1f2150df knot: Update to 3.0.7
For details see:
https://www.knot-dns.cz/2021-06-16-version-307.html

Features:

        knotd: new configuration policy option for CDS digest algorithm setting #738
        keymgr: new command for primary SOA serial manipulation in on-secondary signing mode

Improvements:

        knotd: improved algorithm rollover to shorten the last step of old RRSIG publication

Bugfixes:

        knotd: zone is flushed upon server start, despite DNSSEC signing is up-to-date
        knotd: wildcard nonexistence is proved on empty-non-terminal query
        knotd: redundant wildcard proof for non-authoritative data in a reply
        knotd: missing wildcard proofs in a wildcard-cname loop reply
        knotd: incorrectly synthesized CNAME owner from a wildcard record #715
        knotd: zone-in-journal changeset ignores journal-max-usage limit #736
        knotd: incorrect processing of zone-in-journal changeset with SOA serial 0
        knotd: broken initialization of processing workers if SO_REUSEPORT(_LB) not available
        kjournalprint: reported journal usage is incorrect #736
        keymgr: cannot parse algorithm name ed448 #739
        keymgr: default key size not set properly
        kdig: failed to process huge DoH responses
        libknot/probe: some corner-case bugs

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-20 12:37:48 +00:00
Peter Müller
d3d2261c65 Tor: update to 0.4.6.5
Please refer to the .tar.gz's ReleaseNote file for the full changelog
since version 0.4.5.8; it is too large to include it here.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-20 12:37:42 +00:00
Stefan Schantl
5e99660d7d speed.cgi: Add requirement for general-functions.pl.
The CGI now requires the general-functions library, because the
get_red_interface() function is used.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-20 12:37:33 +00:00
Stefan Schantl
6239e587f0 memory.cgi: Fix missing qoutes.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-20 12:37:29 +00:00
Michael Tremer
de6fd0881f Drop obsolete files from bluetooth package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-18 16:17:27 +00:00
Michael Tremer
2a52353f3c general-functions.pl: Explicitely call new system function
Perl seems to just "guess" that someone no longer wants to use the
builtin "system" command when there is a function with the same name.

I have no idea what kind of liquid they are drinking, but because of the
side effects of that stuff, we explicitely call our system() function.

Not that that would be necessary, but why not waste a couple more CPU
cycles?

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-18 15:12:53 +00:00
Michael Tremer
f1fc2193a7 Bump release of all packages with CGI files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-18 15:08:57 +00:00
Peter Müller
e981b751d1 proxy.cgi: Suppress Squid version by default
While hiding version information does not come with any _actual_
security improvements, it is generally a good thing to do so by default:
Attackers will still be able to reasonably guess or enumerate the
software version running, but need to conduct additional effort to do
so, hence more likely raising alerts and drawing attention on their
operation.

In addition, we suppress version details somewhere else in IPFire 2.x by
default, too (e. g. Unbound and Apache), so we can justify this patch by
aiming to stay consistent, I guess. :-)

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-18 08:47:36 +00:00
Michael Tremer
270d7c0d37 core158: Ship web-user-interface
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-17 20:12:32 +00:00
Michael Tremer
46443100e0 Merge branch 'perl-system' into next 2021-06-17 20:11:47 +00:00
Stefan Schantl
508547f98d hardwaregraphs.cgi: Perform all sensor lookups in pure perl.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-17 20:11:37 +00:00
Stefan Schantl
f6340997aa services.cgi: Redesign isautorun() because shell globbing cannot used anymore.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-17 20:11:37 +00:00
Stefan Schantl
e2839b1a2c remote.cgi: Fix splitting output from ssh-keygen.
The split function requires an string as input.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-17 20:11:37 +00:00
Stefan Schantl
5410fcbc45 dhcp.cgi: Fix typo and displaying advanced options syntax.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-17 20:11:37 +00:00
Stefan Schantl
5153fcc9f1 fireinfo.cgi: Fix read-in profile data.
To read-in the whole file content the data type needs to be an array.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-17 20:11:37 +00:00
Stefan Schantl
276f938b09 time.cgi: Get and manipuate date and time in pure perl
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-17 20:11:37 +00:00