This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via d0a16dba2835fc1c27c1d12765d7461a9d48c04c (commit)
via 5b4e33bc3b754dd14ecc279bc421ec232a489507 (commit)
via 888a21f928d1eb79ae7049bdde394f54ebc39e2c (commit)
via 21970dd75f4f5a00b89f4cec4a56bb5c959c9407 (commit)
via 3d725ebbec589c137f40c59296662b21583225e1 (commit)
via 86bd9ccc951473f4e9ec3df7748a89b954beda1c (commit)
via edd2710520fb2b762b1b4a05a0a34180ad30b7ae (commit)
via 2b4110cd64721eb591a75e7bc0856afff4b4ff93 (commit)
via 1d55fccdc58f56c7cea81b9c7c6a96aec89458ae (commit)
via 15194c7c52c2438611832cecf4dad24fec304322 (commit)
from da310b22465c5147fa5d63bb763d9b1963726eb8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d0a16dba2835fc1c27c1d12765d7461a9d48c04c
Author: Michael Tremer
Date: Mon Jan 4 10:44:56 2021 +0000
core154: Ship general-functions.pl
Signed-off-by: Michael Tremer
commit 5b4e33bc3b754dd14ecc279bc421ec232a489507
Author: Adolf Belka
Date: Sat Jan 2 13:54:45 2021 +0100
general-functions.pl: Update to fix bug #12428
- Patch of general-functions.pl for implementation of fix provided
by Bernhard Bitsch in bug #12428.
Had to be modified as that fix gave a failure for single character hostnames.
Updated version prevents spaces being put into hostnames and works for single
character hostnames
- Updated subroutine validfqdn to apply consistent rules for hostname & domain name
portions of fqdn
- Minor updates for consistency across validhostname, validdomainname & validfqdn
- Patch implemented into testbed system and confirmed working for hostnames, domain names
and FQDN's.
Signed-off-by: Adolf Belka
Signed-off-by: Michael Tremer
commit 888a21f928d1eb79ae7049bdde394f54ebc39e2c
Author: Matthias Fischer
Date: Fri Jan 1 16:47:54 2021 +0100
wget: Update to 1.21
Sorry, no changelog found, only:
https://fossies.org/linux/wget/ChangeLog
Signed-off-by: Matthias Fischer
Reviewed-by: Peter Müller
Signed-off-by: Michael Tremer
commit 21970dd75f4f5a00b89f4cec4a56bb5c959c9407
Author: Michael Tremer
Date: Sun Jan 3 11:18:06 2021 +0000
core154: Ship knot
Signed-off-by: Michael Tremer
commit 3d725ebbec589c137f40c59296662b21583225e1
Author: Matthias Fischer
Date: Fri Jan 1 10:58:16 2021 +0100
knot: Update to 3.0.3
For details see:
https://www.knot-dns.cz/2020-12-15-version-303.html
Signed-off-by: Matthias Fischer
Reviewed-by: Peter Müller
Signed-off-by: Michael Tremer
commit 86bd9ccc951473f4e9ec3df7748a89b954beda1c
Author: Michael Tremer
Date: Sun Jan 3 11:17:28 2021 +0000
Drop unused Asterisk CGI files
Signed-off-by: Michael Tremer
commit edd2710520fb2b762b1b4a05a0a34180ad30b7ae
Author: Michael Tremer
Date: Sun Jan 3 11:16:22 2021 +0000
Drop unused upnp.cgi
Signed-off-by: Michael Tremer
commit 2b4110cd64721eb591a75e7bc0856afff4b4ff93
Author: Michael Tremer
Date: Sun Jan 3 11:15:45 2021 +0000
core154: Ship updated CGI files
Signed-off-by: Michael Tremer
commit 1d55fccdc58f56c7cea81b9c7c6a96aec89458ae
Author: Matthias Fischer
Date: Tue Dec 29 13:50:11 2020 +0100
Syntax fixes in several CGIs
Signed-off-by: Matthias Fischer
Signed-off-by: Michael Tremer
commit 15194c7c52c2438611832cecf4dad24fec304322
Author: Matthias Fischer
Date: Tue Dec 29 13:36:21 2020 +0100
dhcpcd: Update to 9.4.0
For details see:
https://roy.marples.name/archives/dhcpcd-discuss/0003420.html
Former patch for Bug #12552 is now included.
Signed-off-by: Matthias Fischer
Signed-off-by: Michael Tremer
-----------------------------------------------------------------------
Summary of changes:
config/cfgroot/general-functions.pl | 51 +++--
config/menu/EX-asterisk.menu | 15 --
config/rootfiles/common/web-user-interface | 7 -
config/rootfiles/core/154/filelists/files | 5 +
.../{oldcore/128 => core/154}/filelists/knot | 0
html/cgi-bin/asterisk/calls.cgi | 132 ------------
html/cgi-bin/asterisk/conf.cgi | 161 ---------------
html/cgi-bin/asterisk/conf/telbook.conf | 1 -
html/cgi-bin/asterisk/status.cgi | 119 -----------
html/cgi-bin/extrahd.cgi | 4 +-
html/cgi-bin/gpl.cgi | 2 +-
html/cgi-bin/hardwaregraphs.cgi | 2 +-
html/cgi-bin/optionsfw.cgi | 4 +-
html/cgi-bin/upnp.cgi | 228 ---------------------
lfs/dhcpcd | 7 +-
lfs/knot | 4 +-
lfs/wget | 6 +-
...86_for_SECCOMP_as_it_just_uses_socketcall.patch | 36 ----
18 files changed, 47 insertions(+), 737 deletions(-)
delete mode 100644 config/menu/EX-asterisk.menu
copy config/rootfiles/{oldcore/128 => core/154}/filelists/knot (100%)
delete mode 100644 html/cgi-bin/asterisk/calls.cgi
delete mode 100644 html/cgi-bin/asterisk/conf.cgi
delete mode 100644 html/cgi-bin/asterisk/conf/telbook.conf
delete mode 100644 html/cgi-bin/asterisk/status.cgi
delete mode 100644 html/cgi-bin/upnp.cgi
delete mode 100644 src/patches/dhcpcd/01_Fix_Linux_i386_for_SECCOMP_as_it_just_uses_socketcall.patch
Difference in files:
diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-functions.pl
index 9be1e7708..a6656ccf5 100644
--- a/config/cfgroot/general-functions.pl
+++ b/config/cfgroot/general-functions.pl
@@ -635,12 +635,12 @@ sub validhostname
# Checks a hostname against RFC1035
my $hostname = $_[0];
- # Each part should be at least two characters in length
+ # Hostname should be at least one character in length
# but no more than 63 characters
if (length ($hostname) < 1 || length ($hostname) > 63) {
return 0;}
# Only valid characters are a-z, A-Z, 0-9 and -
- if ($hostname !~ /^[a-zA-Z0-9-\s]*$/) {
+ if ($hostname !~ /^[a-zA-Z0-9-]*$/) {
return 0;}
# First character can only be a letter or a digit
if (substr ($hostname, 0, 1) !~ /^[a-zA-Z0-9]*$/) {
@@ -655,46 +655,53 @@ sub validdomainname
{
my $part;
- # Checks a domain name against RFC1035
+ # Checks a domain name against RFC1035 and RFC2181
my $domainname = $_[0];
- my @parts = split (/\./, $domainname); # Split hostname at the '.'
+ my @parts = split (/\./, $domainname); # Split domain name at the '.'
foreach $part (@parts) {
- # Each part should be no more than 63 characters in length
+ # Each part should be at least one character in length
+ # but no more than 63 characters
if (length ($part) < 1 || length ($part) > 63) {
return 0;}
# Only valid characters are a-z, A-Z, 0-9, _ and -
if ($part !~ /^[a-zA-Z0-9_-]*$/) {
- return 0;
- }
+ return 0;}
}
return 1;
}
sub validfqdn
{
- my $part;
-
- # Checks a fully qualified domain name against RFC1035
+ # Checks a fully qualified domain name against RFC1035 and RFC2181
my $fqdn = $_[0];
- my @parts = split (/\./, $fqdn); # Split hostname at the '.'
+ my @parts = split (/\./, $fqdn); # Split FQDN at the '.'
if (scalar(@parts) < 2) { # At least two parts should
return 0;} # exist in a FQDN
# (i.e.hostname.domain)
- foreach $part (@parts) {
+
+ for (my $index=0; $index < scalar(@parts); $index++) {
# Each part should be at least one character in length
# but no more than 63 characters
- if (length ($part) < 1 || length ($part) > 63) {
- return 0;}
- # Only valid characters are a-z, A-Z, 0-9 and -
- if ($part !~ /^[a-zA-Z0-9-]*$/) {
- return 0;}
- # First character can only be a letter or a digit
- if (substr ($part, 0, 1) !~ /^[a-zA-Z0-9]*$/) {
- return 0;}
- # Last character can only be a letter or a digit
- if (substr ($part, -1, 1) !~ /^[a-zA-Z0-9]*$/) {
+ if (length ($parts[$index]) < 1 || length ($parts[$index]) > 63) {
return 0;}
+ if ($index eq 0) {
+ # This is the hostname part
+ # Only valid characters are a-z, A-Z, 0-9 and -
+ if ($parts[$index] !~ /^[a-zA-Z0-9-]*$/) {
+ return 0;}
+ # First character can only be a letter or a digit
+ if (substr ($parts[$index], 0, 1) !~ /^[a-zA-Z0-9]*$/) {
+ return 0;}
+ # Last character can only be a letter or a digit
+ if (substr ($parts[$index], -1, 1) !~ /^[a-zA-Z0-9]*$/) {
+ return 0;}
+ } else{
+ # This is the domain part
+ # Only valid characters are a-z, A-Z, 0-9, _ and -
+ if ($parts[$index] !~ /^[a-zA-Z0-9_-]*$/) {
+ return 0;}
+ }
}
return 1;
}
diff --git a/config/menu/EX-asterisk.menu b/config/menu/EX-asterisk.menu
deleted file mode 100644
index 506fb6d2f..000000000
--- a/config/menu/EX-asterisk.menu
+++ /dev/null
@@ -1,15 +0,0 @@
- $subipfire->{'31.asterisk'} = {'caption' => 'Asterisk Status',
- 'uri' => '/cgi-bin/asterisk/status.cgi',
- 'title' => 'Asterisk Status',
- 'enabled' => 1,
- };
- $subipfire->{'32.asterisk'} = {'caption' => 'Asterisk Config',
- 'uri' => '/cgi-bin/asterisk/conf.cgi',
- 'title' => 'Asterisk Config',
- 'enabled' => 1,
- };
- $subipfire->{'33.asterisk'} = {'caption' => 'Asterisk Calls',
- 'uri' => '/cgi-bin/asterisk/calls.cgi',
- 'title' => 'Asterisk Calls',
- 'enabled' => 1,
- };
diff --git a/config/rootfiles/common/web-user-interface b/config/rootfiles/common/web-user-interface
index 3eac4411a..9b2667676 100644
--- a/config/rootfiles/common/web-user-interface
+++ b/config/rootfiles/common/web-user-interface
@@ -1,10 +1,4 @@
srv/web/ipfire/cgi-bin/aliases.cgi
-#srv/web/ipfire/cgi-bin/asterisk
-#srv/web/ipfire/cgi-bin/asterisk/calls.cgi
-#srv/web/ipfire/cgi-bin/asterisk/conf
-#srv/web/ipfire/cgi-bin/asterisk/conf.cgi
-#srv/web/ipfire/cgi-bin/asterisk/conf/telbook.conf
-#srv/web/ipfire/cgi-bin/asterisk/status.cgi
srv/web/ipfire/cgi-bin/atm-status.cgi
srv/web/ipfire/cgi-bin/backup.cgi
#srv/web/ipfire/cgi-bin/captive
@@ -83,7 +77,6 @@ srv/web/ipfire/cgi-bin/time.cgi
#srv/web/ipfire/cgi-bin/tor.cgi
srv/web/ipfire/cgi-bin/traffic.cgi
srv/web/ipfire/cgi-bin/updatexlrator.cgi
-#srv/web/ipfire/cgi-bin/upnp.cgi
srv/web/ipfire/cgi-bin/urlfilter.cgi
srv/web/ipfire/cgi-bin/vpnmain.cgi
srv/web/ipfire/cgi-bin/vulnerabilities.cgi
diff --git a/config/rootfiles/core/154/filelists/files b/config/rootfiles/core/154/filelists/files
index eea472eaf..1861bb925 100644
--- a/config/rootfiles/core/154/filelists/files
+++ b/config/rootfiles/core/154/filelists/files
@@ -4,8 +4,13 @@ etc/os-release
srv/web/ipfire/cgi-bin/country.cgi
srv/web/ipfire/cgi-bin/credits.cgi
srv/web/ipfire/cgi-bin/dhcp.cgi
+srv/web/ipfire/cgi-bin/extrahd.cgi
+srv/web/ipfire/cgi-bin/gpl.cgi
+srv/web/ipfire/cgi-bin/hardwaregraphs.cgi
+srv/web/ipfire/cgi-bin/optionsfw.cgi
srv/web/ipfire/cgi-bin/pakfire.cgi
srv/web/ipfire/cgi-bin/remote.cgi
srv/web/ipfire/cgi-bin/services.cgi
usr/local/bin/sshctrl
+var/ipfire/general-functions.pl
var/ipfire/langs
diff --git a/config/rootfiles/core/154/filelists/knot b/config/rootfiles/core/154/filelists/knot
new file mode 120000
index 000000000..28e96f878
--- /dev/null
+++ b/config/rootfiles/core/154/filelists/knot
@@ -0,0 +1 @@
+../../../common/knot
\ No newline at end of file
diff --git a/html/cgi-bin/asterisk/calls.cgi b/html/cgi-bin/asterisk/calls.cgi
deleted file mode 100644
index c5877b2ea..000000000
--- a/html/cgi-bin/asterisk/calls.cgi
+++ /dev/null
@@ -1,132 +0,0 @@
-#!/usr/bin/perl
-
-require '/var/ipfire/general-functions.pl';
-require "${General::swroot}/lang.pl";
-require "${General::swroot}/header.pl";
-
-&Header::showhttpheaders();
-
-my (%asterisksettings, %checked);
-
-my %cgiparams;
-
-&Header::getcgihash(\%cgiparams);
-
-$asterisksettings{'ACTION'} = '';
-
-$file = "/var/log/asterisk/cdr-csv/Master.csv";
-
-open(DATEN, "$file") or die "Can't open file: $file: $!\n";
-(a)datafile = ;
-close(DATEN);
-
-$file = "./conf/telbook.conf";
-open(DATEN, "$file") or die "Can't open file: $file: $!\n";
-(a)telbook = ;
-close(DATEN);
-
-&Header::openpage('asterisk', 1, '');
-
-&Header::openbigbox('100%', 'LEFT');
-
-if ($cgiparams{'ACTION'} eq $Lang::tr{'update'})
-{
- $mday3 = $cgiparams{'day3'};
- $mon3 = $cgiparams{'month3'};
- $jahr3 = $cgiparams{'year3'};
- $mday4 = $cgiparams{'day4'};
- $mon4 = $cgiparams{'month4'};
- $jahr4 = $cgiparams{'year4'};
-}
-else
-{
- @datum3 = localtime(time());
- ($sec3,$min3,$stunde3,$mday3,$mon3,$jahr3,$wday3,$yday3,$isdst3)=@datum3;
- $jahr3 = $jahr3 + 1900;
- $mon3 = $mon3+1;
- if ($mon3 < 10) { $mon3 = "0$mon3"; }
- if ($mday3 <10) { $mday3= "0$mday3";}
- $sec4 = $sec3;
- $min4 = $min3;
- $stunde4 = $stunde3;
- $mday4 = $mday3;
- $mon4 = $mon3;
- $jahr4 = $jahr3;
- $wday4 = $wday3;
- $isdst4 = $isdst3;
-}
-
-if ($errormessage) {
- &openbox('100%', 'LEFT', $tr{'error messages'});
- print "$errormessage \n";
- &closebox();
-}
-
-print "\n";
-
-&Header::closebigbox();
-
-&Header::closepage();
diff --git a/html/cgi-bin/asterisk/conf.cgi b/html/cgi-bin/asterisk/conf.cgi
deleted file mode 100644
index 2dd8cf0a8..000000000
--- a/html/cgi-bin/asterisk/conf.cgi
+++ /dev/null
@@ -1,161 +0,0 @@
-#!/usr/bin/perl
-
-require '/var/ipfire/general-functions.pl';
-require "${General::swroot}/lang.pl";
-require "${General::swroot}/header.pl";
-
-&Header::showhttpheaders();
-
-my %cgiparams;
-
-&Header::getcgihash(\%cgiparams);
-
-&Header::openpage('asterisk', 1, '');
-
-&Header::openbigbox('100%', 'LEFT');
-
-if ($cgiparams{'ACTION'} eq $Lang::tr{'save'})
- {
- $conf_file = $cgiparams{'save_path'};
- open (FILE, ">$conf_file") or die "Kann die Datei nicht speichern: $!";
- flock (FILE, 2);
- print FILE "$cgiparams{'textarea'}";
- close FILE;
- &Header::openbox('100%', 'LEFT', 'info');
- print "$conf_file wurde gespeichert";
- &Header::closebox();
- }
-
-if ($cgiparams{'ACTION'} eq Bearbeiten)
- {
- $conf_file = $cgiparams{'conf_file'};
- }
-
-if ($conf_file eq '') {
- $conf_file='/var/ipfire/asterisk/extensions.conf';
- }
-
-if ($cgiparams{'ACTION'} eq extensions)
- {
- $conf_file='/var/ipfire/asterisk/extensions.conf';
- }
-
-if ($cgiparams{'ACTION'} eq sip)
- {
- $conf_file='/var/ipfire/asterisk/sip.conf';
- }
-
-if ($cgiparams{'ACTION'} eq iax)
- {
- $conf_file='/var/ipfire/asterisk/iax.conf';
- }
-
-
-
-
-if ($errormessage) {
- &Header::openbox('100%', 'LEFT', $tr{'error messages'});
- print "$errormessage \n";
- &Header::closebox();
-}
-
-$cgiparams{'ACTION'} = '';
-
-print "
$Lang::tr{'gpl unofficial translation of the general public license v3'}
diff --git a/html/cgi-bin/hardwaregraphs.cgi b/html/cgi-bin/hardwaregraphs.cgi
index e582acfb9..5c677d815 100644
--- a/html/cgi-bin/hardwaregraphs.cgi
+++ b/html/cgi-bin/hardwaregraphs.cgi
@@ -167,7 +167,7 @@ END
print <
-
+
diff --git a/html/cgi-bin/optionsfw.cgi b/html/cgi-bin/optionsfw.cgi
index 47aba59cb..8c996802c 100644
--- a/html/cgi-bin/optionsfw.cgi
+++ b/html/cgi-bin/optionsfw.cgi
@@ -323,7 +323,7 @@ END
-
+
@@ -345,7 +345,7 @@ print <
-
+
END
print "";
print"
";
diff --git a/html/cgi-bin/upnp.cgi b/html/cgi-bin/upnp.cgi
deleted file mode 100644
index 07dfa2677..000000000
--- a/html/cgi-bin/upnp.cgi
+++ /dev/null
@@ -1,228 +0,0 @@
-#!/usr/bin/perl
-###############################################################################
-# #
-# IPFire.org - A linux based firewall #
-# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
-# #
-# This program is free software: you can redistribute it and/or modify #
-# it under the terms of the GNU General Public License as published by #
-# the Free Software Foundation, either version 3 of the License, or #
-# (at your option) any later version. #
-# #
-# This program is distributed in the hope that it will be useful, #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
-# GNU General Public License for more details. #
-# #
-# You should have received a copy of the GNU General Public License #
-# along with this program. If not, see . #
-# #
-###############################################################################
-
-use strict;
-# enable only the following on debugging purpose
-#use warnings;
-#use CGI::Carp 'fatalsToBrowser';
-
-require '/var/ipfire/general-functions.pl';
-require "${General::swroot}/lang.pl";
-require "${General::swroot}/header.pl";
-
-my %upnpsettings = ();
-my %netsettings = ();
-my $message = "";
-my $errormessage = "";
-my %selected= () ;
-
-my %servicenames =('UPnP Daemon' => 'upnpd',);
-
-my %color = ();
-my %mainsettings = ();
-&General::readhash("${General::swroot}/main/settings", \%mainsettings);
-&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color);
-
-&Header::showhttpheaders();
-############################################################################################################################
-############################################### Setzen von Standartwerten ##################################################
-
-$upnpsettings{'DEBUGMODE'} = '3';
-$upnpsettings{'FORWARDRULES'} = 'yes';
-$upnpsettings{'DOWNSTREAM'} = '1048576';
-$upnpsettings{'UPSTREAM'} = '131072';
-$upnpsettings{'DESCRIPTION'} = 'gatedesc.xml';
-$upnpsettings{'XML'} = '/etc/linuxigd';
-$upnpsettings{'ENABLED'} = 'off';
-$upnpsettings{'friendlyName'} = 'IPFire Gateway';
-### Values that have to be initialized
-$upnpsettings{'ACTION'} = '';
-
-&General::readhash("${General::swroot}/upnp/settings", \%upnpsettings);
-&General::readhash("${General::swroot}/ethernet/settings", \%netsettings);
-&Header::getcgihash(\%upnpsettings);
-
-&Header::openpage('UPnP', 1, '');
-&Header::openbigbox('100%', 'left', '', $errormessage);
-
-############################################################################################################################
-################################################### Speichern der Config ###################################################
-
-if ($upnpsettings{'ACTION'} eq $Lang::tr{'save'})
- {
- $upnpsettings{'DOWNSTREAM'} = $upnpsettings{'DOWNSTREAM'} * 1024;
- $upnpsettings{'UPSTREAM'} = $upnpsettings{'UPSTREAM'} * 1024;
- &General::writehash("${General::swroot}/upnp/settings", \%upnpsettings);
-
- open (FILE, ">${General::swroot}/upnp/upnpd.conf") or die "Can't save the upnp config: $!";
- flock (FILE, 2);
-
- print FILE <$errormessage\n";
- print " \n";
- &Header::closebox();
- }
-
-############################################################################################################################
-############################################################################################################################
-
-&Header::openbox('100%', 'center', 'UPnP');
-print <
-