<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.3">
<TITLE>RE: auditctl question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>OK.<BR>
I installed the 2.6.17.7 kernel and then tried to build audit-1.2.5 and received the following...<BR>
<BR>
make[2]: Entering directory `/tmp/audit/audit-1.2.5/src'<BR>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib   -fPIE -DPIE -g -D_REENTRANT -D_GNU_SOURCE -g -O2 -c -o auditd-auditd.o `test -f 'auditd.c' || echo './'`auditd.c<BR>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib   -fPIE -DPIE -g -D_REENTRANT -D_GNU_SOURCE -g -O2 -c -o auditd-auditd-event.o `test -f 'auditd-event.c' || echo './'`auditd-event.c<BR>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib   -fPIE -DPIE -g -D_REENTRANT -D_GNU_SOURCE -g -O2 -c -o auditd-auditd-config.o `test -f 'auditd-config.c' || echo './'`auditd-config.c<BR>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib   -fPIE -DPIE -g -D_REENTRANT -D_GNU_SOURCE -g -O2 -c -o auditd-auditd-reconfig.o `test -f 'auditd-reconfig.c' || echo './'`auditd-reconfig.c<BR>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib   -fPIE -DPIE -g -D_REENTRANT -D_GNU_SOURCE -g -O2 -c -o auditd-auditd-sendmail.o `test -f 'auditd-sendmail.c' || echo './'`auditd-sendmail.c<BR>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib   -fPIE -DPIE -g -D_REENTRANT -D_GNU_SOURCE -g -O2 -c -o auditd-auditd-dispatch.o `test -f 'auditd-dispatch.c' || echo './'`auditd-dispatch.c<BR>
/bin/sh ../libtool --tag=CC --mode=link gcc -D_REENTRANT -D_GNU_SOURCE -g -O2   -o auditd -pie -Wl,-z,relro auditd-auditd.o auditd-auditd-event.o auditd-auditd-config.o auditd-auditd-reconfig.o auditd-auditd-sendmail.o auditd-auditd-dispatch.o -lpthread -Lmt -lauditmt<BR>
mkdir .libs<BR>
gcc -D_REENTRANT -D_GNU_SOURCE -g -O2 -o auditd -pie -Wl,-z -Wl,relro auditd-auditd.o auditd-auditd-event.o auditd-auditd-config.o auditd-auditd-reconfig.o auditd-auditd-sendmail.o auditd-auditd-dispatch.o  -lpthread -L/tmp/audit/audit-1.2.5/src/mt -lauditmt<BR>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib   -D_REENTRANT -D_GNU_SOURCE -g -O2 -c auditctl.c<BR>
auditctl.c: In function ‘audit_print_reply’:<BR>
auditctl.c:1046: error: ‘AUDIT_SE_USER’ undeclared (first use in this function)<BR>
auditctl.c:1046: error: (Each undeclared identifier is reported only once<BR>
auditctl.c:1046: error: for each function it appears in.)<BR>
auditctl.c:1047: error: ‘AUDIT_SE_CLR’ undeclared (first use in this function)<BR>
make[2]: *** [auditctl.o] Error 1<BR>
make[2]: Leaving directory `/tmp/audit/audit-1.2.5/src'<BR>
make[1]: *** [all-recursive] Error 1<BR>
make[1]: Leaving directory `/tmp/audit/audit-1.2.5'<BR>
make: *** [all] Error 2<BR>
<BR>
<BR>
I also received the same error with the other kernel.  I did not build the SE-Linux stuff into the kernel, should I have?<BR>
<BR>
thanks,<BR>
<BR>
Lane<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Klaus Weidner [<A HREF="mailto:klaus@atsec.com">mailto:klaus@atsec.com</A>]<BR>
Sent: Thu 8/3/2006 11:18 AM<BR>
To: Williams, P. Lane<BR>
Cc: linux-audit@redhat.com<BR>
Subject: Re: auditctl question<BR>
<BR>
On Thu, Aug 03, 2006 at 09:00:25AM -0400, Williams, P. Lane wrote:<BR>
> I get ....<BR>
><BR>
> ----<BR>
> type=SYSCALL msg=audit(08/03/06 08:49:37.229:78293) : arch=x86_64 syscall=open success=no exit=-13(Permission denied) a0=7ffff362f541 a1=0 a2=1b6 a3=0 items=1 pid=6334 auid=unknown(4294967295) uid=someuser gid=users euid=someuser suid=someuser fsuid=someuser egid=users sgid=users fsgid=users comm=more exe=/bin/more<BR>
> ----<BR>
<BR>
This is from "ausearch -i"? The raw audit log shouldn't have the<BR>
"(Permission denied)" part in it, but apart from that it seems that the<BR>
kernel is auditing things correctly and this is unrelated to the bug I<BR>
had referred to.<BR>
<BR>
> so I only get permission denied entries.  Auditctl allows me to create the rule, and it list the rule.  But nothing is logged, when I know it should be.<BR>
><BR>
> I am running the 2.6.16.21 kernel (SUSE Enterprise Desktop 10) on AMD64 dual core machines.<BR>
<BR>
This kernel has a snapshot of the audit code that was in development at<BR>
the time. Can you please try with a newer upstream kernel and/or bug SUSE<BR>
to incorporate the current audit fixes in an update?<BR>
<BR>
-Klaus<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>