Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142460 - sys-process/audit-1.0.14 is safe to build
Summary: sys-process/audit-1.0.14 is safe to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-01 12:39 UTC by Bicster
Modified: 2006-11-13 03:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bicster 2006-08-01 12:39:15 UTC
audit 1.0.14 is much more polished than 0.8.1.  It builds and works properly without newer kernel headers, with the following patch from the author:

http://people.redhat.com/sgrubb/audit/audit-0.9.14-header.patch

Furthermore, it builds and runs properly on amd64.  Thanks.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-08-01 13:25:36 UTC
Is there a newer version of this patch for audit-1.2.5?
That would go a very long way.

I tried this version with 1.2.5, and got this failure:
...
auditctl.c: In function `audit_print_reply':
auditctl.c:1046: error: `AUDIT_SE_USER' undeclared (first use in this function)
auditctl.c:1046: error: (Each undeclared identifier is reported only once
auditctl.c:1046: error: for each function it appears in.)
auditctl.c:1047: error: `AUDIT_SE_CLR' undeclared (first use in this function)
...
Comment 2 Bicster 2006-08-02 08:13:25 UTC
I believe audit 1.2.5 requires a 2.6.18 kernel or newer to run properly.  1.0.14 is an acceptable stop-gap measure.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-08-02 11:09:31 UTC
audit-1.2* will run fine on older kernels, so long as it builds in the first place. Which means headers newer than 2.6.17-git3, or a header patch updated from the current one you linked to.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-08-02 11:10:06 UTC
On the flipside, audit-1.0* doesn't run very well on newer kernels, seems to keep dying.
Comment 5 Bicster 2006-08-02 12:20:09 UTC
(In reply to comment #4)
> On the flipside, audit-1.0* doesn't run very well on newer kernels, seems to
> keep dying.
> 

I've been running 1.0.14 for 24 hours on amd64 (since I last rebooted) ... no issues at all.  My audit log has grown to 27MB.  Have you had problems with this specific version?
Comment 6 Bicster 2006-08-02 12:20:59 UTC
(In reply to comment #5)
> I've been running 1.0.14 for 24 hours on amd64 (since I last rebooted) ... no
> issues at all.  My audit log has grown to 27MB.  Have you had problems with
> this specific version?

Forgot to mention I am running 2.6.16
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-08-02 12:30:15 UTC
Ok, I'm a lot more bleeding edge there. With vanilla 2.6.17 and the git head of 2.6.18, it's not stable.
Comment 8 Bicster 2006-08-03 10:14:04 UTC
From the author:

"1.2 has an api change.  1.0.14 works with the old passwd, pam, util-linux, shadow-utils patches.  You need > 1.1 if you use current pam, passwd, or util-linux.  The 1.2.5 version will work with old kernels."  Current means, i.e. pam 0.99.  The exception being if pam is compiled w/o audit support.

Furthermore, he says that the patch to build on old kernels should be simple.  Simply remove the include of linux/audit.h and insert the same file from a newer kernel into the build.
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-08-09 23:52:54 UTC
Ok, I tried to use the headers from the latest kernel, without success.
1.2.5 fails to build with 2.6.18-rc4.

make[2]: Entering directory `/dev/shm/portage/audit-1.2.5/work/audit-1.2.5/src'
powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib   -D_REENTRANT -D_GNU_SOURCE -Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe -Wstrict-aliasing -Wl,-O1 -c auditctl.c
auditctl.c: In function 'audit_print_reply':
auditctl.c:1046: error: 'AUDIT_SE_USER' undeclared (first use in this function)
auditctl.c:1046: error: (Each undeclared identifier is reported only once
auditctl.c:1046: error: for each function it appears in.)
auditctl.c:1047: error: 'AUDIT_SE_CLR' undeclared (first use in this function)
make[2]: *** [auditctl.o] Error 1

Those two constants are not anywhere in the current 2.6.18-rc4 sources.
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-13 03:56:38 UTC
Ok, 1.2.9 builds 100% now on other kernels and all my hardware (ppc64-32ul, amd64, x86), so it's going into the tree.