Fixed SELinux contexts from BackupPC.
This commit is contained in:
parent
043c7f91b1
commit
c913812606
1 changed files with 11 additions and 4 deletions
|
@ -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"],
|
||||
|
|
Loading…
Add table
Reference in a new issue