Commit 3efee2db authored by mh's avatar mh
Browse files

also manage selinux for that directory

parent 03eafe54
......@@ -8,4 +8,18 @@ class php::apc::base(
gropup => 0,
mode => '1777',
}
if str2bool($::selinux) {
$seltype = $::operatingsystemmajrelease ? {
'5' => 'httpd_sys_script_rw_t',
default => 'httpd_sys_rw_content_t'
}
File[$dir]{
seltype => $seltype
}
selinux::fcontext{
"${dir}(/.*)?":
setype => $seltype,
before => File[$dir];
} -> Service<| title == 'apache' |>
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment