]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Tripwire-Policy gefixt.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 19 Jul 2007 23:20:04 +0000 (23:20 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 19 Jul 2007 23:20:04 +0000 (23:20 +0000)
Backupctrl zur ISO gefuegt.
Das logger-Tool loggt nicht korrekt in eine Datei.
Unser IPSec-restart-Problem mit einem kleinem Patch behoben.
  Das das ifconfig Fehler liefert nehmen wir IP.
  Bitte testet dies noch einmal langfristig!!!

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@713 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/etc/syslog.conf
config/rootfiles/common/misc-progs
config/tripwire/twpol.txt
lfs/openswan
src/install+setup/install/main.c
src/pakfire/lib/functions.pl
src/patches/openswan-2.4.9-startklips-1.patch [new file with mode: 0644]

index 6db495233f3899a0e40706bd1fa7cd9f269f286b..a34bfda36adee9791e508ded82ae193fbd18d542 100644 (file)
@@ -5,10 +5,10 @@
 # Log anything (except mail) of level info or higher.
 # Don't log private authentication messages!
 # local0.* any dhcpcd log (even debug) in messages
-daemon.*;local0.*;local2.*;*.info;mail.none;authpriv.* -/var/log/messages
+daemon.*;local0.*;local2.*;*.info;mail.none;authpriv.* /var/log/messages
 
 # Log crons
-#cron.*                                                                                -/var/log/cron.log
+#cron.*                                                                                /var/log/cron.log
 
 # Everybody gets emergency messages
 *.emerg                                                                                *
@@ -23,4 +23,4 @@ local7.*                                                                      /var/log/boot.log
 #*.*                                                                                   @hostname.domain
 
 # Postfix logs
-mail.*                                                                         -/var/log/mail
+mail.*                                                                         /var/log/mail
index fb7acbf75ef8af4855bcfed93f73ad05f0b3d1e3..91085966be27b09ea44c29cd9c704563fdd008ec 100644 (file)
@@ -1,3 +1,6 @@
+#usr/local/bin/applejuicectrl
+usr/local/bin/backupctrl
+#usr/local/bin/clamavctrl
 usr/local/bin/dhcpctrl
 usr/local/bin/extrahdctrl
 usr/local/bin/getipstat
@@ -6,12 +9,13 @@ usr/local/bin/ipfirereboot
 usr/local/bin/ipsecctrl
 usr/local/bin/launch-ether-wake
 usr/local/bin/logwatch
+#usr/local/bin/mpfirectrl
 usr/local/bin/openvpnctrl
 usr/local/bin/outgoingfwctrl
+usr/local/bin/pakfire
 usr/local/bin/qosctrl
 usr/local/bin/rebuildhosts
 usr/local/bin/redctrl
-usr/local/bin/pakfire
 usr/local/bin/restartssh
 usr/local/bin/restartsyslogd
 usr/local/bin/restartwireless
@@ -25,4 +29,5 @@ usr/local/bin/smartctrl
 usr/local/bin/snortctrl
 usr/local/bin/squidctrl
 usr/local/bin/timectrl
+#usr/local/bin/tripwirectrl
 usr/local/bin/upnpctrl
index 96d5bd9d87208661b240bc0be7fd0b2079f8feb2..5591e7dc4562780e71c1202eecf7d8242454e75f 100644 (file)
@@ -39,7 +39,7 @@ SIG_HI        = 100 ;                # Critical files that are significant point
   /sbin                            -> $(SEC_CRIT) ;
   /usr                             -> $(SEC_CRIT) ;
   !/usr/src                                       ;
-  !usr/share/clamav                               ;
+  !/usr/share/clamav                               ;
   /etc/mtab                        -> $(SEC_CONFIG) -i ; # Inode number changes on any mount/unmount
 
   #don't scan the individual reports
index 3253ec6c2bfd7e81be0e04a2e22e65bba7409871..9bc8f34e525163dc3cdf31147d266f3dcfdde783 100644 (file)
@@ -89,5 +89,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        ln -sf $(CONFIG_ROOT)/ca    /etc/ipsec.d/cacerts
        ln -sf $(CONFIG_ROOT)/certs /etc/ipsec.d/certs
        ln -sf $(CONFIG_ROOT)/crls  /etc/ipsec.d/crls
+       
+       patch -Np0 < $(DIR_SRC)/src/patches/openswan-2.4.9-startklips-1.patch
+       
        #@rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 43ee6973414ac38acdf500b12667dcee4cd216d5..1c05669796f70619b3d1a843bf57646d8300026d 100644 (file)
@@ -159,8 +159,12 @@ int main(int argc, char *argv[])
                if (strstr (line, "unattended") != NULL) {
                    unattended = 1;
                }
-               // Loading the cdrom-filesystem
+               // Loading the cdrom-filesystem and ext2
                mysystem("/sbin/modprobe iso9660");
+               mysystem("/sbin/modprobe ext2");
+               
+               // Loading the via_rhine driver because it isn't detected correctly
+               mysystem("/sbin/modprobe via_rhine");
        }
 
        if (unattended) {
index 22bf66947b88860b4abec94cdcd6e49ba9746f8f..4927a8d303b98d1c905062f893fd2bee8fb192a0 100644 (file)
@@ -66,7 +66,10 @@ sub message {
 
 sub logger {
        my $log = shift;
-       system("logger -f /var/log/pakfire.log -t pakfire \"$log\"") if "$log";
+       if ($log) {
+               system("echo \"`date`: $log\" >> /var/log/pakfire.log");
+               #system("logger -t pakfire \"$log\"");
+       }
 }
 
 sub usage {
diff --git a/src/patches/openswan-2.4.9-startklips-1.patch b/src/patches/openswan-2.4.9-startklips-1.patch
new file mode 100644 (file)
index 0000000..9638a7e
--- /dev/null
@@ -0,0 +1,52 @@
+--- /usr/lib/ipsec/_startklips_old     2007-07-16 04:14:15.000000000 +0000
++++ /usr/lib/ipsec/_startklips 2007-07-19 22:12:37.000000000 +0000
+@@ -104,23 +104,23 @@
+       # figure out ifconfig for interface
+       addr=
+-      eval `ifconfig $phys |
+-              awk '$1 == "inet" && $2 ~ /^addr:/ && $NF ~ /^Mask:/ {
+-                      gsub(/:/, " ", $0)
+-                      print "addr=" $3
+-                      other = $5
+-                      if ($4 == "Bcast")
+-                              print "type=broadcast"
+-                      else if ($4 == "P-t-P")
+-                              print "type=pointopoint"
+-                      else if (NF == 5) {
+-                              print "type="
+-                              other = ""
+-                      } else
+-                              print "type=unknown"
+-                      print "otheraddr=" other
+-                      print "mask=" $NF
+-              }'`
++      eval `ip addr show red0 | awk '$1 == "inet"  { gsub(/\//, " "); 
++                              print "addr=" $2;
++                              print "mask=" $3;
++                              print "otheraddr=" $5;
++                      }'`
++      eval `ip addr show red0 | awk '$3 ~ /BROADCAST|POINTTOPOINT/ { 
++                              if ($3 ~ /BROADCAST/) 
++                                      print "type=broadcast"; 
++                              else if ($3 ~ /POINTTOPOINT/) 
++                                      print "type=pointtopoint";
++                              else {
++                                      print "type=";
++                                      print "otheraddr=";
++                              }
++                      }'`
++      eval `whatmask /$mask | awk -F': ' '$1 ~ /^Netmask =/ { print "mask=" $2 }'`
++      
+       if test " $addr" = " "
+       then
+               echo "unable to determine address of \`$phys'"
+@@ -129,7 +129,7 @@
+       if test " $type" = " unknown"
+       then
+               echo "\`$phys' is of an unknown type"
+-              exit 1
++              exit 1 
+       fi
+       if test " $omtu" != " "
+       then