Fixed mythtv selinux contexts on fedora 12 and older.
This commit is contained in:
parent
6a89b5de3b
commit
160cfa35b8
1 changed files with 8 additions and 1 deletions
|
@ -139,8 +139,15 @@ class mythtv::mythweb {
|
||||||
}
|
}
|
||||||
|
|
||||||
if $selinux {
|
if $selinux {
|
||||||
|
if $operatingsystem == "Fedora" {
|
||||||
|
if $operatingsystemrelease < 13 {
|
||||||
|
$context = "httpd_sys_content_rw_t"
|
||||||
|
} else {
|
||||||
|
$context = "httpd_sys_rw_content_t"
|
||||||
|
}
|
||||||
|
}
|
||||||
selinux::manage_fcontext { "/usr/share/mythweb/data(/.*)?":
|
selinux::manage_fcontext { "/usr/share/mythweb/data(/.*)?":
|
||||||
type => "httpd_sys_rw_content_t",
|
type => $context,
|
||||||
before => File["/usr/share/mythweb/data"],
|
before => File["/usr/share/mythweb/data"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue