diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-02-20 15:32:01 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-02-20 15:32:01 +0800 |
commit | 354213d8e8b295a99deec4bd586f076eb3b8d3e3 (patch) | |
tree | 778d0880191060cd46628c4f27275133723904cf | |
parent | 12123061738f259faf17a0910a8a26c26c4f611b (diff) | |
download | meta-selinux-354213d8e8b295a99deec4bd586f076eb3b8d3e3.tar.gz |
Add bb recipes for new release 2012-02-16.
-rw-r--r-- | recipes-security/selinux/checkpolicy_2.1.8.bb | 24 | ||||
-rw-r--r-- | recipes-security/selinux/libselinux_2.1.9.bb | 48 | ||||
-rw-r--r-- | recipes-security/selinux/libsemanage_2.1.6.bb | 45 | ||||
-rw-r--r-- | recipes-security/selinux/libsepol_2.1.4.bb | 18 | ||||
-rw-r--r-- | recipes-security/selinux/policycoreutils_2.1.10.bb | 69 | ||||
-rw-r--r-- | recipes-security/selinux/selinux_20120216.inc | 12 | ||||
-rw-r--r-- | recipes-security/selinux/sepolgen_1.1.5.bb | 27 |
7 files changed, 243 insertions, 0 deletions
diff --git a/recipes-security/selinux/checkpolicy_2.1.8.bb b/recipes-security/selinux/checkpolicy_2.1.8.bb new file mode 100644 index 0000000..f057855 --- /dev/null +++ b/recipes-security/selinux/checkpolicy_2.1.8.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "SELinux policy compiler" | ||
2 | DESCRIPTION = "SELinux policy compiler" | ||
3 | SECTION = "base" | ||
4 | PR = "r1" | ||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | ||
7 | |||
8 | include selinux_20120216.inc | ||
9 | |||
10 | SRC_URI[md5sum] = "e7b5d62873d4efc8a502b75f042f6735" | ||
11 | SRC_URI[sha256sum] = "8ed586fd2ccf9900f86e38b72af4aa5cc3bade35d0fa19c53ac1a3d59fe0013a" | ||
12 | |||
13 | DEPENDS += "libsepol libselinux flex-native" | ||
14 | |||
15 | EXTRA_OEMAKE += "PREFIX=${D}" | ||
16 | EXTRA_OEMAKE += "LEX='flex'" | ||
17 | |||
18 | BBCLASSEXTEND = "native" | ||
19 | |||
20 | do_install_append() { | ||
21 | install test/dismod ${D}/${bindir}/sedismod | ||
22 | install test/dispol ${D}/${bindir}/sedispol | ||
23 | } | ||
24 | |||
diff --git a/recipes-security/selinux/libselinux_2.1.9.bb b/recipes-security/selinux/libselinux_2.1.9.bb new file mode 100644 index 0000000..faf9a09 --- /dev/null +++ b/recipes-security/selinux/libselinux_2.1.9.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | SUMMARY = "SELinux library and simple utilities" | ||
2 | DESCRIPTION = "libselinux provides an API for SELinux applications to get and set \ | ||
3 | process and file security contexts and to obtain security policy \ | ||
4 | decisions. Required for any applications that use the SELinux API." | ||
5 | SECTION = "base" | ||
6 | PR = "r1" | ||
7 | LICENSE = "NSA-Public_Domain" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" | ||
9 | |||
10 | include selinux_20120216.inc | ||
11 | inherit lib_package | ||
12 | |||
13 | SRC_URI[md5sum] = "8ea0548dd65e9479b357ba1447f89221" | ||
14 | SRC_URI[sha256sum] = "749d4b39c80aa9df8247b8b3187ab72442c0dbad6e70bf312e25052bd4e7063f" | ||
15 | |||
16 | DEPENDS += "libsepol python python-native swig-native" | ||
17 | |||
18 | PACKAGES += "${PN}-python" | ||
19 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/*" | ||
20 | FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/.debug/*" | ||
21 | |||
22 | python __anonymous () { | ||
23 | import re | ||
24 | target = d.getVar('TARGET_ARCH', True) | ||
25 | extra_oemake = d.getVar('EXTRA_OEMAKE', True) | ||
26 | p = re.compile('i.86') | ||
27 | target = p.sub('i386',target) | ||
28 | d.setVar("EXTRA_OEMAKE", extra_oemake + " ARCH='" + target + "'") | ||
29 | } | ||
30 | |||
31 | do_compile_append() { | ||
32 | oe_runmake pywrap -j1 \ | ||
33 | INCLUDEDIR='${STAGING_INCDIR}' \ | ||
34 | LIBDIR='${STAGING_LIBDIR}' \ | ||
35 | PYLIBVER='python${PYTHON_BASEVERSION}' \ | ||
36 | PYINC='-I${STAGING_INCDIR}/$(PYLIBVER)' \ | ||
37 | PYLIB='-L${STAGING_LIBDIR}/$(PYLIBVER) -l$(PYLIBVER)' \ | ||
38 | PYTHONLIBDIR='${PYLIB}' | ||
39 | } | ||
40 | |||
41 | do_install_append() { | ||
42 | oe_runmake install-pywrap swigify \ | ||
43 | DESTDIR=${D} \ | ||
44 | PYLIBVER='python${PYTHON_BASEVERSION}' \ | ||
45 | PYLIBDIR='${D}/${libdir}/$(PYLIBVER)' | ||
46 | } | ||
47 | |||
48 | BBCLASSEXTEND = "native" | ||
diff --git a/recipes-security/selinux/libsemanage_2.1.6.bb b/recipes-security/selinux/libsemanage_2.1.6.bb new file mode 100644 index 0000000..7333155 --- /dev/null +++ b/recipes-security/selinux/libsemanage_2.1.6.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | SUMMARY = "SELinux binary policy manipulation library" | ||
2 | DESCRIPTION = "libsemanage provides an API for the manipulation of SELinux binary policies. \ | ||
3 | It is used by checkpolicy (the policy compiler) and similar tools, as well \ | ||
4 | as by programs like load_policy that need to perform specific transformations \ | ||
5 | on binary policies such as customizing policy boolean settings." | ||
6 | SECTION = "base" | ||
7 | PR = "r1" | ||
8 | LICENSE = "LGPLv2.1+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" | ||
10 | |||
11 | include selinux_20120216.inc | ||
12 | inherit lib_package | ||
13 | |||
14 | SRC_URI[md5sum] = "b49d75602432d8cfad8a3e5a0a966f07" | ||
15 | SRC_URI[sha256sum] = "64e6849fe50fb463ec0ba24653a26e3452fa4aaa7d7e192213d5c5a7c525aebb" | ||
16 | |||
17 | DEPENDS += "libsepol libselinux ustr bzip2 python" | ||
18 | |||
19 | SRC_URI += "file://Fix-segfault-for-standard-policy.patch" | ||
20 | |||
21 | PACKAGES += "${PN}-python" | ||
22 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | ||
23 | FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*" | ||
24 | |||
25 | do_compile_append() { | ||
26 | oe_runmake pywrap -j1 \ | ||
27 | INCLUDEDIR='${STAGING_INCDIR}' \ | ||
28 | LIBDIR='${STAGING_LIBDIR}' \ | ||
29 | PYLIBVER='python${PYTHON_BASEVERSION}' \ | ||
30 | PYINC='-I${STAGING_INCDIR}/$(PYLIBVER)' \ | ||
31 | PYLIB='-L${STAGING_LIBDIR}/$(PYLIBVER) -l$(PYLIBVER)' \ | ||
32 | PYTHONLIBDIR='${PYLIB}' | ||
33 | } | ||
34 | |||
35 | do_install_append() { | ||
36 | oe_runmake install-pywrap swigify \ | ||
37 | DESTDIR=${D} \ | ||
38 | PYLIBVER='python${PYTHON_BASEVERSION}' \ | ||
39 | PYLIBDIR='${D}/${libdir}/$(PYLIBVER)' | ||
40 | cd ${D}${libdir} && \ | ||
41 | rm -f libsemanage.so && \ | ||
42 | ln -s ../../`basename ${libdir}`/libsemanage.so.1 libsemanage.so | ||
43 | } | ||
44 | |||
45 | BBCLASSEXTEND = "native" | ||
diff --git a/recipes-security/selinux/libsepol_2.1.4.bb b/recipes-security/selinux/libsepol_2.1.4.bb new file mode 100644 index 0000000..2a7633b --- /dev/null +++ b/recipes-security/selinux/libsepol_2.1.4.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "SELinux binary policy manipulation library" | ||
2 | DESCRIPTION = "libsepol provides an API for the manipulation of SELinux binary policies. \ | ||
3 | It is used by checkpolicy (the policy compiler) and similar tools, as well \ | ||
4 | as by programs like load_policy that need to perform specific transformations \ | ||
5 | on binary policies such as customizing policy boolean settings." | ||
6 | SECTION = "base" | ||
7 | PR = "r1" | ||
8 | LICENSE = "LGPLv2+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" | ||
10 | |||
11 | include selinux_20120216.inc | ||
12 | inherit lib_package | ||
13 | |||
14 | SRC_URI[md5sum] = "909dae553edb34ea2224002a0c529cb0" | ||
15 | SRC_URI[sha256sum] = "8f5ea42ae6cc00b21f0e5f31f354d19fcce3edfe9328971d266245718714b1e8" | ||
16 | |||
17 | BBCLASSEXTEND = "native" | ||
18 | |||
diff --git a/recipes-security/selinux/policycoreutils_2.1.10.bb b/recipes-security/selinux/policycoreutils_2.1.10.bb new file mode 100644 index 0000000..b448747 --- /dev/null +++ b/recipes-security/selinux/policycoreutils_2.1.10.bb | |||
@@ -0,0 +1,69 @@ | |||
1 | SUMMARY = "SELinux policy core utilities" | ||
2 | DESCRIPTION = "policycoreutils contains the policy core utilities that are required \ | ||
3 | for basic operation of a SELinux system. These utilities include \ | ||
4 | load_policy to load policies, setfiles to label filesystems, newrole \ | ||
5 | to switch roles, and run_init to run /etc/init.d scripts in the proper \ | ||
6 | context." | ||
7 | SECTION = "base" | ||
8 | PR = "r1" | ||
9 | LICENSE = "GPLv2+" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | ||
11 | |||
12 | include selinux_20120216.inc | ||
13 | |||
14 | SRC_URI[md5sum] = "fefdede2815cdd2ba8b68599fef1f257" | ||
15 | SRC_URI[sha256sum] = "8bbbc36b7d375edff891503932da93e37553f0dd7bdceded7ce9a45c80bec3d1" | ||
16 | |||
17 | DEPENDS += "libsepol libselinux libsemanage libcap-ng libcgroup" | ||
18 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}" | ||
19 | |||
20 | RDEPENDS_${PN} += "\ | ||
21 | libselinux-python \ | ||
22 | libsemanage-python \ | ||
23 | sepolgen \ | ||
24 | " | ||
25 | RDEPENDS_${PN} += "\ | ||
26 | python \ | ||
27 | python-unixadmin \ | ||
28 | python-shell \ | ||
29 | python-crypt \ | ||
30 | python-subprocess \ | ||
31 | python-syslog \ | ||
32 | python-textutils \ | ||
33 | python-IPy \ | ||
34 | " | ||
35 | #RDEPENDS_${PN} += "setools" | ||
36 | |||
37 | RDEPENDS_${PN}_virtclass-native = "python-native sepolgen-native" | ||
38 | |||
39 | |||
40 | PACKAGES =+ "${PN}-python ${PN}-sandbox" | ||
41 | FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | ||
42 | FILES_${PN}-sandbox = "${datadir}/sandbox/*" | ||
43 | FILES_${PN}-sandbox += "${bindir}/sandbox" | ||
44 | FILES_${PN}-sandbox += "${sbindir}/seunshare" | ||
45 | |||
46 | CFLAGS_append = " -Wno-error=format-security" | ||
47 | EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=y AUDITH=y', '', d)}" | ||
48 | EXTRA_OEMAKE += "PREFIX=${D}" | ||
49 | |||
50 | BBCLASSEXTEND = "native" | ||
51 | |||
52 | PCU_NATIVE_CMDS = "setfiles semodule_package semodule semodule_link semodule_expand semodule_deps" | ||
53 | |||
54 | do_compile_virtclass-native() { | ||
55 | for PCU_CMD in ${PCU_NATIVE_CMDS} ; do | ||
56 | oe_runmake -C $PCU_CMD \ | ||
57 | INCLUDEDIR='${STAGING_INCDIR}' \ | ||
58 | LIBDIR='${STAGING_LIBDIR}' | ||
59 | done | ||
60 | } | ||
61 | |||
62 | do_install_virtclass-native() { | ||
63 | for PCU_CMD in ${PCU_NATIVE_CMDS} ; do | ||
64 | oe_runmake -C $PCU_CMD install \ | ||
65 | DESTDIR="${D}" \ | ||
66 | PREFIX="${D}/${prefix}" \ | ||
67 | SBINDIR="${D}/${base_sbindir}" | ||
68 | done | ||
69 | } | ||
diff --git a/recipes-security/selinux/selinux_20120216.inc b/recipes-security/selinux/selinux_20120216.inc new file mode 100644 index 0000000..b2fac15 --- /dev/null +++ b/recipes-security/selinux/selinux_20120216.inc | |||
@@ -0,0 +1,12 @@ | |||
1 | SELINUX_RELEASE = "20120216" | ||
2 | |||
3 | SRC_URI = "http://userspace.selinuxproject.org/releases/${SELINUX_RELEASE}/${BPN}-${PV}.tar.gz" | ||
4 | |||
5 | PREFERRED_VERSION_checkpolicy = "2.1.8" | ||
6 | PREFERRED_VERSION_libselinux = "2.1.9" | ||
7 | PREFERRED_VERSION_libsemanage = "2.1.6" | ||
8 | PREFERRED_VERSION_libsepol = "2.1.4" | ||
9 | PREFERRED_VERSION_policycoreutils = "2.1.10" | ||
10 | PREFERRED_VERSION_sepolgen = "1.1.5" | ||
11 | |||
12 | include selinux_common.inc | ||
diff --git a/recipes-security/selinux/sepolgen_1.1.5.bb b/recipes-security/selinux/sepolgen_1.1.5.bb new file mode 100644 index 0000000..36246a9 --- /dev/null +++ b/recipes-security/selinux/sepolgen_1.1.5.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | SUMMARY = "Python modules for supporting various SELinux utilities." | ||
2 | DESCRIPTION = "Python modules for supporting various SELinux utilities." | ||
3 | SECTION = "base" | ||
4 | PR = "r1" | ||
5 | LICENSE = "LGPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | ||
7 | |||
8 | include selinux_20120216.inc | ||
9 | |||
10 | SRC_URI[md5sum] = "4ecadef3880019d8cdc08896687608b1" | ||
11 | SRC_URI[sha256sum] = "16c2b10510be7dbb2dc0967aedb2d69c654ca52ed03d04881c17d2f8b863b3bb" | ||
12 | |||
13 | FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | ||
14 | |||
15 | DEPENDS += "python" | ||
16 | |||
17 | FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/site-packages \ | ||
18 | /var/lib/sepolgen" | ||
19 | |||
20 | do_install() { | ||
21 | oe_runmake DESTDIR=${D} \ | ||
22 | PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ | ||
23 | install | ||
24 | } | ||
25 | |||
26 | BBCLASSEXTEND = "native" | ||
27 | |||