]> git.ipfire.org Git - people/mlorenz/ipfire-2.x.git/log
people/mlorenz/ipfire-2.x.git
3 years agolinux-firmware: Update to 20211216
Peter Müller [Tue, 4 Jan 2022 19:18:36 +0000 (20:18 +0100)] 
linux-firmware: Update to 20211216

There is no human-readable changelog provided. Please refer to
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/log/?h=20211216
for this version's commit history.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
3 years agolynis: Update to version 3.0.6
Adolf Belka [Sat, 1 Jan 2022 16:59:20 +0000 (17:59 +0100)] 
lynis: Update to version 3.0.6

- Update from 3.0.3 to 3.0.6
- Communication had with cisofy about the website and github versions of lynis and the
   lack of a signature file on github. Following response received from Michael Boelen
   of cisofy.
   "GitHub releases are different as they (the tarballs) are created by GitHub itself. So
    yes, the hashes will differ. In fact, the contents of the files will be different as
    well. These files are not signed by GitHub or us. We consider GitHub the work version.
    When we release a new version, we tag them on GitHub with a version as well. For the
    stable releases, use the version on the website."
- Based on the above the version used in this build is from the website. The signature
   file for version 3.0.6 on the website is now available.
- The lynis-3.0.6.tar.gz in the IPFire Source location will probably need to be removed
   as it is from the Github location and running ./make.sh uploadsrc will probably not
   upload the correct version because the filenames are the same. The tarball used in this
   patch was from https://cisofy.com/downloads/lynis/
- The lfs file modified to take account of the tarball expanding to just lynis without
   any version number. Also the rm -rf line has been modified due to the file differences
   with the previous Github versions.
- Update rootfile to take account of the plugin_pam_phase1 and plugin_systemd_phase1
   plugins not being included in the cisofy website version of the tarball. If these two
   plugins that are available for community users are needed then they have to be
   downloaded separately from cisofy via an email subscription to the notification test.
   All other plugins are only available for paying customers.
- Changelog
   Version 3.0.6 (2021-07-22)
    ### Added
     - OS detection: Artix Linux, macOS Monterey, NethServer, openSUSE MicroOS
     - Check for outdated translation files
    ### Changed
     - DBS-1826 - Check if PostgreSQL is being used
     - DBS-1828 - Test multiple PostgreSQL configuration file(s)
     - KRNL-5830 - Sort kernels by version instead of modification date
     - PKGS-7410 - Don't show exception for systems using LXC
     - GetHostID function: fallback options added for Linux systems
     - Fix: macOS Big Sur detection
     - Fix: show correct text when egrep is missing
     - Fix: variable name for PostgreSQL
     - German and Spanish translations extended
   Version 3.0.5 (2021-07-02)
    ### Added
     - OS detection of Arch Linux 32, BunsenLabs Linux, and Rocky Linux
     - CRYP-8006 - Check MemoryOverwriteRequest bit to protect against cold-boot attacks (Linux)
    ### Changed
     - ACCT-9622 - Corrected typo
     - HRDN-7231 - When calling wc, use the short -l flag instead of --lines (Busybox compatibility)
     - PKGS-7320 - extended to Arch Linux 32
     - Generation of host identifiers (hostid/hostid2) extended
     - Linux host identifiers are now using ip as preferred input source
     - Improved logging in several areas
   Version 3.0.4 (2021-05-11)
    ### Added
     - ACCT-9670 - Detection of cmd tooling
     - ACCT-9672 - Test cmd configuration file
     - BOOT-5140 - Check for ELILO boot loader presence
     - OS detection of AlmaLinux, Garuda Linux, Manjaro (ARM), and others
    ### Changed
     - BOOT-5104 - Add service manager detection support for runit
     - FILE-6430 - Report suggestion only when at least one kernel module is not in the blacklist
     - FIRE-4540 - Corrected nftables empy ruleset test
     - LOGG-2138 - Do not check for klogd when metalog is being used
     - TIME-3185 - Improved support for Debian stretch
     - Corrected issue when Lynis is not executed directly from lynis directory

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
3 years agoutil-macros: remove this package from IPFire
Adolf Belka [Thu, 24 Jun 2021 13:14:19 +0000 (15:14 +0200)] 
util-macros: remove this package from IPFire

- util-macros was originally installed as a build requirement for pciaccess which is
   a dependency of libvirt
- Along the way of updates of pciaccess the build requirement for util-macros is no
   longer needed. pciaccess built without problems with util-macros removed.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
3 years agoCore Update 163: Ship grep
Peter Müller [Tue, 4 Jan 2022 17:16:53 +0000 (18:16 +0100)] 
Core Update 163: Ship grep

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
3 years agogrep: Update to version 3.7
Adolf Belka [Mon, 27 Sep 2021 15:33:20 +0000 (17:33 +0200)] 
grep: Update to version 3.7

- Update from 3.6 to 3.7
- Update of rootfile not required
- Changelog
   * Noteworthy changes in release 3.7 (2021-08-14) [stable]
     ** Changes in behavior
        Use of the --unix-byte-offsets (-u) option now evokes a warning.
        Since 3.1, this Windows-only option has had no effect.
     ** Bug fixes
        Preprocessing N patterns would take at least O(N^2) time when too many
         patterns hashed to too few buckets. This now takes seconds, not days:
         : | grep -Ff <(seq 6400000 | tr 0-9 A-J)
         [Bug#44754 introduced in grep 3.5]
- More details of the changes can be found in the ChangeLog file in the source tarball.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
3 years agoCore Update 163: Ship gdb
Peter Müller [Tue, 4 Jan 2022 17:15:58 +0000 (18:15 +0100)] 
Core Update 163: Ship gdb

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
3 years agogdb: Update to version 11.1
Adolf Belka [Mon, 27 Sep 2021 15:33:02 +0000 (17:33 +0200)] 
gdb: Update to version 11.1

- Update from 10.2 to 11.1
- Update of rootfile
- Changelog
   Version 11.1 of GDB includes the following changes and enhancements:
    Support for ARM Symbian (arm*-*-symbianelf*) has been removed.
    Building GDB now requires GMP (The GNU Multiple Precision Arithmetic Library).
    New command-line options "--early-init-command" (or "-eix") and
     "--early-init-eval-command" (or "-eiex")
    GDB/MI Changes:
        New --qualified option for the '-break-insert' and '-dprintf-insert' commands.
        New --force-condition option for the '-break-insert' and '-dprintf-insert' commands.
        New --force option for the '-break-condition' command.
        The '-file-list-exec-source-files' now accepts an optional regular expression to
         filter the source files included in the result.
        The results from '-file-list-exec-source-files' now include a 'debug-fully-read'
         field to indicate if the corresponding source's debugging information has been
         partially read (false) or has been fully read (true).
    TUI Improvements:
        Mouse actions are now supported. The mouse wheel scrolls the appropriate window.
        Key combinations that do not have a specific action on the focused window are now
         passed to GDB.
    Python enhancements:
        Inferior objects now contain a read-only 'connection_num' attribute that gives the
         connection number as seen in 'info connections' and 'info inferiors'.
        New method gdb.Frame.level() which returns the stack level of the frame object.
        New method gdb.PendingFrame.level() which returns the stack level of the frame
         object.
        When hitting a catchpoint, the Python API will now emit a gdb.BreakpointEvent
         rather than a gdb.StopEvent. The gdb.Breakpoint attached to the event will have
         type BP_CATCHPOINT.
        Python TUI windows can now receive mouse click events. If the Window object
         implements the click method, it is called for each mouse click event in this
         window.
        New setting "python ignore-environment on|off"; if "on", causes GDB's builtin
         Python to ignore any environment variable that would otherwise affect how Python
          behaves (needs to be set during "early initialization" (see above).
        New setting "python dont-write-bytecode auto|on|off".
    Guile API enhancements:
        Improved support for rvalue reference values.
        New procedures for obtaining value variants: value-reference-value,
         value-rvalue-reference-value and value-const-value.
    New "qMemTags" and "QMemTags" remote protocol packets (associated with Memory Tagging).
    GDB will now look for the .gdbinit file in a config directory before looking for
     ~/.gdbinit. The file is searched for in the following locations: $XDG_CONFIG_HOME/gdb/gdbinit, $HOME/.config/gdb/gdbinit, $HOME/.gdbinit. On Apple hosts the search order is instead: $HOME/Library/Preferences/gdb/gdbinit, $HOME/.gdbinit.
    The "break [...] if CONDITION" command no longer returns an error when the condition
     is invalid at one or more locations. Instead, if the condition is valid at one or
     more locations, the locations where the condition is not valid are disabled.
    The behavior of the "condition" command is changed to match the new behavior of the
     "break" command.
    Support for general memory tagging functionality (currently limited to AArch64 MTE)
    Core file debugging now supported for x86_64 Cygwin programs.
    New "org.gnu.gdb.riscv.vector" feature for RISC-V targets.
    GDB now supports fixed point types which are described in DWARF as base types with a
     fixed-point encoding. Additionally, support for the DW_AT_GNU_numerator and
     DW_AT_GNU_denominator has also been added.
    Miscellaneous:
        New "startup-quietly on|off" setting; when "on", behaves the same as passing the
         "-silent" option on the command line.
        New "print type hex on|off" setting; when 'on', the 'ptype' command uses
         hexadecimal notation to print sizes and offsets of struct members. When 'off',
         decimal notation is used.
        The "inferior" command, when run without argument, prints information about the
         current inferior.
        The "ptype" command now supports "/x" and "/d", affecting the base used to print
         sizes and offsets.
        The output of the "info source" has been restructured.
        New "style version foreground | background | intensity" commands to control the
         styling of the GDB version number.
        Various debug and maintenance commands (mostly useful for the GDB developers)

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
3 years agoCore Update 163: Ship rng-tools
Peter Müller [Tue, 4 Jan 2022 17:14:50 +0000 (18:14 +0100)] 
Core Update 163: Ship rng-tools

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
3 years agorng-tools: Update to version 6.14
Adolf Belka [Wed, 1 Dec 2021 12:29:03 +0000 (13:29 +0100)] 
rng-tools: Update to version 6.14

- Update from 6.12 to 6.14
- Update of rootfile not required
- patch for building rng-tools also for i586 removed as 32 bit will no longer be EOL at
   end of 2021
- Building 6.14 caused an error for not finding librtlsdr. The same check is in the
   makefile in 6.12 but it does not get checked. I could not find why the check was being
   carried out in 6.14 - it was not due to the removal of the patch. In the end I added
   the --disable-rtlsdr option to configure and this allowed the build to occur without
   the check for the prescence of librtlsdr being carried out.
- Changelog
   rng-tools 6.14
    Bug Fixes:
      Fixed a null pointer deref in nistbeacon entropy source
      fixed some confguration tests
      clarified some rngd behavior in the man page
      update init code to do proper logging
      various covscan fixes
      fixed a memory leak in jitter entropy source
      fixed possible NULL deref in rdrand source
      various fixed in openssl mangling code
      added randstat binary to build
      minor modernizations to configure.ac
   rng-tools 6.13
    Features:
      Support rndr instruction on arm
      Support jitter software timer on coarse time systems
    Bug Fixes:
      Merged all openssl use into a single helper library
      Improved console output readability

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoCore Update 163: Ship e2fsprogs
Peter Müller [Tue, 4 Jan 2022 17:11:49 +0000 (18:11 +0100)] 
Core Update 163: Ship e2fsprogs

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
3 years agoe2fsprogs: Update to version 1.46.5
Adolf Belka [Mon, 3 Jan 2022 12:45:29 +0000 (13:45 +0100)] 
e2fsprogs: Update to version 1.46.5

- Update from 1.46.3 to 1.46.5
- Update of rootfile not required
- Changelog
  1.46.5 (December 30, 2021)
    Updates/Fixes since v1.46.4:
    UI and Features
     When resizing a file system and the inode count exceeds the 2**32
      maximum, if resize2fs can successfully perform the resize by dropping
      the last block group, resize2fs will do that in order to allow the file
      system grow operation to succeed.  For example, using the default inode
      ratio size of 16k, this will allow a successful resize to 64TB - 128MB
      when the storage device is 64TB.
    Fixes
     Avoid a potential infinite loop in resize2fs -P when the file system is
      corrupted (introduced in e2fsprogs 1.45.5).  (Addresses github issue
      https://github.com/tytso/e2fsprogs/issues/94)
     E2fsck now updates the bg_checksum after fixing problems in the block
      group descriptor, which eliminates some unnecessary messages printed or
      asked of the system administrator.
     Fixed some potential deadlock problems in the unix_io handler in the case
      of I/O errors.  The fix should also improve the performance of parallel
      bitmap loading.
     Fixed e2fsck's fast commit handling which could result it in crashing
      when trying to merge extents when there were none available to be
      merged.
     Fix e2fsck's support of quota limit data, which could sometimes get
      dropped when the quota data needs to be regenerated, or when processing
      the orphan list.
     Fix tune2fs to correctly transfer the quota limits when converting quota
      files to the internal quota inodes.  Also add support for tune2fs to
      properly handle the older version 0 quota files.
     Fix debugfs's get_quota and list_quota commands so that the header of
      the report printed by these commands correctly reflect that the units of
      used space is in bytes instead of blocks.
    Performance, Internal Implementation, Development Support etc.
     Add some additional packages to the setup-schroot script to account for
      the fact that the script can be run on older Debian distributions and so
      the build dependencies might omit some packages needed to build
      e2fsprogs on unstable version of Debian.
     Reduce resize2fs's CPU overhead when counting the number of blocks in
      use which can reduce the wall clock time for very large file systems
      by substantial amount.
     Teach libuuid to use getrandom() or getentropy() if available in favor
      of reading from /dev/[u]random.
     Teach libss to use libreadline.so.8 if it is available.
     Update some test expect files to fix some regression tests that were
      broken in e2fsprogs 1.46.4.
     If the PRINT_FAILED environment variable is set, failed tests will
      display the diff output to make it easier to debug test failures on
      autobuilders.
     Fix various compiler warnings.
     Update tst_getsize to use ext2fs_get_size2() to support testing devices
      which are larger than 2**32 sectors.
     Fixed spelling mistakes in the mke2fs.conf man page.
     Update Chinese, Malay, Serbian, Spanish, Swedish, and Ukrainian
      translations.
  1.46.4 (August 18, 2021)
    Updates/Fixes since v1.46.3:
    UI and Features
     The defaults for mke2fs now call for 256 byte inodes for all file
      systems (with the exception of file systems for the GNU Hurd, which only
      supports 128 byte inodes).  Creating non-Hurd file systems with 128 byte
      inodes will trigger a warning message to make sure users are aware of
      the potential problems of using small/legacy inode sizes.
     The bigalloc feature is now considered supported if the cluster size no
      more than 16 times the block size.  So the mke2fs program has been
      changes to only warn if the cluster size is larger than that.
    Fixes
     E2fsck now checks to make sure directory entries do not reference
      internal quota inodes.
     E2image now includes the quota inodes when creating file system image,
      since they are part of the file system metadata.
     E2fsck now properly accounts the quota usage of the project quota file.
     Fix a regression introduced in 1.64.3 where attempting to create a file
      system image using mke2fs into a non-existent file would fail.
      (Addresses Debian Bug: #992094)
     Fix mke2fs to correctly create Posix ACL's on big-endian systems when
      copying files from a directory hierarchy.
     Updated and clarified the resize2fs man page.  (Addresses Debian Bug:
      #979411)
    Performance, Internal Implementation, Development Support etc.
     Improve various regression tests to be more portable and to reflect the
      new default inode size of 256 byte inodes, even for small file systems.
     Fixed a GNU Hurd portability problem which was causing tests to fail.
     Fixed a test failure in f_baddotdir on big-endian systems.  This wasn't
      necessarily a bug per se in e2fsck, but rather e2fsck having different
      behaviour on big-endian systems.  (Addresses Debian Bug: #991922)
     Use WantedBy=multi-user.target in e2scrub_reap.service.  (Addresses
      Debian Bug: #991349)
     Synchronize e2fsck/recovery.c with the kernel's fs/jbd2/recovery.c
     Fix various Coverity and compiler warnings.
     Fix various error pathes to make sure we don't leak resources or
      potentially use or try to free uninitialized pointers.
     Added a setup-schroot command for use on Debian porter boxes.
     Updated config.guess and config.sub with newer versions from the FSF.
     Update Czech, Dutch, French, Polish, Portuguese, and Swedish translations.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoCore Update 163: Ship vpnmain.cgi
Peter Müller [Tue, 4 Jan 2022 17:07:19 +0000 (18:07 +0100)] 
Core Update 163: Ship vpnmain.cgi

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
3 years agovpnmain.cgi: Fix extra whitespace in exported pk12 file
Stefan Schantl [Thu, 30 Dec 2021 19:15:36 +0000 (20:15 +0100)] 
vpnmain.cgi: Fix extra whitespace in exported pk12 file

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
3 years agonano: Update to 6.0
Matthias Fischer [Sun, 2 Jan 2022 16:38:12 +0000 (17:38 +0100)] 
nano: Update to 6.0

For details see:
https://www.nano-editor.org/news.php

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoxfsprogs: update to 5.14.2
Arne Fitzenreiter [Mon, 3 Jan 2022 06:08:42 +0000 (06:08 +0000)] 
xfsprogs: update to 5.14.2

xfsprogs-5.14.2 (06 Dec 2021)
- libxfs: move rogue fallthrough macro out of linux.h (Darrick J. Wong)

xfsprogs-5.14.1 (02 Dec 2021)
- libxfs: fix atomic64_t for 32-bit architectures (Darrick J. Wong)
- libfrog: fix crc32c self test code on cross builds (Darrick J. Wong)

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agostage2: remove wrong curly brackets.
Arne Fitzenreiter [Sun, 2 Jan 2022 14:35:07 +0000 (14:35 +0000)] 
stage2: remove wrong curly brackets.

It is not allowed use this with only one parameter.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agocheckrootfiles: don't report aarch64 in gdb and liburcu
Arne Fitzenreiter [Sun, 2 Jan 2022 14:27:09 +0000 (14:27 +0000)] 
checkrootfiles: don't report aarch64 in gdb and liburcu

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoMerge remote-tracking branch 'pmueller/temp-c163-development' into next
Arne Fitzenreiter [Sun, 2 Jan 2022 10:13:14 +0000 (10:13 +0000)] 
Merge remote-tracking branch 'pmueller/temp-c163-development' into next

3 years agoruleset-sources: Update download URL for Talos rulesets.
Stefan Schantl [Sun, 2 Jan 2022 09:34:44 +0000 (10:34 +0100)] 
ruleset-sources: Update download URL for Talos rulesets.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Log the download attempt of a ruleset.
Stefan Schantl [Sun, 2 Jan 2022 08:55:59 +0000 (09:55 +0100)] 
ids-functions.pl: Log the download attempt of a ruleset.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoRevert "ids-functions.pl: Check if the generated stored rulesfile of a provider"
Stefan Schantl [Sun, 2 Jan 2022 08:52:02 +0000 (09:52 +0100)] 
Revert "ids-functions.pl: Check if the generated stored rulesfile of a provider"

This commit causes massive troubles in the downloader and therefore
needs to be reverted.

This reverts commit 577e3304953c708bce7f6c067bf34c3f585d3a0f.

3 years agoids-functions.pl: Check if given filename exists bevore call stat on it.
Stefan Schantl [Sun, 2 Jan 2022 08:49:37 +0000 (09:49 +0100)] 
ids-functions.pl: Check if given filename exists bevore call stat on it.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Proper return flase if the downloaded rulestarball
Stefan Schantl [Sun, 2 Jan 2022 08:48:55 +0000 (09:48 +0100)] 
ids-functions.pl: Proper return flase if the downloaded rulestarball
cannot be stored.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agocore162: fix old kernel cleanup on arm
Arne Fitzenreiter [Wed, 29 Dec 2021 09:16:12 +0000 (09:16 +0000)] 
core162: fix old kernel cleanup on arm

we have removed the -multi after the kernel name but
in the update script delete *-multi-* which leftover
the arm specific dtb folder and uImages.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoCore Update 163: Ship advoptions-list
Peter Müller [Tue, 28 Dec 2021 22:04:43 +0000 (23:04 +0100)] 
Core Update 163: Ship advoptions-list

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
3 years agoadvoptions-list: Add additional dhcp options - fixes bug 12291
Adolf Belka [Sun, 26 Dec 2021 21:55:12 +0000 (22:55 +0100)] 
advoptions-list: Add additional dhcp options - fixes bug 12291

- Add ms-classless-static-routes and rfc3442-classless-static-routes as options for dhcp
   These are apparently required for deployiong classless IP routes
- Original static-routes option is not intended for classless IP routing but is being
   left in place for backward compatibility
- The option "rfc3442-classless-static-routes" is for normal clients
- The option "ms-classless-static-routes" is for Microsoft clients

Fixes: bug 12291
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
3 years agoCore Update 163: Ship and restart Apache
Peter Müller [Tue, 28 Dec 2021 22:02:49 +0000 (23:02 +0100)] 
Core Update 163: Ship and restart Apache

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
3 years agoapache: Update to 2.4.52
Matthias Fischer [Thu, 23 Dec 2021 16:32:52 +0000 (17:32 +0100)] 
apache: Update to 2.4.52

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
For details see:
https://dlcdn.apache.org//httpd/CHANGES_2.4.52

Excerpt from changelog:

""Changes with Apache 2.4.52

  *) SECURITY: CVE-2021-44790: Possible buffer overflow when parsing
     multipart content in mod_lua of Apache HTTP Server 2.4.51 and
     earlier (cve.mitre.org)
     A carefully crafted request body can cause a buffer overflow in
     the mod_lua multipart parser (r:parsebody() called from Lua
     scripts).
     The Apache httpd team is not aware of an exploit for the
     vulnerabilty though it might be possible to craft one.
     This issue affects Apache HTTP Server 2.4.51 and earlier.
     Credits: Chamal

  *) SECURITY: CVE-2021-44224: Possible NULL dereference or SSRF in
     forward proxy configurations in Apache HTTP Server 2.4.51 and
     earlier (cve.mitre.org)
     A crafted URI sent to httpd configured as a forward proxy
     (ProxyRequests on) can cause a crash (NULL pointer dereference)
     or, for configurations mixing forward and reverse proxy
     declarations, can allow for requests to be directed to a
     declared Unix Domain Socket endpoint (Server Side Request
     Forgery).
     This issue affects Apache HTTP Server 2.4.7 up to 2.4.51
     (included).
     Credits: æ¼‚亮é¼
     TengMA(@Te3t123)
..."
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
3 years agoLanguage files update: Fix for bug 12747
Adolf Belka [Thu, 23 Dec 2021 14:30:04 +0000 (15:30 +0100)] 
Language files update: Fix for bug 12747

- Update en.pl, it.pl and ru.pl to replace "an core-update" with "a core-update"

Fixes: Bug#12747
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoinstaller: Ignore umount errors when target doesn't exist
Michael Tremer [Wed, 22 Dec 2021 16:07:26 +0000 (16:07 +0000)] 
installer: Ignore umount errors when target doesn't exist

Some paths might not exist on some systems which caused the installer to
abort the installation. This patch makes the installer ignore this
condition.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agosuricata.yaml: Set collection of stat to off.
Stefan Schantl [Sun, 19 Dec 2021 14:55:45 +0000 (15:55 +0100)] 
suricata.yaml: Set collection of stat to off.

Suricata will print a warning on startup if the collection of stats
is enabled but no stats logger, which will print them out is enabled.

Acctually we do not use any stats so this safely can be disabled.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agosuricata.yaml: Set default log level to Info.
Stefan Schantl [Sun, 19 Dec 2021 14:53:55 +0000 (15:53 +0100)] 
suricata.yaml: Set default log level to Info.

This will prevent suricata from displaying a warning on startup and
anyway would be the log level which suricata switches in such a case.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agosuricata.yaml: Add config options for modbus, dnp3 and enip protocols.
Stefan Schantl [Sun, 19 Dec 2021 14:51:58 +0000 (15:51 +0100)] 
suricata.yaml: Add config options for modbus, dnp3 and enip protocols.

All of them are disabled by default, but may be needed in some
environments and so easily can be enabled there.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Drop accidently commited debug output.
Stefan Schantl [Sun, 19 Dec 2021 14:46:05 +0000 (15:46 +0100)] 
ids-functions.pl: Drop accidently commited debug output.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Set bypass flag for whitelisted hosts.
Stefan Schantl [Sun, 19 Dec 2021 14:41:43 +0000 (15:41 +0100)] 
ids-functions.pl: Set bypass flag for whitelisted hosts.

When adding a host to the whitelist set the bypass flag to
immediate take the load from the IDS.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Dynamically generate file of default suricata rules.
Stefan Schantl [Sun, 19 Dec 2021 14:37:16 +0000 (15:37 +0100)] 
ids-functions.pl: Dynamically generate file of default suricata rules.

The "/var/ipfire/suricata/suricata-default-rules.yaml" file, now
dynamicall will be generated, based on the enabled application layer
protocols.

Only existing rulefiles for enabled app layer protocols will be loaded.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Add get_suricata_enable_app_layer_protos().
Stefan Schantl [Sun, 19 Dec 2021 14:32:52 +0000 (15:32 +0100)] 
ids-functions.pl: Add get_suricata_enable_app_layer_protos().

This function call suricata to obtain a list of enabled application
layer protocols (application/protocol parsers).

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agosuricata: Fix ownership of the classification.config file.
Stefan Schantl [Fri, 3 Dec 2021 14:57:17 +0000 (15:57 +0100)] 
suricata: Fix ownership of the classification.config file.

The file has to be write-able for the nobody user.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Remove config files when cleaning up the rules
Stefan Schantl [Fri, 3 Dec 2021 14:53:20 +0000 (15:53 +0100)] 
ids-functions.pl: Remove config files when cleaning up the rules
directory.

If there are one, they safly can be removed because the *.config files
now live in a different folder.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Adjust classification file for new path.
Stefan Schantl [Fri, 3 Dec 2021 14:52:19 +0000 (15:52 +0100)] 
ids-functions.pl: Adjust classification file for new path.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agosuricata: Load *.config files from default location
Michael Tremer [Fri, 19 Nov 2021 17:44:56 +0000 (17:44 +0000)] 
suricata: Load *.config files from default location

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoids-functions.pl: Do not call stat if no file has been given.
Stefan Schantl [Thu, 2 Dec 2021 06:44:52 +0000 (07:44 +0100)] 
ids-functions.pl: Do not call stat if no file has been given.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Check if the generated stored rulesfile of a provider
Stefan Schantl [Thu, 2 Dec 2021 06:43:00 +0000 (07:43 +0100)] 
ids-functions.pl: Check if the generated stored rulesfile of a provider
exists before returning the filename.

This will prevent from using and processing non existing files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoupdate-ids-ruleset: Early exit script if lockfile exists.
Stefan Schantl [Sun, 27 Jun 2021 17:22:24 +0000 (19:22 +0200)] 
update-ids-ruleset: Early exit script if lockfile exists.

This prevents from running the script while the WUI is performing
operations at the same time or to launch multiple instances of the
script.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Use experimental smartmatch.
Stefan Schantl [Wed, 12 May 2021 17:51:36 +0000 (19:51 +0200)] 
ids.cgi: Use experimental smartmatch.

This will prevent from spawning the http error log with warnings.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Do not expect a space after the msg tag has been closed while
Stefan Schantl [Wed, 12 May 2021 17:44:43 +0000 (19:44 +0200)] 
ids.cgi: Do not expect a space after the msg tag has been closed while
processing rules.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Proper return N/A if no ruleset date could be
Stefan Schantl [Fri, 16 Apr 2021 18:27:20 +0000 (20:27 +0200)] 
ids-functions.pl: Proper return N/A if no ruleset date could be
determined.

If no timestamp could be grabbed for rulestarball of a given provider,
return N/A.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Always write used providers rulefiles file.
Stefan Schantl [Wed, 14 Apr 2021 19:12:36 +0000 (21:12 +0200)] 
ids.cgi: Always write used providers rulefiles file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Add the provider handle if the forced update of a provider
Stefan Schantl [Wed, 14 Apr 2021 18:38:59 +0000 (20:38 +0200)] 
ids.cgi: Add the provider handle if the forced update of a provider
fails.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Return N/A if not date for a ruleset could be
Stefan Schantl [Wed, 14 Apr 2021 18:37:50 +0000 (20:37 +0200)] 
ids-functions.pl: Return N/A if not date for a ruleset could be
determined.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Add some more sanity checks when adding a new provider.
Stefan Schantl [Wed, 14 Apr 2021 18:32:14 +0000 (20:32 +0200)] 
ids.cgi: Add some more sanity checks when adding a new provider.

* Check if the system is online.
* Check if enough free disk space is available.
* Abort whith an error message if the ruleset could not be
  downloaded.

In error case the provider now will be removed again from the file which
keeps the configured providers. Sadly it needs to be added first because
otherwise the downloader could not read the required values from it.....

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Use newly intruduced functions when removing a provider.
Stefan Schantl [Wed, 14 Apr 2021 18:19:27 +0000 (20:19 +0200)] 
ids.cgi: Use newly intruduced functions when removing a provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Introduce remove_provider().
Stefan Schantl [Wed, 14 Apr 2021 18:18:47 +0000 (20:18 +0200)] 
ids.cgi: Introduce remove_provider().

This function is used to remove a configured provider by it's ID.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Introduce get_provider_handle().
Stefan Schantl [Wed, 14 Apr 2021 18:18:01 +0000 (20:18 +0200)] 
ids.cgi: Introduce get_provider_handle().

This function is used to get the configured provider handle by a a given ID.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Regenerate ruleset if a provider get re-enabled.
Stefan Schantl [Tue, 13 Apr 2021 18:18:46 +0000 (20:18 +0200)] 
ids.cgi: Regenerate ruleset if a provider get re-enabled.

Otherwise it could happen, that there are no rules files for this
specific provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Fix check when changing the IDS to monitor mode or drop mode.
Stefan Schantl [Tue, 13 Apr 2021 16:56:49 +0000 (18:56 +0200)] 
ids.cgi: Fix check when changing the IDS to monitor mode or drop mode.

The test condition was wrong here and therefore oinkmaster never has
been executed when this setting has been changed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Allow whitespaces when parsing the rules files.
Stefan Schantl [Tue, 13 Apr 2021 16:08:12 +0000 (18:08 +0200)] 
ids.cgi: Allow whitespaces when parsing the rules files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoconvert-ids-multiple-providers: Fix setting ownership for the main
Stefan Schantl [Sun, 11 Apr 2021 07:02:33 +0000 (09:02 +0200)] 
convert-ids-multiple-providers: Fix setting ownership for the main
oinkmaster provider includes file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Fix writing for used provider rulefiles.
Stefan Schantl [Sat, 10 Apr 2021 16:59:19 +0000 (18:59 +0200)] 
ids-functions.pl: Fix writing for used provider rulefiles.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoconvert-ids-multiple-providers: Proper open the oinkmaster providers
Stefan Schantl [Sat, 10 Apr 2021 16:54:35 +0000 (18:54 +0200)] 
convert-ids-multiple-providers: Proper open the oinkmaster providers
sids file for writing.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoconvert-ids-multiple-providers: Fix typo which tried to load the wrong
Stefan Schantl [Sat, 10 Apr 2021 16:53:27 +0000 (18:53 +0200)] 
convert-ids-multiple-providers: Fix typo which tried to load the wrong
lib.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoconvert-ids-multiple-providers: Remove old used rulefiles file.
Stefan Schantl [Wed, 7 Apr 2021 18:47:07 +0000 (20:47 +0200)] 
convert-ids-multiple-providers: Remove old used rulefiles file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoconvert-ids-multiple-providers: Always remove old enabled / disabled
Stefan Schantl [Wed, 7 Apr 2021 18:45:32 +0000 (20:45 +0200)] 
convert-ids-multiple-providers: Always remove old enabled / disabled
sids files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoconvert-ids-multiple-providers: Restart suricata afterwards.
Stefan Schantl [Mon, 5 Apr 2021 06:44:00 +0000 (08:44 +0200)] 
convert-ids-multiple-providers: Restart suricata afterwards.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agobackup.pl: Launch convert-ids-multiple-providers if neccessary.
Stefan Schantl [Mon, 5 Apr 2021 06:03:38 +0000 (08:03 +0200)] 
backup.pl: Launch convert-ids-multiple-providers if neccessary.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoIDS: Add convert-ids-multiple-provider script.
Stefan Schantl [Mon, 5 Apr 2021 05:59:09 +0000 (07:59 +0200)] 
IDS: Add convert-ids-multiple-provider script.

This converter does all the magic to convert any suricata
based IPFire version to work with the new multiple providers
IDS.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Do not expect a space before the sid when parsing rulefiles.
Stefan Schantl [Mon, 5 Apr 2021 05:52:30 +0000 (07:52 +0200)] 
ids.cgi: Do not expect a space before the sid when parsing rulefiles.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoconvert-snort: Adjust converter to work with new IDS.
Stefan Schantl [Mon, 5 Apr 2021 05:39:29 +0000 (07:39 +0200)] 
convert-snort: Adjust converter to work with new IDS.

Only in case if somebody tries to import such an old backup.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Remove as deprecated marked variables.
Stefan Schantl [Mon, 5 Apr 2021 05:19:34 +0000 (07:19 +0200)] 
ids-functions.pl: Remove as deprecated marked variables.

They are not needed anymore.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoruleset-sources: Update download URL for Talos rulesets.
Stefan Schantl [Mon, 5 Apr 2021 05:13:45 +0000 (07:13 +0200)] 
ruleset-sources: Update download URL for Talos rulesets.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoruleset-sources: Add additional providers.
Stefan Schantl [Mon, 5 Apr 2021 05:12:00 +0000 (07:12 +0200)] 
ruleset-sources: Add additional providers.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Sort elements in providers dropdown menu.
Stefan Schantl [Mon, 5 Apr 2021 05:11:04 +0000 (07:11 +0200)] 
ids.cgi: Sort elements in providers dropdown menu.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Only write existing provider specific used rulesfiles
Stefan Schantl [Sun, 4 Apr 2021 10:22:13 +0000 (12:22 +0200)] 
ids-functions.pl: Only write existing provider specific used rulesfiles
files into main include yaml file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoIDS: Move read_enabled_disabled_sids_file() function to ids-functions.pl.
Stefan Schantl [Sun, 4 Apr 2021 08:15:27 +0000 (10:15 +0200)] 
IDS: Move read_enabled_disabled_sids_file() function to ids-functions.pl.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agobackup: Adjust includes file to include new IDS files into backups.
Stefan Schantl [Sun, 4 Apr 2021 06:25:36 +0000 (08:25 +0200)] 
backup: Adjust includes file to include new IDS files into backups.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoRevert "ids-functions.pl: Remove config files on rulesdir cleanup."
Stefan Schantl [Sun, 4 Apr 2021 06:15:48 +0000 (08:15 +0200)] 
Revert "ids-functions.pl: Remove config files on rulesdir cleanup."

Not all config files are shipped by the rulesets. For example the
"threshold.conf" and the "referneces.conf" are not include in each
ruleset.

Therefore it is not a common way to delete all config files. It is
much safer to simple keep them and overwrite existing ones by the
generated ones.

This reverts commit a71c3c9dcc60541aa4504d0f1fb0a78c0d58ed5e.

3 years agoids-functions.pl: Move code to handle plain rules files to
Stefan Schantl [Fri, 2 Apr 2021 18:22:15 +0000 (20:22 +0200)] 
ids-functions.pl: Move code to handle plain rules files to
extractruleset() function.

Now everithing which is extracting or moving stored ruleset files is
easily accessing via one function which takes care about.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Only read providers used rulefiles file if it exists.
Stefan Schantl [Fri, 2 Apr 2021 11:47:36 +0000 (13:47 +0200)] 
ids-functions.pl: Only read providers used rulefiles file if it exists.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Fix accidently commited debug file path.
Stefan Schantl [Fri, 2 Apr 2021 11:46:47 +0000 (13:46 +0200)] 
ids-functions.pl: Fix accidently commited debug file path.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoupdate-ids-ruleset: Port script to work with multiple providers.
Stefan Schantl [Fri, 2 Apr 2021 09:45:00 +0000 (11:45 +0200)] 
update-ids-ruleset: Port script to work with multiple providers.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agolangs-de.pl: Fix grammar.
Stefan Schantl [Fri, 2 Apr 2021 09:24:03 +0000 (11:24 +0200)] 
langs-de.pl: Fix grammar.

Even as a native speaker, it seems german sometimes is a very difficult language......

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Add code to handle the reset of a provider to it's defaults.
Stefan Schantl [Fri, 2 Apr 2021 09:21:00 +0000 (11:21 +0200)] 
ids.cgi: Add code to handle the reset of a provider to it's defaults.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Make backend code for forced ruleset update working again.
Stefan Schantl [Fri, 2 Apr 2021 09:00:17 +0000 (11:00 +0200)] 
ids.cgi: Make backend code for forced ruleset update working again.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Add section for additional provider actions.
Stefan Schantl [Fri, 2 Apr 2021 08:47:55 +0000 (10:47 +0200)] 
ids.cgi: Add section for additional provider actions.

This section only will be displayed when an existing provider will be
edited and allows to reset a provider back to it's defaults or to force
a ruleset update.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Fix display issue with colum backgound colour in provider list.
Stefan Schantl [Fri, 2 Apr 2021 08:12:02 +0000 (10:12 +0200)] 
ids.cgi: Fix display issue with colum backgound colour in provider list.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Handle oinkmaster provider includes when deleting a provider.
Stefan Schantl [Fri, 2 Apr 2021 08:05:12 +0000 (10:05 +0200)] 
ids.cgi: Handle oinkmaster provider includes when deleting a provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Fix function call of get_used_provider_rulesfile_file().
Stefan Schantl [Fri, 2 Apr 2021 08:04:21 +0000 (10:04 +0200)] 
ids.cgi: Fix function call of get_used_provider_rulesfile_file().

The function is locatated in the IDS module and therefore needs to be
called from there.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Add/Remove provider file include in oinkmaster providers
Stefan Schantl [Fri, 2 Apr 2021 07:35:42 +0000 (09:35 +0200)] 
ids.cgi: Add/Remove provider file include in oinkmaster providers
include file when toggeling a provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Check if the file exists bevore adding it to the
Stefan Schantl [Fri, 2 Apr 2021 07:34:28 +0000 (09:34 +0200)] 
ids-functions.pl: Check if the file exists bevore adding it to the
oinkmaster provider includes file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Introduce alter_oinkmaster_provider_includes_file().
Stefan Schantl [Fri, 2 Apr 2021 07:13:17 +0000 (09:13 +0200)] 
ids-functions.pl: Introduce alter_oinkmaster_provider_includes_file().

This function can be used to directly modify the desired file.

It takes two arguments:
 * An action which could be "add" or "remove"
 * A provider handle, which should be added or removed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Use get_oinkmaster_provider_modified_sids_file() function.
Stefan Schantl [Fri, 2 Apr 2021 06:06:53 +0000 (08:06 +0200)] 
ids.cgi: Use get_oinkmaster_provider_modified_sids_file() function.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Introduce get_oinkmaster_provider_modified_sids_file()
Stefan Schantl [Fri, 2 Apr 2021 06:04:46 +0000 (08:04 +0200)] 
ids-functions.pl: Introduce get_oinkmaster_provider_modified_sids_file()
function.

This function simply returns the gernerated path and filename for the
provider specific modified sids file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoIDS: Redesign backend for enabled/disabled sids in rulefiles.
Stefan Schantl [Thu, 1 Apr 2021 18:02:48 +0000 (20:02 +0200)] 
IDS: Redesign backend for enabled/disabled sids in rulefiles.

The enabled or disabled sids now will be written to an own
provider exclusive configuration file which dynamically will
be included by oinkmaster if needed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Bring back usage of whitelist.rules and local.rules
Stefan Schantl [Thu, 1 Apr 2021 14:36:13 +0000 (16:36 +0200)] 
ids-functions.pl: Bring back usage of whitelist.rules and local.rules
files.

They now automatically will be included as static includes if the files
are present.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Use get_ruleset_date() from ids-functions.pl.
Stefan Schantl [Thu, 1 Apr 2021 14:02:50 +0000 (16:02 +0200)] 
ids.cgi: Use get_ruleset_date() from ids-functions.pl.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Introduce get_ruleset_date() function.
Stefan Schantl [Thu, 1 Apr 2021 14:02:04 +0000 (16:02 +0200)] 
ids-functions.pl: Introduce get_ruleset_date() function.

This function is used to get the creation date of the stored rules files
of a given provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Prevent from chainging the provider when editing an existing
Stefan Schantl [Thu, 1 Apr 2021 13:48:44 +0000 (15:48 +0200)] 
ids.cgi: Prevent from chainging the provider when editing an existing
one.

This commit locks the dropdown menu for selecting a provider, in case
an existing one should be edited.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Add hardcoded error message to language files.
Stefan Schantl [Thu, 1 Apr 2021 13:13:30 +0000 (15:13 +0200)] 
ids.cgi: Add hardcoded error message to language files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Fix check and message when trying to enable suricata without
Stefan Schantl [Thu, 1 Apr 2021 13:09:59 +0000 (15:09 +0200)] 
ids.cgi: Fix check and message when trying to enable suricata without
any enabled or no provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Lock the CGI when a provder will be deleted.
Stefan Schantl [Thu, 1 Apr 2021 10:02:45 +0000 (12:02 +0200)] 
ids.cgi: Lock the CGI when a provder will be deleted.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>