diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-04-11 17:40:01 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-04-11 17:44:43 +0800 |
commit | 6554a270ed267b587ac36f34f10e63563a27d601 (patch) | |
tree | a4c0a53bfc9b1bdb4692b8a39cb6c2224a56e0d8 | |
parent | 35529e317f9939af083245419a40c6bb80ce297c (diff) | |
download | meta-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.bb | 8 | ||||
-rw-r--r-- | recipes-security/selinux/libselinux_git.bb | 2 | ||||
-rw-r--r-- | recipes-security/selinux/libsemanage_git.bb | 16 | ||||
-rw-r--r-- | recipes-security/selinux/policycoreutils_git.bb | 17 | ||||
-rw-r--r-- | recipes-security/selinux/sepolgen_git.bb | 14 |
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 @@ | |||
1 | SUMMARY = "SELinux policy compiler" | 1 | SUMMARY = "SELinux policy compiler" |
2 | DESCRIPTION = "SELinux policy compiler" | 2 | DESCRIPTION = "\ |
3 | This package contains checkpolicy, the SELinux policy compiler. Only \ | ||
4 | required for building policies. It uses libsepol to generate the \ | ||
5 | binary policy. checkpolicy uses the static libsepol since it deals \ | ||
6 | with low level details of the policy that have not been \ | ||
7 | encapsulated/abstracted by a proper shared library interface." | ||
8 | |||
3 | SECTION = "base" | 9 | SECTION = "base" |
4 | PR = "r1" | 10 | PR = "r1" |
5 | LICENSE = "GPLv2+" | 11 | LICENSE = "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 \ | |||
4 | decisions. Required for any applications that use the SELinux API." | 4 | decisions. Required for any applications that use the SELinux API." |
5 | SECTION = "base" | 5 | SECTION = "base" |
6 | PR = "r1" | 6 | PR = "r1" |
7 | LICENSE = "NSA-Public_Domain" | 7 | LICENSE = "Public Domain" |
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" |
9 | 9 | ||
10 | include selinux_git.inc | 10 | include 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}" | |||
17 | DEPENDS += "libsepol libselinux ustr bzip2 python" | 17 | DEPENDS += "libsepol libselinux ustr bzip2 python" |
18 | 18 | ||
19 | SRC_URI += "file://Fix-segfault-for-standard-policy.patch" | 19 | SRC_URI += "file://Fix-segfault-for-standard-policy.patch" |
20 | SRC_URI += "file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch" | ||
21 | SRC_URI += "file://libsemanage-semanage.conf-for-cross-compile.patch" | ||
20 | 22 | ||
21 | PACKAGES += "${PN}-python" | 23 | PACKAGES += "${PN}-python" |
22 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | 24 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
23 | FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*" | 25 | FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*" |
24 | 26 | ||
25 | do_compile_append() { | 27 | do_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 | ||
35 | do_install_append() { | 37 | do_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 | ||
45 | BBCLASSEXTEND = "native" | 51 | BBCLASSEXTEND = "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 | |||
14 | SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e" | 14 | SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e" |
15 | PV = "2.1.10+git${SRCPV}" | 15 | PV = "2.1.10+git${SRCPV}" |
16 | 16 | ||
17 | DEPENDS += "libsepol libselinux libsemanage libcap-ng libcgroup" | 17 | DEPENDS += "libsepol libselinux libsemanage" |
18 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}" | 18 | DEPENDS_${BPN} += "libcap-ng libcgroup" |
19 | DEPENDS_${BPN} += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}" | ||
19 | 20 | ||
20 | RDEPENDS_${PN} += "\ | 21 | RDEPENDS_${BPN} += "\ |
21 | libselinux-python \ | 22 | libselinux-python \ |
22 | libsemanage-python \ | 23 | libsemanage-python \ |
23 | sepolgen \ | 24 | sepolgen \ |
24 | " | 25 | " |
25 | RDEPENDS_${PN} += "\ | 26 | RDEPENDS_${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" | 36 | RDEPENDS_${BPN} += "setools" |
36 | |||
37 | RDEPENDS_${PN}_virtclass-native = "python-native sepolgen-native" | ||
38 | 37 | ||
39 | 38 | ||
40 | PACKAGES =+ "${PN}-python ${PN}-sandbox" | 39 | PACKAGES =+ "${PN}-python ${PN}-sandbox" |
@@ -44,7 +43,9 @@ FILES_${PN}-sandbox += "${bindir}/sandbox" | |||
44 | FILES_${PN}-sandbox += "${sbindir}/seunshare" | 43 | FILES_${PN}-sandbox += "${sbindir}/seunshare" |
45 | 44 | ||
46 | CFLAGS_append = " -Wno-error=format-security" | 45 | CFLAGS_append = " -Wno-error=format-security" |
47 | EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=y AUDITH=y', '', d)}" | 46 | AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" |
47 | PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" | ||
48 | EXTRA_OEMAKE += "PAMH=${PAMH} AUDITH=${AUDITH} INOTIFYH=n" | ||
48 | EXTRA_OEMAKE += "PREFIX=${D}" | 49 | EXTRA_OEMAKE += "PREFIX=${D}" |
49 | 50 | ||
50 | BBCLASSEXTEND = "native" | 51 | BBCLASSEXTEND = "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 @@ | |||
1 | SUMMARY = "Python modules for supporting various SELinux utilities." | 1 | SUMMARY = "Python modules for supporting various SELinux utilities." |
2 | DESCRIPTION = "Python modules for supporting various SELinux utilities." | 2 | DESCRIPTION = "\ |
3 | This package contains a Python module that forms the core of the \ | ||
4 | modern audit2allow (which is a part of the package policycoreutils). \ | ||
5 | The sepolgen library is structured to give flexibility to the \ | ||
6 | application using it. The library contains: Reference Policy \ | ||
7 | Representation, which are Objects for representing policies and the \ | ||
8 | reference policy interfaces. Secondly, it has objects and algorithms \ | ||
9 | for representing access and sets of access in an abstract way and \ | ||
10 | searching that access. It also has a parser for reference policy \ | ||
11 | "headers". It contains infrastructure for parsing SELinux related \ | ||
12 | messages as produced by the audit system. It has facilities for \ | ||
13 | generating policy based on required access." | ||
14 | |||
3 | SECTION = "base" | 15 | SECTION = "base" |
4 | PR = "r1" | 16 | PR = "r1" |
5 | LICENSE = "LGPLv2+" | 17 | LICENSE = "LGPLv2+" |