stages/selinux: add an selinux stage

This stage labels the target tree based on an SELinux policy already
installed in the target.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-06-21 13:36:49 +02:00
parent 73629185c0
commit 63a4f795dc
3 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,23 @@
{
"name": "base-with-selinux",
"stages": [
{
"name": "io.weldr.untree",
"options": {
"tree": "base"
}
},
{
"name": "io.weldr.selinux",
"options": {
"file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
}
}
],
"assembler": {
"name": "io.weldr.tree",
"options": {
"tree": "base-with-selinux"
}
}
}

View file

@ -14,7 +14,8 @@
}
},
"packages": [
"@Core"
"@Core",
"selinux-policy-targeted"
]
}
}