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

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

Reply via email to