CentOS 5 SELinux context fixes for BackupPC exported resources.
This commit is contained in:
parent
eb31970333
commit
3cf867862d
1 changed files with 9 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue