Commit Graph

15390 Commits

Author SHA1 Message Date
Stefan Schantl
07e42be978 Adjust CGI files to work with latest location-function.pl changes.
Fixes #12515.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-09 14:07:21 +00:00
Stefan Schantl
427190d578 locations-functions.pl: Allow get_locations() function to skip special locations.
When adding "no_special_locations" to the function call as argument
the special locations liks "A1, A2, A3 etc" will not be added to the
returned array as available locations.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-09 14:07:14 +00:00
Stefan Schantl
5bf91fe1b1 location-functions.pl: Add get_continent_code() function.
This tiny function is used to get the continent code for a given
country code.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-09 14:07:09 +00:00
Stefan Schantl
f46fd07814 location-functions.pl: Add END block to release the database handle.
Reference #12515.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-09 14:07:00 +00:00
Stefan Schantl
b62d7e0cc7 location-functions.pl: Use a single script-wide db_handle.
Create and use a single script-wide database handle for libloc to
prevent from creating multiple ones.

This helps saving memory, especially on small systems.

Reference #12515.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-09 14:06:53 +00:00
Michael Tremer
9141282b09 core153: Ship dns.cgi
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-07 13:28:44 +00:00
Michael Tremer
0c6112b0b3 Run "./make.sh lang"
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-07 13:27:43 +00:00
Matthias Fischer
743808bb8e dns.cgi: Cosmetics and customized translations
Updated/deleted redundant, unused or missing translation strings for dns.cgi

Affected:  'dns', 'dns title', 'dns server', 'dns servers'

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-07 13:27:25 +00:00
Michael Tremer
f521556111 usb-modeswitch: Update rootfile
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-06 10:13:19 +00:00
smooky@v16.de
68fbcc0ee3 socat-1.7.3.4 added missing entry to make.sh
Entry to make.sh for socat added.
Was forgotten before and thus Pakfire distributed an empty addon.
Thanks to Matthias Fischer for clarifying why the distributed addon was empty.

Signed-off-by: Marcel Follert (Smooky) <smooky@v16.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:42:53 +00:00
Michael Tremer
731fc207de core153: Ship and apply changes to sysctl.conf
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:39:06 +00:00
Peter Müller
b474e87bb8 sysctl.conf: include PID in file names of generated core dumps
This is recommended by various Linux hardening guides in order to
prevent accidential overwriting of existing core dumps. While it has
probably little to no relevance to the average IPFire user, enabling it
won't harm and fixes a Lynis warning. :-)

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:37:53 +00:00
Peter Müller
02489761db libseccomp: update to 2.4.4
Full changelog obtained from: https://github.com/seccomp/libseccomp/releases/tag/v2.4.4

Version 2.4.4 - August 21, 2020

    Update the syscall table for Linux v5.8-rc7
    Fix double free when BPF generation fails
    Add aarch64 support for clone3, getrlimit, and setrlimit

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:34:22 +00:00
Michael Tremer
dcd0bcef7e core153: Ship curl
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:33:45 +00:00
Peter Müller
a30f94ac4a curl: update to 7.73.0
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:33:29 +00:00
Peter Müller
1cd27f38e6 lynis: update to 3.0.1
Full changelog obtained from: https://cisofy.com/changelog/lynis/#301

- Detection of Alpine Linux
- Detection of CloudLinux
- Detection of Kali Linux
- Detection of Linux Mint
- Detection of macOS Big Sur (11.0)
- Detection of Pop!_OS
- Detection of PHP 7.4
- Malware detection tool: Microsoft Defender ATP
- New flag: --slow-warning to allow tests more time before showing a
warning
- Test TIME-3185 to check systemd-timesyncd synchronized time
- rsh host file permissions

- AUTH-9229 - Added option for LOCKED accounts and bugfix for older bash
versions
- BOOT-5122 - Presence check for grub.d added
- CRYP-7902 - Added support for certificates in DER format
- CRYP-7931 - Added data to report
- CRYP-7931 - Redirect errors (e.g. when swap is not encrypted)
- FILE-6430 - Don't grep nonexistant modprobe.d files
- FIRE-4535 - Set initial firewall state
- INSE-8312 - Corrected text on screen
- KRNL-5728 - Handle zipped kernel configuration correctly
- KRNL-5830 - Improved version detection for non-symlinked kernel
- MALW-3280 - Extended detection of BitDefender
- TIME-3104 - Find more time synchronization commands
- TIME-3182 - Corrected detection of time peers
- Fix: hostid generation routine would sometimes show too short IDs
- Fix: language detection
- Generic improvements for macOS
- German translation updated
- End-of-life database updated
- Several minor code enhancements

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:33:14 +00:00
Michael Tremer
7f235b5b01 core153: Ship location-block.cgi
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:32:29 +00:00
Peter Müller
1367738dfc location-block.cgi: avoid unnecessary line break
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:31:44 +00:00
Michael Tremer
60985e75c8 tor: Bump package version
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:31:26 +00:00
Peter Müller
c63ea6cf49 tor.cgi: look up Tor relay country codes using libloc
Tor provides a function to resolve a relay's IP address into a country
code by taking advantage of a (heavily outdated) GeoIP database shipped
with it.

We should consequently use libloc for doing this, since it can be
confusing if those results differ from active connections in the
connection tracking CGI (where we _use_ libloc) and such tasks are why
we invented libloc in the first place. :-)

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:31:14 +00:00
Michael Tremer
f717db9172 core153: Ship tzdata
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:30:58 +00:00
Peter Müller
699c61109a tzdata: update to 2020d
The pacificnew file has been dropped by IANA. Adding the "factory" file
makes sense to have a reasonable default in case the time zone is
unknown, which, however, should not happen in case of IPFire 2.x - just
trying to be consistent here.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:30:38 +00:00
Michael Tremer
3bd2e64eb2 core152: Ship file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:29:44 +00:00
Peter Müller
f55a00fea3 file: update to 5.39
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-05 23:29:18 +00:00
Michael Tremer
0f2d70a313 core153: Ship bash
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-03 10:39:08 +00:00
Peter Müller
987826deb1 Bash: apply patches 12 through 18 as well
Those fix some unintentional behaviour regarding autocompletion I
stumbled across the other day. While there seems nothing security
relevant in this, it irons out a few bugs.

The full and up-to-date list of all Bash 5.0 patches can be obtained
from https://ftp.gnu.org/gnu/bash/bash-5.0-patches/ .

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-03 10:38:25 +00:00
Michael Tremer
1b2ddfa449 core153: Ship hwdata
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-03 10:37:56 +00:00
Peter Müller
3e2668dcfa hwdata: update PCI/USB databases
PCI IDs: 2020-10-25 03:15:01
USB IDs: 2020-08-26 20:34:09

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-03 10:37:01 +00:00
Arne Fitzenreiter
58b374c255 samba: remove pid at killproc in initscript
sometime a stale nmbd or smbd process prevent start of samba.
this change should kill all processes.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-03 10:36:59 +00:00
Michael Tremer
9c6fd77927 core153: Ship libarchive
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-30 16:29:39 +00:00
Michael Tremer
62efd2e9d2 libarchive: Ship on core system
Some tools link against this

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-30 16:29:02 +00:00
Michael Tremer
7f5d63c9e6 core153: Ship usb_modeswitch
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-30 15:20:33 +00:00
Ramax Lo
5cbc22ffa6 usb_modeswitch_data: update to 20191128
Signed-off-by: Ramax Lo <ramaxlo@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-30 15:18:04 +00:00
Ramax Lo
588f1223f2 usb_modeswitch: update to 2.6.1
Signed-off-by: Ramax Lo <ramaxlo@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-30 15:18:01 +00:00
Michael Tremer
9d29a52d7d core153: Ship NTP changes
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-30 15:11:05 +00:00
Michael Tremer
ef7b7b1af8 ntp: Allow CLI tools to talk to ntpd
Fixes: #12518
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-30 15:09:50 +00:00
Michael Tremer
d941effbcf ntp: Make /etc/ntp owned by root
This is required for ntpd being able to write its own drift file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-30 15:08:55 +00:00
Michael Tremer
4e49d67990 ntp: Move configuration into an own file
We should not write files like that in the LFS scripts.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-30 15:08:44 +00:00
Arne Fitzenreiter
e1f7cc9077 samba: update to 4.13.1
This is a security release in order to address
CVE-2020-14318 (Missing handle permissions check in SMB1/2/3 ChangeNotify),
CVE-2020-14323 (Unprivileged user can crash winbind) and
CVE-2020-14383 (An authenticated user can crash the DCE/RPC DNS with easily
crafted records).

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-10-30 07:35:23 +01:00
Michael Tremer
ae432a5f39 core153: Ship language files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-29 13:49:40 +00:00
Stefan Schantl
66970ccba3 suricata: Proper use confgured LDFLAGS.
Fixes #12513.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-29 11:30:23 +00:00
Stéphane Pautrel
5e1579023a Update French translation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-29 10:38:09 +00:00
Michael Tremer
af94be24fe core153: Ship logwatch
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-28 11:55:48 +00:00
Matthias Fischer
5e11ef0f67 logwatch: Added upstream patch for Bug #12242
Added upstream patch from:

https://sourceforge.net/p/logwatch/mailman/message/37106642/

and

https://sourceforge.net/p/logwatch/mailman/message/37106883/

Fixes the display of "Unknown Entries: reuse_lease: ... " in dhpcd-logs.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-28 11:55:16 +00:00
Michael Tremer
8a2105b284 core153: Ship updated index.cgi and vpnmain.cgi
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 18:38:35 +00:00
Michael Tremer
1f3f2d676e IPsec: Fix showing tunnels as connecting when they are established
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 18:38:03 +00:00
Michael Tremer
aa81aaf836 suricata: Link against libatomic on armv5tel
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 18:22:05 +00:00
Peter Müller
7e5045312c make.sh: no longer build Amavis, SpamAssassin and perl-Net-LibIDN
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 11:58:54 +00:00
Peter Müller
4ea6112ff0 drop perl-Net-LibIDN
This add-on was solely needed as a dependency for Amavis and is
therefore no longer needed.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 11:58:44 +00:00
Peter Müller
3e19f681a1 drop SpamAssassin add-on
This package has not been maintained well and is thereof outdated. At
the time of writing, we neither
(a) have a maintainer for this nor
(b) believe it is wise to run a full-featured content scanner on a
    firewall for security purposes. (We can make do with Postfix, as it
    is known for being a very robust MTA and providess less attack
    surface than something actually inspecting transferred messages.)

Thereof, this patch drops the SpamAssassin add-on. In case it is desired
in future versions of IPFire, it can be easily reverted, restoring the
functionality and behaviour before.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-27 11:58:35 +00:00