Go to file
Wenzong Fan fdf76122b6 setools: uprev to 4.1.1
SETools v4 is a rewrite of SETools in Python, details refer to:
https://github.com/TresysTechnology/setools/wiki/Changes-Since-SETools-v3

Changes for upreving:
* removed setools_3.3.8.bb and all useless patch
* add patches to fix cross-compiling issues:
  - setools4-fixes-for-cross-compiling.patch
  - setools4-fix-cross-compiling-errors-for-powerpc-mips.patch

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>

Per discussion w/ Wenzong, added meta-python as a dependency and enabled
the RDEPENDS within the new setools_4.1.1.bb

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2017-09-14 08:28:09 -05:00
classes selinux-image: enable image labelling 2017-05-02 21:21:44 -04:00
conf setools: uprev to 4.1.1 2017-09-14 08:28:09 -05:00
meta-python/recipes-extended/augeas/augeas augeas: Move to meta-python optional layer 2016-08-09 09:31:01 -04:00
networking-layer/recipes-daemons/iscsi-initiator-utils iscsi-initiator-utils: fix label for initiatorname.iscsi 2015-04-16 13:50:23 -04:00
recipes-connectivity openssh: set ChallengeResponseAuthentication to no 2017-09-08 13:11:51 -05:00
recipes-core systemd: Remove inherit enable-selinux, obsolete 2017-09-13 16:35:19 -05:00
recipes-devtools rpm: modify the rpm bbappend file to suitable for rpm4 2017-05-16 07:55:51 -04:00
recipes-extended removed ustr package as it is unused 2017-05-02 09:21:35 -04:00
recipes-graphics mesa: Use wildcard for version number in bbappend. 2014-05-16 18:04:08 +08:00
recipes-kernel linux-yocto: Use wildcard in 4.x bbappend. 2016-02-27 05:36:54 +00:00
recipes-security setools: uprev to 4.1.1 2017-09-14 08:28:09 -05:00
recipes-support attr: fix ptest failures when selinux enabled 2017-09-08 13:20:27 -05:00
virtualization-layer/recipes-containers/lxc Fix bad path in d382d5 2015-03-04 08:41:30 -05:00
MAINTAINERS MAINTAINERS: Update maintainers file 2016-02-22 08:52:20 -05:00
README README: update with systemd & virtual/refpolicy details 2016-07-04 15:42:36 -04:00
SELinux-FAQ documentation: update guidance for runqemu 2013-09-25 10:52:12 -04:00

meta-selinux
============

This layer's purpose is enabling SE Linux support when used with Poky.

The majority of this layers work is accomplished in bbappend files, used to
enable SE Linux support in existing Poky packages.

A new recipes-security was added.  The purpose of this category is to add
software specific to system security.

Please see the MAINTAINERS file for information on contacting the maintainers
of this layer, as well as instructions for submitting patches.

status
------
Sep 17, 2013 - Updated to match oe-core/poky master for what will be the
	1.5 release
  * Misc bug fixes
  * Update distro config
  * Uprev various packages

Jan 31, 2012 - Initial version of the layer available.  Basic functionality:
  * new recipes-security -- includes all SE Linux core components
  * enable kernel configuration of SE Linux components
  * enable a few basic recipes to be used as examples for others


Dependencies
------------

This layer depends on the Poky metadata.  For more information on Poky see
the Yocto Project website:

http://www.yoctoproject.org

This layer also optionally depends on the following layers:

URI: git://github.com/openembedded/meta-oe.git
branch: master
revision: HEAD
layers: meta-oe
        meta-networking
        meta-python

URI: git://git.yoctoproject.org/meta-virtualization
branch: master
revision: HEAD


Maintenance
-----------
Please see the MAINTAINERS file for information on contacting the maintainers
of this layer, as well as instructions for submitting patches.


Building the meta-selinux layer
-------------------------------
In order to add selinux support to the poky build this layer should be added
to the bblayers.conf file.  In addition you should modify your local.conf
to specify the "poky-selinux" distribution.


An "oe-selinux" distribution is also included as a convienence for people
working with this layer, without the additional Poky meta data.  This
approach may work, but is not generally tested by the maintainers.

e.g. DISTRO="poky-selinux"


Using different versions of linux-yocto
---------------------------------------
To prepare selinux enabled images using different ver. of linux-yocto,
we can choose supported versions of linux-yocto,
currently supported: v3.14, v3.19, v4.1(by default).

* enable the preferred linux-yocto to local.conf or oe-selinux.conf
e.g. PREFERRED_VERSION_linux-yocto_qemuarm = "3.19%"


Using different versions of refpolicy
-------------------------------------
To prepare selinux enabled images using different ver. of refpolicy,
we can choose supported releases of refpolicy
refer to available versions under recipes-security/refpolicy

We can use the refpolicy directly from git repository instead of release tarballs.
By default refpolicy from git builds head commit of master branch, we can update
SRCREV for refpolicy and refpolicy-contrib as appropriate at refpolicy_git.inc
to check refpolicy as per required commits.

* enable the preferred refpolicy-minimum to local.conf or oe-selinux.conf
e.g. PREFERRED_VERSION_refpolicy-minimum = "2.20151208"


Using perticular refpolicy policy type
--------------------------------------
Provider "virtual/refpolicy" used to set perticular refpolicy type.

* enabled refpolicy-minimum from refpolicy types at config level
e.g. PREFERRED_PROVIDER_virtual/refpolicy ?= "refpolicy-minimum"


Using different init manager
----------------------------
By default selinux enabled images coming up with "sysvinit" as init manager,
we can use "systemd" as an init manager using below changes to local.conf

* enable systemd as init manager changes to local.conf
DISTRO_FEATURES_remove = " sysvinit"
DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = ""


License
-------

All metadata is MIT licensed unless otherwise stated. Source code included
in tree for individual recipes is under the LICENSE stated in each recipe
(.bb file) unless otherwise stated.

This README document is Copyright (C) 2012 Wind River Systems, Inc.