logwatch-7.4.2-openssh-hpn.patch 880 B

1234567891011121314151617
  1. Add an 'ignore' line for the HPN patch that we enable on our openssh by default.
  2. https://sourceforge.net/tracker/?func=detail&aid=3257504&group_id=312875&atid=1316824
  3. --- logwatch-7.4.2/scripts/services/sshd
  4. +++ logwatch-7.4.2/scripts/services/sshd
  5. @@ -297,7 +297,8 @@
  6. ($ThisLine =~ /Starting session: (forced-command|subsystem|shell|command)/ ) or
  7. ($ThisLine =~ /Found matching \w+ key:/ ) or
  8. ($ThisLine =~ /User child is on pid \d/ ) or
  9. - ($ThisLine =~ /Nasty PTR record .* is set up for [\da-fA-F.:]+, ignoring/)
  10. + ($ThisLine =~ /Nasty PTR record .* is set up for [\da-fA-F.:]+, ignoring/) or
  11. + ($ThisLine =~ /^SSH: Server;L[Tt]ype: /)
  12. ) {
  13. # Ignore these
  14. } elsif ( my ($Method,$User,$Host,$Port,$Key) = ($ThisLine =~ /^Accepted (\S+) for ((?:invalid user )?\S+) from ([\d\.:a-f]+) port (\d+) ssh[12](?:: (\w+))?/) ) {