From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Why doesn't chown produce an event Date: Wed, 2 May 2007 13:30:59 -0400 Message-ID: <200705021330.59459.sgrubb@redhat.com> References: <4638AA93.7050108@jhuapl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4638AA93.7050108@jhuapl.edu> Content-Disposition: inline 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 Cc: Robert Evans List-Id: linux-audit@redhat.com On Wednesday 02 May 2007 11:13, Robert Evans wrote: > If I log in as a typical user and try "chown bob /etc/shadow" I don't get > an event produced, however if I try "chmod 666 /etc/shadow" I do. > > What am I missing here? A syscall. If I am on a i386 machine and I strace chmod root file.txt, I see this: chown32("file.txt", 0, -1) = 0 So, you would want to use chown32 instead of chown on i386 machines. On x86_64 the chown syscall is used. -Steve