From: Richard Guy Briggs Subject: Re: [PATCH 1/1] Added exe field to audit core dump signal log Date: Wed, 20 Nov 2013 17:30:56 -0500 Message-ID: <20131120223056.GD20438@madcap2.tricolour.ca> References: <20131114032657.GA3588@pauldc-Inspiron-1470> <20131120214706.GB20438@madcap2.tricolour.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: William Roberts Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Wed, Nov 20, 2013 at 02:07:58PM -0800, William Roberts wrote: > On Wed, Nov 20, 2013 at 2:03 PM, William Roberts > wrote: > > On Wed, Nov 20, 2013 at 1:47 PM, Richard Guy Briggs wrote: > >> On Thu, Nov 14, 2013 at 08:56:57AM +0530, Paul Davies C wrote: > >>> + if (mm) { > >>> + down_read(&mm->mmap_sem); > >>> + if (mm->exe_file) > >>> + audit_log_d_path(ab, " exe=", &mm->exe_file->f_path); > >>> + up_read(&mm->mmap_sem); > >>> + } > > > One other thing that I know Steve Grubb is picky on, is the field > still needs to be there even if mm is null. We can't have > disappearing fields. On error conditions, I've been doing > =(null) on my patches. Agreed. - RGB -- Richard Guy Briggs Senior Software Engineer, Kernel Security, AMER ENG Base Operating Systems, Red Hat Remote, Ottawa, Canada Voice: +1.647.777.2635, Internal: (81) 32635, Alt: +1.613.693.0684x3545