bacula: Sync SELinux contexts with CentOS 6.6 and change mail command to use bacula's own bsmtp to prevent SELinux errors.

This commit is contained in:
Timo Makinen 2014-11-21 10:54:27 +02:00
parent bb84d8b7da
commit 9ae45e3fef
3 changed files with 8 additions and 8 deletions

View file

@ -215,11 +215,11 @@ class bacula::director($password=undef,
mode => "0770",
owner => "bacula",
group => "bacula",
seltype => "var_spool_t",
seltype => "bacula_spool_t",
require => Package["bacula-director"],
}
selinux::manage_fcontext { "${datadir}(/.*)?":
type => "var_spool_t",
type => "bacula_spool_t",
before => File[$datadir],
}
if $datadir != "/srv/bacula" {
@ -228,11 +228,11 @@ class bacula::director($password=undef,
target => $datadir,
owner => "bacula",
group => "bacula",
seltype => "var_spool_t",
seltype => "bacula_spool_t",
require => File[$datadir],
}
selinux::manage_fcontext { "/srv/bacula(/.*)?":
type => "var_spool_t",
type => "bacula_spool_t",
before => File[$datadir],
}
}