2026-04-05 16:45:14 +02:00
|
|
|
## confdroid_selinux::main::files.pp
|
|
|
|
|
# Module name: confdroid_selinux
|
|
|
|
|
# Author: 12ww1160 (12ww1160@ConfDroid.com)
|
|
|
|
|
# @summary Class manages all configuration files required for confdroid_selinux.
|
2017-07-20 13:07:11 +01:00
|
|
|
##############################################################################
|
2026-04-05 16:45:14 +02:00
|
|
|
class confdroid_selinux::main::files (
|
2017-07-20 13:07:11 +01:00
|
|
|
|
2026-04-05 16:45:14 +02:00
|
|
|
) inherits confdroid_selinux::params {
|
|
|
|
|
require confdroid_selinux::main::dirs
|
2017-07-20 13:07:11 +01:00
|
|
|
|
|
|
|
|
file { $sx_main_file:
|
2025-05-14 13:34:43 +02:00
|
|
|
ensure => file,
|
|
|
|
|
path => $sx_main_file,
|
|
|
|
|
owner => 'root',
|
|
|
|
|
group => 'root',
|
|
|
|
|
mode => '0644',
|
|
|
|
|
selrange => s0,
|
|
|
|
|
selrole => object_r,
|
|
|
|
|
seltype => selinux_config_t,
|
|
|
|
|
seluser => system_u,
|
|
|
|
|
content => template($sx_main_file_erb),
|
2017-07-20 13:07:11 +01:00
|
|
|
}
|
|
|
|
|
}
|