diff options
author | Bryan Stine <battousai@gentoo.org> | 2004-03-23 19:12:58 +0000 |
---|---|---|
committer | Bryan Stine <battousai@gentoo.org> | 2004-03-23 19:12:58 +0000 |
commit | 72537d3e50d3372d0cf57277a53aae24e2732374 (patch) | |
tree | e4d92236e24d1134d51b5b8f2b99badefe2ed2ff /net-firewall/psad/files | |
parent | Ditching old stuff, bumping 1.3.1 to stable (diff) | |
download | historical-72537d3e50d3372d0cf57277a53aae24e2732374.tar.gz historical-72537d3e50d3372d0cf57277a53aae24e2732374.tar.bz2 historical-72537d3e50d3372d0cf57277a53aae24e2732374.zip |
Expunging old metalog patch.
Diffstat (limited to 'net-firewall/psad/files')
-rw-r--r-- | net-firewall/psad/files/psad-1.2.4-metalog.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/net-firewall/psad/files/psad-1.2.4-metalog.patch b/net-firewall/psad/files/psad-1.2.4-metalog.patch deleted file mode 100644 index 558ce59a0b01..000000000000 --- a/net-firewall/psad/files/psad-1.2.4-metalog.patch +++ /dev/null @@ -1,59 +0,0 @@ ---- /root/psad 2003-10-26 16:49:31.000000000 +0100 -+++ ./psad 2003-10-26 18:53:43.000000000 +0100 -@@ -3618,5 +3618,5 @@ - - die ' ** No system logger config file could be found.' -- unless (-e '/etc/syslog.conf' or -e '/etc/syslog-ng/syslog-ng.conf'); -+ unless (-e '/etc/syslog.conf' or -e '/etc/syslog-ng/syslog-ng.conf' or -e '/etc/metalog/metalog.conf'); - - ### look for psadfifo in some system logger config file -@@ -3696,4 +3696,49 @@ - } - } -+# Metalog support added by Dennis Freise <cat@final-frontier.ath.cx> -+ if (-e '/etc/metalog/metalog.conf') { -+ unless (-e '/etc/metalog/metalog.conf.orig') { -+ copy '/etc/metalog/metalog.conf', -+ '/etc/metalog/metalog.conf.orig'; -+ } -+ open RS, '< /etc/metalog/metalog.conf' or -+ die " ** Unable to open /etc/metalog/metalog.conf: $!\n"; -+ my @lines = <RS>; -+ close RS; -+ -+ my $found = 0; -+ for my $line (@lines) { -+ if ($line =~ m/psadpipe.sh/) { -+ $found = 1; -+ last; -+ } -+ } -+ unless ($found) { -+ open METALOG, '> /etc/metalog/metalog.conf' or -+ die " ** Unable to open /etc/metalog/metalog.conf: $!"; -+ -+ print METALOG "\n"; -+ print METALOG "\nPSAD :\n", -+ " facility = \"kern\"\n"; -+ print METALOG ' command = ', -+ "\"/usr/sbin/psadpipe.sh\"\n"; -+ close METALOG; -+ &Psad::psyslog('psad', '.. reconfiguring metalog to write ' . -+ "kern-facility messages to /usr/sbin/psadpipe.sh"); -+ -+ open PIPESCRIPT, '> /usr/sbin/psadpipe.sh' or -+ die " ** Unable to open /usr/sbin/psadpipe.sh: $!"; -+ print PIPESCRIPT "#!/bin/sh\n\n"; -+ print PIPESCRIPT "echo \"\$3\" >> $config{'PSAD_FIFO'}\n"; -+ close PIPESCRIPT; -+ chmod 0700, '/usr/sbin/psadpipe.sh'; -+ &Psad::psyslog('psad', '.. generated /usr/sbin/psadpipe.sh which writes ' . -+ "to $config{'PSAD_FIFO'}"); -+ -+# Metalog seems to simply die on SIGHUP and SIGALRM, and I found no signal or option to reload it's config... :-( -+ die "All files written. You have to manually restart metalog! When done, start psad again."; -+# system "$cmds{'killall'} -HUP metalog"; -+ } -+ } - - ### make sure the permissions on these files is 0600 |