summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-05-31 11:11:52 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-05-31 14:04:28 +0800
commit620f1f873b4ae86c16e542e238406cb05159d659 (patch)
tree5237d9b4a0b39444cfa3cf25bc8eb561ac51233b
parenta424d778f3b92a315553383ac1a6bcca682f6007 (diff)
downloadmeta-selinux-620f1f873b4ae86c16e542e238406cb05159d659.tar.gz
audit: Add audit.h from target libc-headers.
The executables in lib/, which are named as gen_*_h, will run on the hosts to create *_tables.h/*tabs.h header files for the targets. In some old hosts, build will fail because audit.h in the old linux-libc-headers (<= 2.6.29) has a incomplete netlink message list for the audit system. Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/audit/audit_2.1.3.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-security/audit/audit_2.1.3.bb b/recipes-security/audit/audit_2.1.3.bb
index c12ddb2..e9cf4d4 100644
--- a/recipes-security/audit/audit_2.1.3.bb
+++ b/recipes-security/audit/audit_2.1.3.bb
@@ -40,6 +40,17 @@ FILES_audispd-plugins += "${sysconfdir}/audisp ${sbindir}/audisp*"
40FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" 40FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug"
41FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" 41FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}"
42 42
43
44# The executables in lib/, which are named as gen_*_h, will run on the hosts to create
45# *_tables.h/*tabs.h header files for the targets.
46# In some old hosts, build will fail because audit.h in the old linux-libc-headers (<= 2.6.29)
47# has a incomplete netlink message list for the audit system.
48do_compile_prepend() {
49 mkdir -p ${S}/lib/linux
50 cp -f ${STAGING_INCDIR}/linux/audit.h ${S}/lib/linux/
51 cp -f ${STAGING_INCDIR}/linux/elf-em.h ${S}/lib/linux/
52}
53
43do_install_append() { 54do_install_append() {
44 rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a 55 rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a
45 rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la 56 rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la