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:
parent
73629185c0
commit
63a4f795dc
3 changed files with 41 additions and 1 deletions
23
samples/base-with-selinux.json
Normal file
23
samples/base-with-selinux.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -14,7 +14,8 @@
|
|||
}
|
||||
},
|
||||
"packages": [
|
||||
"@Core"
|
||||
"@Core",
|
||||
"selinux-policy-targeted"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue