Skip to content

Commit 7fcc231

Browse files
Add selinux seltype to container start and stop scripts
1 parent ea6adc8 commit 7fcc231

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manifests/run.pp

+2
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@
572572
file { $startscript:
573573
ensure => file,
574574
content => epp($startstop_template, { 'script' => $docker_run_inline_start }),
575+
seltype => 'container_runtime_exec_t',
575576
owner => 'root',
576577
group => $docker_group,
577578
mode => '0770',
@@ -581,6 +582,7 @@
581582
file { $stopscript:
582583
ensure => file,
583584
content => epp($startstop_template, { 'script' => $docker_run_inline_stop }),
585+
seltype => 'container_runtime_exec_t',
584586
owner => 'root',
585587
group => $docker_group,
586588
mode => '0770',

0 commit comments

Comments
 (0)