Fixed SELinux contexts from BackupPC.

This commit is contained in:
Timo Mkinen 2012-02-13 12:26:27 +02:00
parent 043c7f91b1
commit c913812606

View file

@ -25,7 +25,7 @@ define backuppc::manualclient($ensure = "present", $operatingsystem = "default")
mode => 0640,
owner => root,
group => backuppc,
seltype => "httpd_sys_script_rw_t",
seltype => "httpd_sys_rw_content_t",
tag => "backuppc",
require => File["/etc/BackupPC/pc"],
notify => Exec["generate-backuppc-hosts"],
@ -105,11 +105,18 @@ class backuppc::server {
require => Package["BackupPC"],
}
if "${selinux}" == "true" {
selinux::manage_fcontext { "/etc/BackupPC(/.*)?":
type => "httpd_sys_rw_content_t",
}
}
file { "/etc/BackupPC/apache.users":
ensure => present,
mode => 0640,
owner => "root",
group => $apache::sslserver::group,
seltype => "httpd_sys_rw_content_t",
require => Package["BackupPC"],
}
@ -119,7 +126,7 @@ class backuppc::server {
mode => 0440,
owner => "backuppc",
group => "backuppc",
seltype => "httpd_sys_script_rw_t",
seltype => "httpd_sys_rw_content_t",
require => Package["BackupPC"],
notify => Service["backuppc"],
}
@ -131,7 +138,7 @@ class backuppc::server {
mode => 0644,
owner => "root",
group => "backuppc",
seltype => "httpd_sys_script_rw_t",
seltype => "httpd_sys_rw_content_t",
require => Package["BackupPC"],
notify => Exec["generate-backuppc-hosts"],
}
@ -144,7 +151,7 @@ class backuppc::server {
mode => 0640,
owner => "root",
group => "backuppc",
seltype => "httpd_sys_script_rw_t",
seltype => "httpd_sys_rw_content_t",
source => "puppet:///modules/custom/empty",
require => Package["BackupPC"],
notify => Exec["generate-backuppc-hosts"],