munin: SELinux context fixes.
This commit is contained in:
parent
2941af3e64
commit
9084fd73d3
1 changed files with 7 additions and 2 deletions
|
@ -290,8 +290,13 @@ class munin::server {
|
||||||
ensure => $munin_datadir,
|
ensure => $munin_datadir,
|
||||||
force => true,
|
force => true,
|
||||||
backup => ".orig",
|
backup => ".orig",
|
||||||
|
seltype => "usr_t",
|
||||||
require => File[$munin_datadir],
|
require => File[$munin_datadir],
|
||||||
}
|
}
|
||||||
|
selinux::manage_fcontext { "/var/lib/munin":
|
||||||
|
type => "usr_t",
|
||||||
|
before => File["/var/lib/munin"],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/var/cache/munin":
|
file { "/var/cache/munin":
|
||||||
|
@ -299,11 +304,11 @@ class munin::server {
|
||||||
mode => "0775",
|
mode => "0775",
|
||||||
owner => "munin",
|
owner => "munin",
|
||||||
group => $apache::sslserver::group,
|
group => $apache::sslserver::group,
|
||||||
seltype => "httpd_sys_rw_content_t",
|
seltype => "httpd_munin_rw_content_t",
|
||||||
require => Package["munin"],
|
require => Package["munin"],
|
||||||
}
|
}
|
||||||
selinux::manage_fcontext { "/var/cache/munin(/.*)?":
|
selinux::manage_fcontext { "/var/cache/munin(/.*)?":
|
||||||
type => "httpd_sys_rw_content_t",
|
type => "httpd_munin_rw_content_t",
|
||||||
before => File["/var/cache/munin"],
|
before => File["/var/cache/munin"],
|
||||||
}
|
}
|
||||||
mount { "/var/cache/munin":
|
mount { "/var/cache/munin":
|
||||||
|
|
Loading…
Add table
Reference in a new issue