From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan White Subject: RHEL 6 audit.rules question Date: Wed, 30 Jul 2014 20:21:45 +0000 (GMT) Message-ID: <9d974eab-ed36-47dc-8cab-06897c0c424c@me.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9188262361343555059==" Return-path: Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.20]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6UKLpf3009313 for ; Wed, 30 Jul 2014 16:21:51 -0400 Received: from st11p02mm-asmtp001.mac.com (st11p02mm-asmtp001.mac.com [17.172.220.236]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6UKLnOr017465 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL) for ; Wed, 30 Jul 2014 16:21:50 -0400 Received: from st11p02mm-spool002.mac.com ([17.172.220.247]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTP id <0N9J00LTCKJXIE10@st11p02mm-asmtp001.mac.com> for linux-audit@redhat.com; Wed, 30 Jul 2014 20:21:49 +0000 (GMT) Received: from localhost ([17.172.220.163]) by st11p02mm-spool002.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTP id <0N9J008E7KK9C810@st11p02mm-spool002.mac.com> for linux-audit@redhat.com; Wed, 30 Jul 2014 20:21:45 +0000 (GMT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com --===============9188262361343555059== Content-type: multipart/alternative; boundary="Boundary_(ID_O/ybkKKIcAZcFWnilzxDTw)" --Boundary_(ID_O/ybkKKIcAZcFWnilzxDTw) Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: quoted-printable Does the system allow for the import/include of groups of rules in other f= iles -=0A=EF=BB=BFlike logrotate and /etc/logrotate.d/* ?=0A=0A=E2=80=9CSo= metimes I think the surest sign that intelligent life exists elsewhere in = the universe is that none of it has tried to contact us.=E2=80=9D (Bill W= aterson: Calvin & Hobbes)= --Boundary_(ID_O/ybkKKIcAZcFWnilzxDTw) Content-type: multipart/related; boundary="Boundary_(ID_zPub0wTTT3/P0F8rKKAm/w)"; type="text/html" --Boundary_(ID_zPub0wTTT3/P0F8rKKAm/w) Content-type: text/html; charset=utf-8 Content-transfer-encoding: quoted-printable
Does the system allow for the import/include of groups of rules in ot= her files -
like logrotate and /etc/logrotate.d/* ?
=E2=80=9CSometimes I think the su=
rest sign that intelligent life exists elsewhere in the universe is that n=
one of it has tried to contact us.=E2=80=9D  (Bill Waterson: Calvin & =
Hobbes)
= --Boundary_(ID_zPub0wTTT3/P0F8rKKAm/w)-- --Boundary_(ID_O/ybkKKIcAZcFWnilzxDTw)-- --===============9188262361343555059== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============9188262361343555059==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: RHEL 6 audit.rules question Date: Wed, 30 Jul 2014 16:33:39 -0400 Message-ID: <2682321.Va77HSEmM0@x2> References: <9d974eab-ed36-47dc-8cab-06897c0c424c@me.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Return-path: In-Reply-To: <9d974eab-ed36-47dc-8cab-06897c0c424c@me.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com T24gV2VkbmVzZGF5LCBKdWx5IDMwLCAyMDE0IDA4OjIxOjQ1IFBNIERhbiBXaGl0ZSB3cm90ZToK PiBEb2VzIHRoZSBzeXN0ZW0gYWxsb3cgZm9yIHRoZSBpbXBvcnQvaW5jbHVkZSBvZiBncm91cHMg b2YgcnVsZXMgaW4gb3RoZXIKPiBmaWxlcyAtIO+7v2xpa2UgbG9ncm90YXRlIGFuZCAvZXRjL2xv Z3JvdGF0ZS5kLyogPwoKTm8sIGJ1dCBpbiAyLjMgYW5kIGxhdGVyIHRoZXJlIGlzIGEgL2V0Yy9h dWRpdC9ydWxlcy5kLyBkaXJlY3Rvcnkgd2hlcmUgcnVsZXMgCmNhbiBiZSBkcm9wcGVkIG9mZi4g VGhlIGF1Z2VucnVsZXMgdXRpbGl0eSB3aWxsICJjb21waWxlIiB0aG9zZSBpbnRvIGEgbWFzdGVy IAphdWRpdC5ydWxlcyBmaWxlLiBZb3UgYWxzbyBoYXZlIHRvIGVuYWJsZSBhdWdlbnJ1bGVzIGJ5 IHNldHRpbmcgClVTRV9BVUdFTlJVTEVTPSJ5ZXMiIGluIC9ldGMvc3lzY29uZmlnL2F1ZGl0LiB0 aGF0IGlzIGFib3V0IGFzIGNsb3NlIGFzIGl0IApjb21lcy4KCi1TdGV2ZQoKLS0KTGludXgtYXVk aXQgbWFpbGluZyBsaXN0CkxpbnV4LWF1ZGl0QHJlZGhhdC5jb20KaHR0cHM6Ly93d3cucmVkaGF0 LmNvbS9tYWlsbWFuL2xpc3RpbmZvL2xpbnV4LWF1ZGl0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan White Subject: Re: RHEL 6 audit.rules question Date: Thu, 31 Jul 2014 11:59:02 +0000 (GMT) Message-ID: <9bbafff9-6c53-475f-acf0-d0bf8ad07931@me.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5755218370686594128==" Return-path: Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.17]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6VBxG51007300 for ; Thu, 31 Jul 2014 07:59:16 -0400 Received: from st11p02mm-asmtp001.mac.com (st11p02mm-asmtp001.mac.com [17.172.220.236]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6VBxFkB032417 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL) for ; Thu, 31 Jul 2014 07:59:15 -0400 Received: from st11p02mm-spool001.mac.com ([17.172.220.246]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTP id <0N9K009T7RYH9K40@st11p02mm-asmtp001.mac.com> for linux-audit@redhat.com; Thu, 31 Jul 2014 11:59:06 +0000 (GMT) Received: from localhost ([17.172.220.163]) by st11p02mm-spool001.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTP id <0N9K00LSRRYHB150@st11p02mm-spool001.mac.com> for linux-audit@redhat.com; Thu, 31 Jul 2014 11:59:05 +0000 (GMT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com --===============5755218370686594128== Content-type: multipart/alternative; boundary="Boundary_(ID_ZQ9oB17PjHuKrNa+j45v4w)" --Boundary_(ID_ZQ9oB17PjHuKrNa+j45v4w) Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: quoted-printable On Jul 30, 2014, at 04:33 PM, Steve Grubb wrote:=0A=0A= > On Wednesday, July 30, 2014 08:21:45 PM Dan White wrote:=0A> > Do= es the system allow for the import/include of groups of rules in other=0A>= > files - =EF=BB=BFlike logrotate and /etc/logrotate.d/* ?=0A>=0A>= No, but in 2.3 and later there is a /etc/audit/rules.d/ directory where r= ules=0A> can be dropped off. The augenrules utility will "compile" those i= nto a master=0A> audit.rules file. You also have to enable augenrules by s= etting=0A> USE_AUGENRULES=3D"yes" in /etc/sysconfig/audit. that is about a= s close as it=0A> comes.=0A>=0A> -Steve=0A =0AThanks for the quick answer.= =0AAny plans to release 2.3.x to RHEL 6 that can be shared ?=0A=0A=E2=80=9C= Sometimes I think the surest sign that intelligent life exists elsewhere i= n the universe is that none of it has tried to contact us.=E2=80=9D (Bill= Waterson: Calvin & Hobbes)=EF=BB=BF= --Boundary_(ID_ZQ9oB17PjHuKrNa+j45v4w) Content-type: multipart/related; boundary="Boundary_(ID_6fqYqIo6XBsiU/s+0g1w4Q)"; type="text/html" --Boundary_(ID_6fqYqIo6XBsiU/s+0g1w4Q) Content-type: text/html; charset=utf-8 Content-transfer-encoding: quoted-printable
On Jul 30, 2014, at 04:33 PM, Steve Grubb <sgrubb@redhat.com> w= rote:

On Wednesday, July 30, 2014 08:21:45 P= M Dan White wrote:
       > Does the system all= ow for the import/include of groups of rules in other
    &n= bsp;  > files - =EF=BB=BFlike logrotate and /etc/logrotate.d/* ?
No, but in 2.3 and later there is a /etc/audit/rules.d/ directory wh= ere rules
can be dropped off. The augenrules utility will "compile" th= ose into a master
audit.rules file. You also have to enable augenrules= by setting
USE_AUGENRULES=3D"yes" in /etc/sysconfig/audit. that is ab= out as close as it
comes.

-Steve
 
Thanks = for the quick answer.
Any plans to release 2.3.x to RHEL 6 that can be = shared ?
References: <9bbafff9-6c53-475f-acf0-d0bf8ad07931@me.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Return-path: 
Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com
	[10.5.110.19])
	by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id s6VDwbfr024305
	for ; Thu, 31 Jul 2014 09:58:37 -0400
Received: from mx4.umbc.edu (mx4.umbc.edu [130.85.25.79])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6VDwZ09021302
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for ; Thu, 31 Jul 2014 09:58:36 -0400
In-Reply-To: <9bbafff9-6c53-475f-acf0-d0bf8ad07931@me.com>
List-Unsubscribe: ,
	
List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,
	
Sender: linux-audit-bounces@redhat.com
Errors-To: linux-audit-bounces@redhat.com
To: Dan White 
Cc: linux-audit@redhat.com
List-Id: linux-audit@redhat.com

> On Jul 30, 2014, at 04:33 PM, Steve Grubb  wrote:
>
>> On Wednesday, July 30, 2014 08:21:45 PM Dan White wrote:
>>        > Does the system allow for the import/include of groups of rules
>> in other
>>        > files - =EF=BB=BFlike logrotate and /etc/logrotate.d/* ?
>>
>> No, but in 2.3 and later there is a /etc/audit/rules.d/ directory where
>> rules
>> can be dropped off. The augenrules utility will "compile" those into a
>> master
>> audit.rules file. You also have to enable augenrules by setting
>> USE_AUGENRULES=3D"yes" in /etc/sysconfig/audit. that is about as close as
>> it
>> comes.
>>
>> -Steve
>
> Thanks for the quick answer.
> Any plans to release 2.3.x to RHEL 6 that can be shared ?

I was able to "backport" this functionality to RHEL6 (and RHEL5) by doing
the following:

- Steal the augenrules script from a Fedora or RHEL7 package
- Use my configuration management system to create and manage files in
/etc/audit/rules.d
- Schedule periodic runs of augenrules

I didn't have to set USE_AUGENRULES (maybe because the older audit system
doesn't know to care?).  It has been working very well for me as a way of
managing differences in audit rules on systems while still keeping things
centralized.

--Ray

From mboxrd@z Thu Jan  1 00:00:00 1970
From: Dan White 
Subject: Re: RHEL 6 audit.rules question
Date: Thu, 31 Jul 2014 21:46:24 -0400
Message-ID: <4C944041-25A8-49C5-A15D-D014C80B5D9C@icloud.com>
References: <9bbafff9-6c53-475f-acf0-d0bf8ad07931@me.com>
	<144e83098c4a9de1d34cd5504f8ad8cb.squirrel@webmail.umbc.edu>
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Return-path: 
Received: from mx1.redhat.com (ext-mx16.extmail.prod.ext.phx2.redhat.com
	[10.5.110.21])
	by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id s711kjLg022941
	for ; Thu, 31 Jul 2014 21:46:45 -0400
Received: from st11p02mm-asmtp002.mac.com (st11p02mm-asmtp002.mac.com
	[17.172.220.237])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s711khIw023187
	(version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL)
	for ; Thu, 31 Jul 2014 21:46:43 -0400
Received: from [10.0.1.200] (c-76-100-4-11.hsd1.md.comcast.net [76.100.4.11])
	by st11p02mm-asmtp002.mac.com
	(Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit
	(built Jun
	6 2014)) with ESMTPSA id <0N9L00KDZU9C1Y60@st11p02mm-asmtp002.mac.com>
	for linux-audit@redhat.com; Fri, 01 Aug 2014 01:46:27 +0000 (GMT)
In-reply-to: <144e83098c4a9de1d34cd5504f8ad8cb.squirrel@webmail.umbc.edu>
List-Unsubscribe: ,
	
List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,
	
Sender: linux-audit-bounces@redhat.com
Errors-To: linux-audit-bounces@redhat.com
To: linux-audit@redhat.com
List-Id: linux-audit@redhat.com


On Jul 31, 2014, at 9:58 AM, rshaw1@umbc.edu wrote:

>> On Jul 30, 2014, at 04:33 PM, Steve Grubb  wrote:
>> =

>>> On Wednesday, July 30, 2014 08:21:45 PM Dan White wrote:
>>>> Does the system allow for the import/include of groups of rules
>>> in other
>>>> files - =EF=BB=BFlike logrotate and /etc/logrotate.d/* ?
>>> =

>>> No, but in 2.3 and later there is a /etc/audit/rules.d/ directory where
>>> rules
>>> can be dropped off. The augenrules utility will "compile" those into a
>>> master
>>> audit.rules file. You also have to enable augenrules by setting
>>> USE_AUGENRULES=3D"yes" in /etc/sysconfig/audit. that is about as close =
as
>>> it
>>> comes.
>>> =

>>> -Steve
>> =

>> Thanks for the quick answer.
>> Any plans to release 2.3.x to RHEL 6 that can be shared ?
> =

> I was able to "backport" this functionality to RHEL6 (and RHEL5) by doing
> the following:
> =

> - Steal the augenrules script from a Fedora or RHEL7 package
> - Use my configuration management system to create and manage files in
> /etc/audit/rules.d
> - Schedule periodic runs of augenrules
> =

> I didn't have to set USE_AUGENRULES (maybe because the older audit system
> doesn't know to care?).  It has been working very well for me as a way of
> managing differences in audit rules on systems while still keeping things
> centralized.
> =

> --Ray
> =


Great idea.  I may explore that.
Thanks.

=93Sometimes I think the surest sign that intelligent life exists elsewhere=
 in the universe is that none of it has tried to contact us.=94 =

Bill Waterson (Calvin & Hobbes)