summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShrikant Bobade <shrikant_bobade@mentor.com>2016-07-01 18:47:22 +0530
committerJoe MacDonald <joe_macdonald@mentor.com>2016-07-04 15:42:36 -0400
commit655db117a2f8a6f6d925d8c9f278354710f86df3 (patch)
tree500fbf045239b1a4e6c99630befee050f9691e85
parent9f1bb489ac1685cec8ca318338917d556fd09b86 (diff)
downloadmeta-selinux-655db117a2f8a6f6d925d8c9f278354710f86df3.tar.gz
README: update with systemd & virtual/refpolicy details
add init manager user guidelines and examples for using refpolicy with perticular version and type. Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--README27
1 files changed, 25 insertions, 2 deletions
diff --git a/README b/README
index 284d862..dabaa41 100644
--- a/README
+++ b/README
@@ -65,6 +65,8 @@ An "oe-selinux" distribution is also included as a convienence for people
65working with this layer, without the additional Poky meta data. This 65working with this layer, without the additional Poky meta data. This
66approach may work, but is not generally tested by the maintainers. 66approach may work, but is not generally tested by the maintainers.
67 67
68e.g. DISTRO="poky-selinux"
69
68 70
69Using different versions of linux-yocto 71Using different versions of linux-yocto
70--------------------------------------- 72---------------------------------------
@@ -75,6 +77,7 @@ currently supported: v3.14, v3.19, v4.1(by default).
75* enable the preferred linux-yocto to local.conf or oe-selinux.conf 77* enable the preferred linux-yocto to local.conf or oe-selinux.conf
76e.g. PREFERRED_VERSION_linux-yocto_qemuarm = "3.19%" 78e.g. PREFERRED_VERSION_linux-yocto_qemuarm = "3.19%"
77 79
80
78Using different versions of refpolicy 81Using different versions of refpolicy
79------------------------------------- 82-------------------------------------
80To prepare selinux enabled images using different ver. of refpolicy, 83To prepare selinux enabled images using different ver. of refpolicy,
@@ -86,8 +89,28 @@ By default refpolicy from git builds head commit of master branch, we can update
86SRCREV for refpolicy and refpolicy-contrib as appropriate at refpolicy_git.inc 89SRCREV for refpolicy and refpolicy-contrib as appropriate at refpolicy_git.inc
87to check refpolicy as per required commits. 90to check refpolicy as per required commits.
88 91
89* enable the preferred refpolicy-mls to local.conf or oe-selinux.conf 92* enable the preferred refpolicy-minimum to local.conf or oe-selinux.conf
90e.g. REFERRED_VERSION_refpolicy-mls = "2.20140311" 93e.g. PREFERRED_VERSION_refpolicy-minimum = "2.20151208"
94
95
96Using perticular refpolicy policy type
97--------------------------------------
98Provider "virtual/refpolicy" used to set perticular refpolicy type.
99
100* enabled refpolicy-minimum from refpolicy types at config level
101e.g. PREFERRED_PROVIDER_virtual/refpolicy ?= "refpolicy-minimum"
102
103
104Using different init manager
105----------------------------
106By default selinux enabled images coming up with "sysvinit" as init manager,
107we can use "systemd" as an init manager using below changes to local.conf
108
109* enable systemd as init manager changes to local.conf
110DISTRO_FEATURES_remove = " sysvinit"
111DISTRO_FEATURES_append = " systemd"
112VIRTUAL-RUNTIME_init_manager = "systemd"
113DISTRO_FEATURES_BACKFILL_CONSIDERED = ""
91 114
92 115
93License 116License