From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Filtering out non-interactive users Date: Wed, 19 Jan 2011 10:04:11 -0500 Message-ID: <201101191004.11802.sgrubb@redhat.com> References: <20110114163701.GA31627@monolith> <201101190933.30392.sgrubb@redhat.com> <20110119144824.GA7022@monolith> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110119144824.GA7022@monolith> 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 Wednesday, January 19, 2011 09:48:25 am PJB wrote: > On Wed, Jan 19, 2011 at 09:33:30AM -0500, Steve Grubb [sgrubb@redhat.com] wrote: > > On Wednesday, January 19, 2011 09:01:55 am PJB wrote: > > > > That should work unless the is a 32 bit bug everyone has missed or > > > > you have another rule preventing the logging. If you do cat > > > > /proc/self/loginuid, do you get a number > 0? Also, if you use > > > > auid!=4294967295, does that work? > > > > > > The loginuid is 4294967295. If I pass '-F auid!=4294967295' into the > > > filters, when I run 'auditctl -l' the rules are listed, but each one > > > has 'auid=2147483647 (0x7fffffff)'. I get log entries then, but they > > > are all tagged with auid 4294967295. Is this proper or did I stumble > > > upon a bug after all? > > > > That is a 32 bit bug. I'm looking at how best to solve this. Probably all > > variants of uid and gid are affected by this. > > I was afraid you would say that! Would it be a bug in the auditd userspace > programs or in the kernel code? I assume it's the former? Specifically, the bug is right here: https://fedorahosted.org/audit/browser/trunk/lib/libaudit.c#L1134 AUID on 32 bit should be treated like the AUDIT_INODE field. Still looking at it... -Steve