CentOS 5 SELinux context fixes for BackupPC exported resources.

This commit is contained in:
Timo Mkinen 2012-02-16 10:19:18 +02:00
parent eb31970333
commit 3cf867862d

View file

@ -25,7 +25,6 @@ define backuppc::manualclient($ensure = "present", $operatingsystem = "default")
mode => 0640,
owner => root,
group => backuppc,
seltype => "httpd_sys_rw_content_t",
tag => "backuppc",
require => File["/etc/BackupPC/pc"],
notify => Exec["generate-backuppc-hosts"],
@ -191,7 +190,15 @@ class backuppc::server {
notify => Service["backuppc"],
}
File <<| tag == "backuppc" |>>
File <<| tag == "backuppc" |>> {
seltype => $operatingsystem ? {
"centos" => $operatingsystemrelease ? {
/^5/ => "httpd_sys_script_rw_t",
default => "httpd_sys_rw_content_t",
},
default => "httpd_sys_rw_content_t",
},
}
service { "backuppc":
ensure => running,