Fixed SELinux warnings from munin-graph.
This commit is contained in:
parent
b470ceb9b6
commit
a0e6c79fab
1 changed files with 5 additions and 0 deletions
|
@ -241,12 +241,17 @@ class munin::server {
|
||||||
type => "httpd_munin_content_t",
|
type => "httpd_munin_content_t",
|
||||||
before => File[$munin_htmldir],
|
before => File[$munin_htmldir],
|
||||||
}
|
}
|
||||||
|
selinux::manage_fcontext { "/var/www/html/munin":
|
||||||
|
type => "munin_var_lib_t",
|
||||||
|
before => File["/var/www/html/munin"],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/var/www/html/munin":
|
file { "/var/www/html/munin":
|
||||||
ensure => "${munin_htmldir}",
|
ensure => "${munin_htmldir}",
|
||||||
force => true,
|
force => true,
|
||||||
backup => ".orig",
|
backup => ".orig",
|
||||||
|
seltype => "munin_var_lib_t",
|
||||||
require => File["${munin_htmldir}"],
|
require => File["${munin_htmldir}"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue