All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Audit Compilation on QEMU/Debian Squeeze
@ 2012-06-15 20:17 Nathaniel Husted
  2012-06-27 17:42 ` Nathaniel Husted
  2012-08-27 14:30 ` Steve Grubb
  0 siblings, 2 replies; 3+ messages in thread
From: Nathaniel Husted @ 2012-06-15 20:17 UTC (permalink / raw)
  To: linux-audit

The current version of audit has issues compiling (Debian Squeeze --
http://www.raspberrypi.org/downloads). The compiler complains about
being unable to find SYS_RECVMMSG. The following patch solves this
issue by removing potential problematic system calls from being
compiled in when using the WITH_ARMEB directive. The patch was made
against the latest stable release (audit 2.2.1) and tested under QEMU
ARM with Debian Squeeze 6.0.

Signed-off by: Nathaniel Husted <nhusted@gmail.com>

diff -rpuN audit-2.2.1/auparse/socktab.h audit-2.2.1-patched/auparse/socktab.h
--- audit-2.2.1/auparse/socktab.h	2012-03-23 08:42:42.000000000 -0400
+++ audit-2.2.1-patched/auparse/socktab.h	2012-06-15 16:13:12.470054242 -0400
@@ -39,6 +39,8 @@ _S(SYS_GETSOCKOPT,	"getsockopt"	)
 _S(SYS_SENDMSG,		"sendmsg"	)
 _S(SYS_RECVMSG,		"recvmsg"	)
 _S(SYS_ACCEPT4,		"accept4"	)
+#ifndef WITH_ARMEB
 _S(SYS_RECVMMSG,	"recvmmsg"	)
 _S(20,			"sendmmsg"	)
+#endif

diff -rpuN audit-2.2.1/src/ausearch-lookup.c
audit-2.2.1-patched/src/ausearch-lookup.c
--- audit-2.2.1/src/ausearch-lookup.c	2012-03-23 08:42:41.000000000 -0400
+++ audit-2.2.1-patched/src/ausearch-lookup.c	2012-06-15
16:12:41.839801930 -0400
@@ -116,7 +116,9 @@ static struct nv_pair socktab[] = {
 	{SYS_SENDMSG, "sendmsg"},
 	{SYS_RECVMSG, "recvmsg"},
 	{SYS_ACCEPT4, "accept4"},
+	#ifndef WITH_ARMEB
 	{SYS_RECVMMSG, "recvmmsg"},
+	#endif
 	{20, "sendmmsg"}
 };
 #define SOCK_NAMES (sizeof(socktab)/sizeof(socktab[0]))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Audit Compilation on QEMU/Debian Squeeze
  2012-06-15 20:17 [PATCH] Audit Compilation on QEMU/Debian Squeeze Nathaniel Husted
@ 2012-06-27 17:42 ` Nathaniel Husted
  2012-08-27 14:30 ` Steve Grubb
  1 sibling, 0 replies; 3+ messages in thread
From: Nathaniel Husted @ 2012-06-27 17:42 UTC (permalink / raw)
  To: linux-audit

Disregard this patch as it was due to a mismatch in kernel-headers and
the associated kernel running on the system. It will be useful to
those running 2.6.32 on Ubuntu (or I'm sure debian) systems and
wanting to run 2.2.1 as the SYS_RECVMMSG is not defined in those
headers (though according to some man pages it should be). My
apologies for the guffaw.

Cheers,
Nathaniel

On Fri, Jun 15, 2012 at 1:17 PM, Nathaniel Husted <nhusted@gmail.com> wrote:
> The current version of audit has issues compiling (Debian Squeeze --
> http://www.raspberrypi.org/downloads). The compiler complains about
> being unable to find SYS_RECVMMSG. The following patch solves this
> issue by removing potential problematic system calls from being
> compiled in when using the WITH_ARMEB directive. The patch was made
> against the latest stable release (audit 2.2.1) and tested under QEMU
> ARM with Debian Squeeze 6.0.
>
> Signed-off by: Nathaniel Husted <nhusted@gmail.com>
>
> diff -rpuN audit-2.2.1/auparse/socktab.h audit-2.2.1-patched/auparse/socktab.h
> --- audit-2.2.1/auparse/socktab.h       2012-03-23 08:42:42.000000000 -0400
> +++ audit-2.2.1-patched/auparse/socktab.h       2012-06-15 16:13:12.470054242 -0400
> @@ -39,6 +39,8 @@ _S(SYS_GETSOCKOPT,    "getsockopt"    )
>  _S(SYS_SENDMSG,                "sendmsg"       )
>  _S(SYS_RECVMSG,                "recvmsg"       )
>  _S(SYS_ACCEPT4,                "accept4"       )
> +#ifndef WITH_ARMEB
>  _S(SYS_RECVMMSG,       "recvmmsg"      )
>  _S(20,                 "sendmmsg"      )
> +#endif
>
> diff -rpuN audit-2.2.1/src/ausearch-lookup.c
> audit-2.2.1-patched/src/ausearch-lookup.c
> --- audit-2.2.1/src/ausearch-lookup.c   2012-03-23 08:42:41.000000000 -0400
> +++ audit-2.2.1-patched/src/ausearch-lookup.c   2012-06-15
> 16:12:41.839801930 -0400
> @@ -116,7 +116,9 @@ static struct nv_pair socktab[] = {
>        {SYS_SENDMSG, "sendmsg"},
>        {SYS_RECVMSG, "recvmsg"},
>        {SYS_ACCEPT4, "accept4"},
> +       #ifndef WITH_ARMEB
>        {SYS_RECVMMSG, "recvmmsg"},
> +       #endif
>        {20, "sendmmsg"}
>  };
>  #define SOCK_NAMES (sizeof(socktab)/sizeof(socktab[0]))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Audit Compilation on QEMU/Debian Squeeze
  2012-06-15 20:17 [PATCH] Audit Compilation on QEMU/Debian Squeeze Nathaniel Husted
  2012-06-27 17:42 ` Nathaniel Husted
@ 2012-08-27 14:30 ` Steve Grubb
  1 sibling, 0 replies; 3+ messages in thread
From: Steve Grubb @ 2012-08-27 14:30 UTC (permalink / raw)
  To: linux-audit

On Friday, June 15, 2012 01:17:50 PM Nathaniel Husted wrote:
> The current version of audit has issues compiling (Debian Squeeze --
> http://www.raspberrypi.org/downloads). The compiler complains about
> being unable to find SYS_RECVMMSG.

Thanks. I will just change this to 19 instead of ifdef'ing it.

-Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-27 14:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-15 20:17 [PATCH] Audit Compilation on QEMU/Debian Squeeze Nathaniel Husted
2012-06-27 17:42 ` Nathaniel Husted
2012-08-27 14:30 ` Steve Grubb

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.