Go to file
Mark Hatle 4fefe83c32 Refactor to conform to YP Compat requirements
Change the references to check for the distribution flag of 'selinux' being
set before taking any action within the bbappends.  This prevents the
signature from being modified.

Also remove PR changes, as they are no longer allowed.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2017-09-14 08:29:01 -05:00
classes selinux-image: enable image labelling 2017-05-02 21:21:44 -04:00
conf README: Update and remove references to distros, replace w/ DISTRO_FEATURES 2017-09-14 08:29:01 -05:00
meta-python/recipes-extended/augeas/augeas Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
networking-layer/recipes-daemons/iscsi-initiator-utils Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
recipes-connectivity Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
recipes-core Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
recipes-devtools Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
recipes-extended Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
recipes-graphics Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
recipes-kernel Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
recipes-security refpolicy-git: Update to lastest git version 2017-09-14 08:29:01 -05:00
recipes-support Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
virtualization-layer/recipes-containers/lxc Refactor to conform to YP Compat requirements 2017-09-14 08:29:01 -05:00
MAINTAINERS MAINTAINERS: Update maintainers file 2016-02-22 08:52:20 -05:00
README README: Update and remove references to distros, replace w/ DISTRO_FEATURES 2017-09-14 08:29:01 -05: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.

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

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.


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

This layer depends on the openembedded-core metadata.

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 your projects bblayers.conf file.

By default the selinux components are disabled.  This conforms to the
Yocto Project compatible guideline that indicate that simply including a
layer should not change the system behavior.

In order to use the components in this layer you must add the 'selinux' to the
DISTRO_FEATURES.  In addition to selinux, you should be sure that acl, xattr and
pam are also present.
e.g. DISTRO_FEATURES_append = " acl xattr pam selinux"

You must also specify a preferred provider for the virtual/refpolicy.  The
included policies with this layer are simply reference policies and will need
to be tailored for your environment.  
* Enable the refpolicy-mls:
e.g. PREFERRED_PROVIDER_virtual/refpolicy ?= "refpolicy-mls"


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:
e.g. PREFERRED_VERSION_refpolicy-minimum = "2.20151208"


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.