From 0a88755485a67e1e29c62196cc506763594f2154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= Date: Thu, 1 Feb 2018 08:36:18 +0100 Subject: [PATCH 1/2] Do not fail aide_scan_notification with other email adresses The rule aide_scan_notification says that AIDE should notify appropriate personnell of the detials of an AIDE scan. The check currently requires that the email address of the appropriate personell starts with 'root@'. In practice, the email address could be any email address. The check should match any email address. Fixes RHBZ#1540505 --- shared/checks/oval/aide_scan_notification.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/checks/oval/aide_scan_notification.xml b/shared/checks/oval/aide_scan_notification.xml index 3293efb084..3aba02d144 100644 --- a/shared/checks/oval/aide_scan_notification.xml +++ b/shared/checks/oval/aide_scan_notification.xml @@ -23,7 +23,7 @@ /etc/crontab - ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*root@.*$ + ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*.*@.*$ 1 @@ -32,7 +32,7 @@ /var/spool/cron/root - ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*root@.*$ + ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*.*@.*$ 1 @@ -42,7 +42,7 @@ /etc/cron.(d|daily|weekly|monthly) ^.*$ - ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*root@.*$ + ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*.*@.*$ 1 From 381ca3e54eb2e79c18f613a0d95e187e5e622005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= Date: Mon, 5 Feb 2018 09:58:23 +0100 Subject: [PATCH 2/2] Match at least 1 character in email address --- shared/checks/oval/aide_scan_notification.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/checks/oval/aide_scan_notification.xml b/shared/checks/oval/aide_scan_notification.xml index 3aba02d144..b9f8e78929 100644 --- a/shared/checks/oval/aide_scan_notification.xml +++ b/shared/checks/oval/aide_scan_notification.xml @@ -23,7 +23,7 @@ /etc/crontab - ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*.*@.*$ + ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*.+@.+$ 1 @@ -32,7 +32,7 @@ /var/spool/cron/root - ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*.*@.*$ + ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*.+@.+$ 1 @@ -42,7 +42,7 @@ /etc/cron.(d|daily|weekly|monthly) ^.*$ - ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*.*@.*$ + ^.*/usr/sbin/aide[\s]*\-\-check.*\|.*/bin/mail[\s]*-s[\s]*".*"[\s]*.+@.+$ 1