From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: How to make sure a specific event is logged with thge proper message type? Date: Mon, 06 Jul 2015 12:01:33 -0400 Message-ID: <2131850.hZO6fHcghl@x2> References: <23396023F719ED41888885C3B22D602F0154BB@WPEXCH2010MR11.bur.hydro.qc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <23396023F719ED41888885C3B22D602F0154BB@WPEXCH2010MR11.bur.hydro.qc.ca> 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 Monday, July 06, 2015 02:02:32 PM Alarie, Maxime wrote: > Hi, > > I have this rule in audit.rules : > -w /usr/sbin/useradd -p x -k user_modification Note that this rule will create a SYSCALL event. To find it later, you would run: ausearch --start today -k user_modification > When I add a user, and do a ausearch -m ADD_USER I get 0 match. Am I > doing something wrong here? I am using version 1.8. This event is a user space originating event and it depends on shadow-utils being correctly patched to generate the events specified in: http://people.redhat.com/sgrubb/audit/user-account-lifecycle.txt If it doesn't, you should file a bug report against the shadow-utils package of your distribution so that they know about the issue. -Steve