[Logwatch-Devel] Solaris patch for secure service script 'ignore_services'

David Baldwin david.baldwin at anu.edu.au
Wed Sep 14 20:59:39 MST 2005


'ignore_services' from secure.conf failing because some services don't have 
[PID]in original log - e.g.

camrm: [ID 702911 local1.error] FIN: Job 1300030 finished, status: SUCCESS 
hostid: store    volid: sfserve3
camdbm: [ID 702911 local1.error] ADM: DBM complete: 64 ERR records, 0 WRN 
records - check DBM log file



--- scripts/services/secure     13 Sep 2005 18:42:58 -0000      1.56
+++ scripts/services/secure     15 Sep 2005 03:52:55 -0000
@@ -81,7 +81,7 @@
     #Solaris ID filter -mgt
     $ThisLine =~ s/\[ID [0-9]+ [a-z]+\.[a-z]+\] //;
     my $temp = $ThisLine;
-   $temp =~ s/^([^[]+).*/$1/;
+   $temp =~ s/^([^[:]+).*/$1/;
     if ($Ignore =~ /\b\Q$temp\E\b/i) { next; }
     if (
        ( $ThisLine =~ /pam_succeed_if: requirement "uid < 100" (was|not) met by 
user /) or


-- 
=====================================================================+
David Baldwin                   mailto:David.Baldwin at anu.edu.au      |
Supercomputer Facility          URL: http://www.anu.edu.au/~u8611156 |
II Services, Huxley Building    Ph:  {intl+61+2 | (02)} 6125 0321    |
Australian National University  FAX: {intl+61+2 | (02)} 6125 8199    |
Canberra ACT 0200, AUSTRALIA  *======================================+


More information about the Logwatch-Devel mailing list