summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-06-26 15:17:53 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-06-28 10:42:22 +0800
commit72fb6da107962fa99aa59c313523b415edacd711 (patch)
tree597d1336c18390f6acecb55aa5ba843fdafdc98c
parentaef5531fa3051cfadbda0083db19e62823b8b1fc (diff)
downloadmeta-selinux-72fb6da107962fa99aa59c313523b415edacd711.tar.gz
audit: Add .h files from target libc-headers.
Just like audit_2.1.3.bb. 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 .h files in the old linux-libc-headers (<= 2.6.29) has incomplete DEFINE lists for the audit system. Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/audit/audit_2.2.1.bb16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-security/audit/audit_2.2.1.bb b/recipes-security/audit/audit_2.2.1.bb
index 48cc2ea..34cfda1 100644
--- a/recipes-security/audit/audit_2.2.1.bb
+++ b/recipes-security/audit/audit_2.2.1.bb
@@ -46,6 +46,22 @@ FILES_audispd-plugins += "${sysconfdir}/audisp/audisp-remote.conf \
46FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" 46FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug"
47FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" 47FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}"
48 48
49# The executables in lib/, which are named as gen_*_h, will run on the hosts to create
50# *_tables.h/*tabs.h header files for the targets.
51# In some old hosts, build will fail because some .h files in the old linux-libc-headers (<= 2.6.29)
52# has incomplete DEFINE lists for the audit system.
53do_compile_prepend() {
54 mkdir -p ${S}/lib/linux
55 cp -f ${STAGING_INCDIR}/linux/audit.h ${S}/lib/linux/
56 cp -f ${STAGING_INCDIR}/linux/elf-em.h ${S}/lib/linux/
57 cp -f ${STAGING_INCDIR}/linux/net.h ${S}/lib/linux/
58 mkdir -p ${S}/lib/sys
59 cp -f ${STAGING_INCDIR}/sys/mount.h ${S}/lib/sys/
60 cp -f ${STAGING_INCDIR}/sys/personality.h ${S}/lib/sys/
61 mkdir -p ${S}/lib/bits
62 cp -f ${STAGING_INCDIR}/bits/socket.h ${S}/lib/bits
63}
64
49do_install_append() { 65do_install_append() {
50 rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a 66 rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a
51 rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la 67 rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la