summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-04-11 17:40:01 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-04-11 17:44:43 +0800
commit6554a270ed267b587ac36f34f10e63563a27d601 (patch)
treea4c0a53bfc9b1bdb4692b8a39cb6c2224a56e0d8
parent35529e317f9939af083245419a40c6bb80ce297c (diff)
downloadmeta-selinux-6554a270ed267b587ac36f34f10e63563a27d601.tar.gz
Pick selinux(v2.20120215) bb changes to git bb recipes.
selinux packages v2.20120215: * libselinux-2.1.9 * libsemanage-2.1.6 * checkpolicy-2.1.8 * policycoreutils-2.1.10 * sepolgen-1.1.5
-rw-r--r--recipes-security/selinux/checkpolicy_git.bb8
-rw-r--r--recipes-security/selinux/libselinux_git.bb2
-rw-r--r--recipes-security/selinux/libsemanage_git.bb16
-rw-r--r--recipes-security/selinux/policycoreutils_git.bb17
-rw-r--r--recipes-security/selinux/sepolgen_git.bb14
5 files changed, 41 insertions, 16 deletions
diff --git a/recipes-security/selinux/checkpolicy_git.bb b/recipes-security/selinux/checkpolicy_git.bb
index 424e6f2..3653306 100644
--- a/recipes-security/selinux/checkpolicy_git.bb
+++ b/recipes-security/selinux/checkpolicy_git.bb
@@ -1,5 +1,11 @@
1SUMMARY = "SELinux policy compiler" 1SUMMARY = "SELinux policy compiler"
2DESCRIPTION = "SELinux policy compiler" 2DESCRIPTION = "\
3This package contains checkpolicy, the SELinux policy compiler. Only \
4required for building policies. It uses libsepol to generate the \
5binary policy. checkpolicy uses the static libsepol since it deals \
6with low level details of the policy that have not been \
7encapsulated/abstracted by a proper shared library interface."
8
3SECTION = "base" 9SECTION = "base"
4PR = "r1" 10PR = "r1"
5LICENSE = "GPLv2+" 11LICENSE = "GPLv2+"
diff --git a/recipes-security/selinux/libselinux_git.bb b/recipes-security/selinux/libselinux_git.bb
index 286af67..c9446f9 100644
--- a/recipes-security/selinux/libselinux_git.bb
+++ b/recipes-security/selinux/libselinux_git.bb
@@ -4,7 +4,7 @@ process and file security contexts and to obtain security policy \
4decisions. Required for any applications that use the SELinux API." 4decisions. Required for any applications that use the SELinux API."
5SECTION = "base" 5SECTION = "base"
6PR = "r1" 6PR = "r1"
7LICENSE = "NSA-Public_Domain" 7LICENSE = "Public Domain"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" 8LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0"
9 9
10include selinux_git.inc 10include selinux_git.inc
diff --git a/recipes-security/selinux/libsemanage_git.bb b/recipes-security/selinux/libsemanage_git.bb
index 3bcbc05..4f4864d 100644
--- a/recipes-security/selinux/libsemanage_git.bb
+++ b/recipes-security/selinux/libsemanage_git.bb
@@ -17,13 +17,15 @@ PV = "2.1.6+git${SRCPV}"
17DEPENDS += "libsepol libselinux ustr bzip2 python" 17DEPENDS += "libsepol libselinux ustr bzip2 python"
18 18
19SRC_URI += "file://Fix-segfault-for-standard-policy.patch" 19SRC_URI += "file://Fix-segfault-for-standard-policy.patch"
20SRC_URI += "file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch"
21SRC_URI += "file://libsemanage-semanage.conf-for-cross-compile.patch"
20 22
21PACKAGES += "${PN}-python" 23PACKAGES += "${PN}-python"
22FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" 24FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
23FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*" 25FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*"
24 26
25do_compile_append() { 27do_compile_append() {
26 oe_runmake pywrap -j1 \ 28 oe_runmake pywrap \
27 INCLUDEDIR='${STAGING_INCDIR}' \ 29 INCLUDEDIR='${STAGING_INCDIR}' \
28 LIBDIR='${STAGING_LIBDIR}' \ 30 LIBDIR='${STAGING_LIBDIR}' \
29 PYLIBVER='python${PYTHON_BASEVERSION}' \ 31 PYLIBVER='python${PYTHON_BASEVERSION}' \
@@ -32,14 +34,18 @@ do_compile_append() {
32 PYTHONLIBDIR='${PYLIB}' 34 PYTHONLIBDIR='${PYLIB}'
33} 35}
34 36
35do_install_append() { 37do_install() {
38 oe_runmake install \
39 DESTDIR="${D}" \
40 PREFIX="${D}/${prefix}" \
41 INCLUDEDIR="${D}/${includedir}" \
42 LIBDIR="${D}/${libdir}" \
43 SHLIBDIR="${D}/${libdir}"
44
36 oe_runmake install-pywrap swigify \ 45 oe_runmake install-pywrap swigify \
37 DESTDIR=${D} \ 46 DESTDIR=${D} \
38 PYLIBVER='python${PYTHON_BASEVERSION}' \ 47 PYLIBVER='python${PYTHON_BASEVERSION}' \
39 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)' 48 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
40 cd ${D}${libdir} && \
41 rm -f libsemanage.so && \
42 ln -s ../../`basename ${libdir}`/libsemanage.so.1 libsemanage.so
43} 49}
44 50
45BBCLASSEXTEND = "native" 51BBCLASSEXTEND = "native"
diff --git a/recipes-security/selinux/policycoreutils_git.bb b/recipes-security/selinux/policycoreutils_git.bb
index 668dec8..e25d692 100644
--- a/recipes-security/selinux/policycoreutils_git.bb
+++ b/recipes-security/selinux/policycoreutils_git.bb
@@ -14,15 +14,16 @@ include selinux_git.inc
14SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e" 14SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e"
15PV = "2.1.10+git${SRCPV}" 15PV = "2.1.10+git${SRCPV}"
16 16
17DEPENDS += "libsepol libselinux libsemanage libcap-ng libcgroup" 17DEPENDS += "libsepol libselinux libsemanage"
18DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}" 18DEPENDS_${BPN} += "libcap-ng libcgroup"
19DEPENDS_${BPN} += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}"
19 20
20RDEPENDS_${PN} += "\ 21RDEPENDS_${BPN} += "\
21 libselinux-python \ 22 libselinux-python \
22 libsemanage-python \ 23 libsemanage-python \
23 sepolgen \ 24 sepolgen \
24 " 25 "
25RDEPENDS_${PN} += "\ 26RDEPENDS_${BPN} += "\
26 python \ 27 python \
27 python-unixadmin \ 28 python-unixadmin \
28 python-shell \ 29 python-shell \
@@ -32,9 +33,7 @@ RDEPENDS_${PN} += "\
32 python-textutils \ 33 python-textutils \
33 python-IPy \ 34 python-IPy \
34 " 35 "
35#RDEPENDS_${PN} += "setools" 36RDEPENDS_${BPN} += "setools"
36
37RDEPENDS_${PN}_virtclass-native = "python-native sepolgen-native"
38 37
39 38
40PACKAGES =+ "${PN}-python ${PN}-sandbox" 39PACKAGES =+ "${PN}-python ${PN}-sandbox"
@@ -44,7 +43,9 @@ FILES_${PN}-sandbox += "${bindir}/sandbox"
44FILES_${PN}-sandbox += "${sbindir}/seunshare" 43FILES_${PN}-sandbox += "${sbindir}/seunshare"
45 44
46CFLAGS_append = " -Wno-error=format-security" 45CFLAGS_append = " -Wno-error=format-security"
47EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=y AUDITH=y', '', d)}" 46AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `"
47PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `"
48EXTRA_OEMAKE += "PAMH=${PAMH} AUDITH=${AUDITH} INOTIFYH=n"
48EXTRA_OEMAKE += "PREFIX=${D}" 49EXTRA_OEMAKE += "PREFIX=${D}"
49 50
50BBCLASSEXTEND = "native" 51BBCLASSEXTEND = "native"
diff --git a/recipes-security/selinux/sepolgen_git.bb b/recipes-security/selinux/sepolgen_git.bb
index e665cd0..3a14b0b 100644
--- a/recipes-security/selinux/sepolgen_git.bb
+++ b/recipes-security/selinux/sepolgen_git.bb
@@ -1,5 +1,17 @@
1SUMMARY = "Python modules for supporting various SELinux utilities." 1SUMMARY = "Python modules for supporting various SELinux utilities."
2DESCRIPTION = "Python modules for supporting various SELinux utilities." 2DESCRIPTION = "\
3This package contains a Python module that forms the core of the \
4modern audit2allow (which is a part of the package policycoreutils). \
5The sepolgen library is structured to give flexibility to the \
6application using it. The library contains: Reference Policy \
7Representation, which are Objects for representing policies and the \
8reference policy interfaces. Secondly, it has objects and algorithms \
9for representing access and sets of access in an abstract way and \
10searching that access. It also has a parser for reference policy \
11"headers". It contains infrastructure for parsing SELinux related \
12messages as produced by the audit system. It has facilities for \
13generating policy based on required access."
14
3SECTION = "base" 15SECTION = "base"
4PR = "r1" 16PR = "r1"
5LICENSE = "LGPLv2+" 17LICENSE = "LGPLv2+"