Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sca-patterns-sle12 for openSUSE:Factory checked in at 2021-06-01 10:37:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sca-patterns-sle12 (Old) and /work/SRC/openSUSE:Factory/.sca-patterns-sle12.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sca-patterns-sle12" Tue Jun 1 10:37:16 2021 rev:17 rq:895598 version:1.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/sca-patterns-sle12/sca-patterns-sle12.changes 2021-05-20 19:25:20.845871848 +0200 +++ /work/SRC/openSUSE:Factory/.sca-patterns-sle12.new.1898/sca-patterns-sle12.changes 2021-06-01 10:38:18.752899956 +0200 @@ -1,0 +2,22 @@ +Wed May 26 20:43:23 UTC 2021 - Jason Record <jason.rec...@suse.com> + +- Updated regular patterns (1) + + sle12all/lvm-volume-list-7016683.py: Fixed execution error (bsc#1176021) + +------------------------------------------------------------------- +Mon May 24 17:41:26 UTC 2021 - Jason Record <jason.rec...@suse.com> + +- Changes in version 1.0.3 + - New regular patterns (2) + + sle12all/coredumpctl-000018634.py: How to obtain systemd service core dumps (TID000018634) + + sle12all/scatool-000020253.py: scatool fails to analyze supportconfigs with xz compression (bsc#1186316) + - Deleted regular patterns (1) + + sle12all/bhc-scc.sh: Pattern removed (bsc#1184594) + - Updated sle12all/vmcore-00002.pl to find the list of analysis files + +------------------------------------------------------------------- +Thu May 20 17:06:18 UTC 2021 - Jason Record <jason.rec...@suse.com> + +- Fixed crosstalk message strings (bsc#1186312) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sca-patterns-sle12-1.0.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/bhc-scc.sh new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/bhc-scc.sh --- old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/bhc-scc.sh 2021-03-01 22:55:34.421828777 +0100 +++ new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/bhc-scc.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,78 +0,0 @@ -#!/bin/bash - -# Title: Validate supportconfig -# Description: Confirms supportconfig is current -# Modified: 2013 Nov 19 - -CURRENT_VERSION='2.25-390' - -############################################################################## -# Copyright (C) 2013 SUSE LLC -############################################################################## -# -# 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; version 2 of the License. -# -# 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 <http://www.gnu.org/licenses/>. -# -# Authors/Contributors: -# Jason Record (jrec...@suse.com) -# -############################################################################## - -############################################################################## -# Module Definition -############################################################################## - -LIBS='Core.rc SUSE.rc' -for LIB in $LIBS; do [[ -s ${BASHLIB}/${LIB} ]] && . ${BASHLIB}/${LIB} || { echo "Error: Library not found - ${BASHLIB}/${LIB}"; exit 5; }; done - -############################################################################## -# Overriden (eventually or in part) from Core.rc -############################################################################## - -PATTERN_RESULTS=(\ -"META_CLASS=Basic Health" \ -"META_CATEGORY=SLE" \ -"META_COMPONENT=Supportconfig" \ -"PATTERN_ID=$(basename $0)" \ -"PRIMARY_LINK=META_LINK_CoolSolution" \ -"OVERALL=$GSTATUS" \ -"OVERALL_INFO=None" \ -"META_LINK_CoolSolution=http://www.novell.com/coolsolutions/tools/16106.html" \ -"META_LINK_Patch=https://www.suse.com/communities/conversations/files/2013/03/supportutils-plugin-updater-1.0-25.1.noarch.rpm" \ - -) - -processOptions "$@" -packageInstalled 'ntsutils' -if (( $? )) -then - updateStatus $STATUS_CRITICAL "Supportconfig from ntsutils package is deprecated, remove ntsutils and install the supportutils package" -else - getSCInfo # populates SC_INFO_VERSION - compareVersions "$SC_INFO_VERSION" "$CURRENT_VERSION" - RESULTS=$? - printDebug "main RESULTS" "$RESULTS" - if (( $RESULTS < $COMPARED_EQUAL )) - then - packageInstalled 'supportutils-plugin-updater' - if (( $? )) - then - updateStatus $STATUS_WARNING "Supportconfig version $SC_INFO_VERSION is outdated, run updateSupportutils to update" - else - updateStatus $STATUS_WARNING "Supportconfig version $SC_INFO_VERSION is outdated, update supportutils package for better results" - fi - else - setStatus $STATUS_SUCCESS "Supportconfig version $SC_INFO_VERSION is sufficient" - fi -fi -printPatternResults - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/coredumpctl-000018634.py new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/coredumpctl-000018634.py --- old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/coredumpctl-000018634.py 1970-01-01 01:00:00.000000000 +0100 +++ new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/coredumpctl-000018634.py 2021-05-24 16:36:02.423157388 +0200 @@ -0,0 +1,81 @@ +#!/usr/bin/python +# +# Title: Pattern for TID000018634 +# Description: How to obtain systemd service core dumps +# Source: Basic Python Pattern Template v0.3.4 +# Options: SLE,Application,Core,coredumpctl,000018634,0,1,0,0 +# Modified: 2021 May 24 +# +############################################################################## +# Copyright (C) 2021 SUSE LLC +############################################################################## +# +# 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; version 2 of the License. +# +# 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 <http://www.gnu.org/licenses/>. +# +# Authors/Contributors: +# Jason Record <jason.rec...@suse.com> +# +############################################################################## + +import re +import os +import Core + +META_CLASS = "SLE" +META_CATEGORY = "Application" +META_COMPONENT = "Core" +PATTERN_ID = os.path.basename(__file__) +PRIMARY_LINK = "META_LINK_TID" +OVERALL = Core.TEMP +OVERALL_INFO = "NOT SET" +OTHER_LINKS = "META_LINK_TID=https://www.suse.com/support/kb/doc/?id=000018634" +Core.init(META_CLASS, META_CATEGORY, META_COMPONENT, PATTERN_ID, PRIMARY_LINK, OVERALL, OVERALL_INFO, OTHER_LINKS) + +CORE_LIST = {} + +############################################################################## +# Local Function Definitions +############################################################################## + +def journalAppCores(): + global CORE_LIST + fileOpen = "crash.txt" + section = "/coredumpctl list" + content = [] + CONFIRMED = re.compile("", re.IGNORECASE) + if Core.isFileActive(fileOpen): + if Core.getRegExSection(fileOpen, section, content): + for line in content: + if line.startswith("TIME"): + continue + elif( "No coredumps found" in line ): + continue + else: + CORE_LIST[line.split()[-1]] = True + + if( len(CORE_LIST.keys()) > 0 ): + return True + else: + return False + +############################################################################## +# Main Program Execution +############################################################################## + +if( journalAppCores() ): + Core.updateStatus(Core.CRIT, "Detected application core dumps in the journal: " + ' '.join(CORE_LIST.keys())) +else: + Core.updateStatus(Core.IGNORE, "No application core dumps found in the journal") + +Core.printPatternResults() + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/lvm-volume-list-7016683.py new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/lvm-volume-list-7016683.py --- old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/lvm-volume-list-7016683.py 2021-03-01 22:55:34.425828674 +0100 +++ new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/lvm-volume-list-7016683.py 2021-05-26 18:32:28.251622361 +0200 @@ -2,10 +2,10 @@ # Title: Check for volume_list exit status # Description: Validate volume_list does not generate exit 5 -# Modified: 2015 Jul 30 +# Modified: 2021 May 26 # ############################################################################## -# Copyright (C) 2015 SUSE LLC +# Copyright (C) 2015-2021 SUSE LLC ############################################################################## # # This program is free software; you can redistribute it and/or modify @@ -21,7 +21,7 @@ # along with this program; if not, see <http://www.gnu.org/licenses/>. # # Authors/Contributors: -# Jason Record (jrec...@suse.com) +# Jason Record <jason.rec...@suse.com> # ############################################################################## @@ -60,7 +60,7 @@ SERVICE = 'lvm2-activation.service' SERVICE_INFO = SUSE.getServiceDInfo(SERVICE) LVM_CONFIG = SUSE.getConfigFileLVM('activation') -if "vgchange -aay" in SERVICE_INFO['ExecStart']: #auto activation detected +if( 'ExecStart' in SERVICE_INFO and "vgchange -aay" in SERVICE_INFO['ExecStart'] ): #auto activation detected if( LVM_CONFIG ): # a valid lvm config file exists if( 'volume_list' in LVM_CONFIG.keys() ): # there is a volume_list entry in lvm.conf if( len(LVM_CONFIG['volume_list']) > 0 ): # there are values associated with the volume_list entry diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/scatool-000020253.py new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/scatool-000020253.py --- old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/scatool-000020253.py 1970-01-01 01:00:00.000000000 +0100 +++ new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/scatool-000020253.py 2021-05-20 21:27:54.217274263 +0200 @@ -0,0 +1,62 @@ +#!/usr/bin/python +# +# Title: Pattern for TID000020253 +# Description: scatool fails to analyze supportconfigs with xz compression +# Source: Package Version Pattern Template v0.3.8 +# Options: SLE,Monitoring,SCA,scatool,000020253,1155181,sca-server-report,1.0.1-4.3.1,0,0 +# Modified: 2021 May 20 +# +############################################################################## +# Copyright (C) 2021, SUSE LLC +############################################################################## +# +# 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; version 2 of the License. +# +# 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 <http://www.gnu.org/licenses/>. +# +# Authors/Contributors: +# Jason Record <jason.rec...@suse.com> +# +############################################################################## + +import os +import Core +import SUSE + +META_CLASS = "SLE" +META_CATEGORY = "Monitoring" +META_COMPONENT = "SCA" +PATTERN_ID = os.path.basename(__file__) +PRIMARY_LINK = "META_LINK_TID" +OVERALL = Core.TEMP +OVERALL_INFO = "NOT SET" +OTHER_LINKS = "META_LINK_TID=https://www.suse.com/support/kb/doc/?id=000020253|META_LINK_BUG=https://bugzilla.suse.com/show_bug.cgi?id=1186316" + +Core.init(META_CLASS, META_CATEGORY, META_COMPONENT, PATTERN_ID, PRIMARY_LINK, OVERALL, OVERALL_INFO, OTHER_LINKS) + +############################################################################## +# Main Program Execution +############################################################################## + +RPM_NAME = 'sca-server-report' +RPM_VERSION_FIXED = '1.0.1-4.3' +if( SUSE.packageInstalled(RPM_NAME) ): + INSTALLED_VERSION = SUSE.compareRPM(RPM_NAME, RPM_VERSION_FIXED) + if( INSTALLED_VERSION >= 0 ): + Core.updateStatus(Core.IGNORE, "Bug fixes applied for " + RPM_NAME + "") + else: + Core.updateStatus(Core.CRIT, "SCA Tool unable to process xz compressed supportconfigs") +else: + Core.updateStatus(Core.ERROR, "ERROR: " + RPM_NAME + " not installed") + + +Core.printPatternResults() + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/vmcore-00002.pl new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/vmcore-00002.pl --- old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/vmcore-00002.pl 2021-03-01 22:55:34.429828571 +0100 +++ new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12all/vmcore-00002.pl 2021-05-24 19:41:05.721439690 +0200 @@ -2,10 +2,10 @@ # Title: Kernel Core Analysis Needed # Description: Detects the need for a kernel core analysis -# Modified: 2013 Jun 27 +# Modified: 2021 May 24 ############################################################################## -# Copyright (C) 2013 SUSE LLC +# Copyright (C) 2013-2021 SUSE LLC ############################################################################## # # This program is free software; you can redistribute it and/or modify @@ -21,7 +21,7 @@ # along with this program; if not, see <http://www.gnu.org/licenses/>. # Authors/Contributors: -# Jason Record (jrec...@suse.com) +# Jason Record <jason.rec...@suse.com> ############################################################################## @@ -57,7 +57,7 @@ SDP::Core::printDebug('> vmcoresFound', 'BEGIN'); my @LINE_CONTENT = (); my $FILE_OPEN = 'crash.txt'; - my $SECTION = 'bin/find /'; + my $SECTION = 'bin/find '; my @CONTENT = (); if ( SDP::Core::getSection($FILE_OPEN, $SECTION, \@CONTENT) ) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp2/crosstalk_122-000019643.py new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp2/crosstalk_122-000019643.py --- old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp2/crosstalk_122-000019643.py 2021-04-21 19:25:38.380981336 +0200 +++ new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp2/crosstalk_122-000019643.py 2021-05-19 19:05:37.895847139 +0200 @@ -75,12 +75,12 @@ if( INSTALLED_VERSION_KERN >= 0 ): Core.updateStatus(Core.IGNORE, "Bug fixes applied for " + RPM_NAME + " and kernel version") else: - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update kernel to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update kernel to avoid") else: if( INSTALLED_VERSION_KERN >= 0 ): - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update " + RPM_NAME + " to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update " + RPM_NAME + " to avoid") else: - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update system to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update system to avoid") else: Core.updateStatus(Core.ERROR, "ERROR: Intel CPU not found") else: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp3/crosstalk_123-000019643.py new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp3/crosstalk_123-000019643.py --- old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp3/crosstalk_123-000019643.py 2021-04-21 19:24:36.278485965 +0200 +++ new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp3/crosstalk_123-000019643.py 2021-05-19 19:05:36.947872366 +0200 @@ -75,12 +75,12 @@ if( INSTALLED_VERSION_KERN >= 0 ): Core.updateStatus(Core.IGNORE, "Bug fixes applied for " + RPM_NAME + " and kernel version") else: - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update kernel to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update kernel to avoid") else: if( INSTALLED_VERSION_KERN >= 0 ): - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update " + RPM_NAME + " to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update " + RPM_NAME + " to avoid") else: - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update system to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update system to avoid") else: Core.updateStatus(Core.ERROR, "ERROR: Intel CPU not found") else: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp4/crosstalk_124-000019643.py new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp4/crosstalk_124-000019643.py --- old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp4/crosstalk_124-000019643.py 2021-04-21 19:23:10.524574350 +0200 +++ new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp4/crosstalk_124-000019643.py 2021-05-19 19:05:36.119894399 +0200 @@ -75,12 +75,12 @@ if( INSTALLED_VERSION_KERN >= 0 ): Core.updateStatus(Core.IGNORE, "Bug fixes applied for " + RPM_NAME + " and kernel version") else: - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update kernel to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update kernel to avoid") else: if( INSTALLED_VERSION_KERN >= 0 ): - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update " + RPM_NAME + " to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update " + RPM_NAME + " to avoid") else: - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update system to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update system to avoid") else: Core.updateStatus(Core.ERROR, "ERROR: Intel CPU not found") else: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp5/crosstalk_125-000019643.py new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp5/crosstalk_125-000019643.py --- old/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp5/crosstalk_125-000019643.py 2021-04-21 19:21:33.790955211 +0200 +++ new/sca-patterns-sle12-1.0.3/patterns/SLE/sle12sp5/crosstalk_125-000019643.py 2021-05-19 19:05:34.971924949 +0200 @@ -75,12 +75,12 @@ if( INSTALLED_VERSION_KERN >= 0 ): Core.updateStatus(Core.IGNORE, "Bug fixes applied for " + RPM_NAME + " and kernel version") else: - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update kernel to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update kernel to avoid") else: if( INSTALLED_VERSION_KERN >= 0 ): - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update " + RPM_NAME + " to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update " + RPM_NAME + " to avoid") else: - Core.updateStatus(Core.WARN, "Risk of L1D data cache eviction and vector register sampling, update system to avoid") + Core.updateStatus(Core.WARN, "Risk of CrossTalk attack against special Intel CPU registers, update system to avoid") else: Core.updateStatus(Core.ERROR, "ERROR: Intel CPU not found") else: