2026-04-05 16:45:14 +02:00
|
|
|
## confdroid_selinux::main::config.pp
|
|
|
|
|
# Module name: confdroid_selinux
|
|
|
|
|
# Author: 12ww1160 (12ww1160@ConfDroid.com)
|
|
|
|
|
# @summary Class manages the module logic for confdroid_selinux.
|
2017-07-20 12:38:15 +01:00
|
|
|
##############################################################################
|
2026-04-05 16:45:14 +02:00
|
|
|
class confdroid_selinux::main::config (
|
2017-07-20 12:38:15 +01:00
|
|
|
|
2026-04-05 16:45:14 +02:00
|
|
|
) inherits confdroid_selinux::params {
|
|
|
|
|
include confdroid_selinux::main::files
|
2017-07-20 12:38:15 +01:00
|
|
|
|
2017-08-03 12:19:53 +01:00
|
|
|
if $sx_selinux_status == 'enforcing' {
|
|
|
|
|
exec { 'set_selinux_status':
|
2025-05-14 13:34:43 +02:00
|
|
|
command => 'setenforce 1',
|
|
|
|
|
path => ['/usr/sbin','/usr/bin'],
|
|
|
|
|
provider => shell,
|
2026-04-05 16:46:48 +02:00
|
|
|
unless => 'getenforce | grep -i "enforcing"',
|
2017-08-03 12:19:53 +01:00
|
|
|
}
|
|
|
|
|
}
|
2017-07-20 12:38:15 +01:00
|
|
|
}
|