From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: audit 1.2.2 released Date: Tue, 16 May 2006 12:28:29 -0400 Message-ID: <200605161228.29743.sgrubb@redhat.com> References: <200605121726.32952.sgrubb@redhat.com> <200605161123.14242.sgrubb@redhat.com> <4469F8EB.8010606@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4469F8EB.8010606@us.ibm.com> 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: Michael C Thompson Cc: Linux Audit List-Id: linux-audit@redhat.com On Tuesday 16 May 2006 12:08, Michael C Thompson wrote: > I'm sorry, but I've not spent enough time playing with sockets, how do > you determine the return code as -EPERM from the above output... You have to look at the audit_reply data structure, which pulls in nlmsghdr (see /usr/include/linux/netlink.h) > >> recvfrom(3, "$\0\0\0 1st 4 bytes is length > >> \2\0 next 2 is message type. In this case, NLMSG_ERROR > >> \0\0 flags > >> \1\0\0\0 Seq num > >> \322\7\0\0 pid > >> \377\377\377\377 This is return code for NLMSG_ERROR packets. It equals -1. -Steve