diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-05-31 11:11:52 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-05-31 14:04:28 +0800 |
commit | 620f1f873b4ae86c16e542e238406cb05159d659 (patch) | |
tree | 5237d9b4a0b39444cfa3cf25bc8eb561ac51233b | |
parent | a424d778f3b92a315553383ac1a6bcca682f6007 (diff) | |
download | meta-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.bb | 11 |
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*" | |||
40 | FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" | 40 | FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" |
41 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" | 41 | FILES_${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. | ||
48 | do_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 | |||
43 | do_install_append() { | 54 | do_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 |