From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael C Thompson Subject: Re: audit 1.2.2 released Date: Tue, 16 May 2006 11:08:11 -0500 Message-ID: <4469F8EB.8010606@us.ibm.com> References: <200605121726.32952.sgrubb@redhat.com> <4468E115.40107@us.ibm.com> <4469E753.3070206@us.ibm.com> <200605161123.14242.sgrubb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200605161123.14242.sgrubb@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Steve Grubb Cc: Linux Audit List-Id: linux-audit@redhat.com Steve Grubb wrote: > On Tuesday 16 May 2006 10:53, Michael C Thompson wrote: >> I've "enchanced" this transcript with strace output (selective) and the >> return code of the selinux_socket_recvmsg call. >> >>> # auditctl -l >> sendto(3, "\20\0\0\0\365\3\5\0\1\0\0\0\0\0\0\0", 16, 0, >> {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 16 >> poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 100) = 1 >> recvfrom(3, "$\0\0\0\2\0\0\0\1\0\0\0\322\7\0\0\377\377\377\377\20\0"..., >> 8476, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, >> groups=00000000}, [12]) = 36 >> -> selinux_sock_recvmsg returns 0 >> >> recvfrom(3, "$\0\0\0\2\0\0\0\1\0\0\0\322\7\0\0\377\377\377\377\20\0"..., >> 8476, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000000}, >> [12]) = 36 >> -> selinux_sock_recvmsg returns 0 > > This return code says -EPERM. 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... >>> # auditctl -l >> sendto(3, "\20\0\0\0\365\3\5\0\1\0\0\0\0\0\0\0", 16, 0, >> {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 16 >> poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 100) = 1 >> >> recvfrom(3, "$\0\0\0\2\0\0\0\1\0\0\0\326\7\0\0\0\0\0\0\20\0\0\0\365"..., >> 8476, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, >> groups=00000000}, [12]) = 36 >> -> selinux_sock_recvmsg returns 0 > > This return code shows the kernel has data. and that this section has data? I'm just curious :) Thanks, Mike