Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 171282

Summary: sys-process/audit-1.2.9-r2 installs bad libaudit.h include file
Product: Gentoo Linux Reporter: Bill "vaxbrat" Sharer <bsharer>
Component: New packagesAssignee: Robin Johnson <robbat2>
Status: VERIFIED FIXED    
Severity: normal CC: selinux
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bill "vaxbrat" Sharer 2007-03-17 21:11:14 UTC
As reported here:   http://forums.gentoo.org/viewtopic-t-547534-highlight-.html

audit installs /usr/include/libaudit.h and /usr/include/linux/audit.h.  However line 35 of libaudit.h includes audit.h with:

#include "audit.h"

and not

#include <linux/audit.h>

Among other things, this breaks glibc2.5 emerge when attempting to use selinux.  This is probably a patch that should be submitted upstream to RedHat, but I haven't checked to see if it was found and fixed up there yet.

Reproducible: Always

Steps to Reproduce:
1.Use ~x86 and the 2006.1 selinux profile
2. emerge audit-1.2.9-r2 (probably present in other audit ebuilds as well)
3. attempt to emerge glibc with selinux USE flags

Actual Results:  
emerge fails when selinux code in glibc (don't have the log in front of me) attempts to include libaudit.h.  gcc is unable to find the audit.h include file

Expected Results:  
emerge glibc properly ;-)

This was found on ~x86 but is probably present in other platforms such as ~amd64
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2007-04-01 20:41:08 UTC
Audit 1.5.1 seems to be ok.  I just copied the 1.2.9-r2 ebuild and removed all of the stuff in src_unpack() except for the unpack and eautoreconf.  I have 2.6.20-r2 headers, if that makes a difference.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-04-01 22:11:28 UTC
1.5.1 in cvs.