git: Fixed SELinux errors from git daemon.

This commit is contained in:
Timo Mkinen 2013-08-02 10:39:54 +03:00
parent ec17f8b8b4
commit d2959c4ed6

View file

@ -43,6 +43,7 @@ class git::server {
ensure => link,
target => $git_datadir,
require => File[$git_datadir],
seltype => "usr_t",
}
} else {
file { "/srv/git":
@ -58,6 +59,10 @@ class git::server {
type => "git_system_content_t",
before => File[$git_datadir],
}
selinux::manage_fcontext { "/srv/git":
type => "usr_t",
before => File["/srv/git"],
}
}
}
@ -87,8 +92,13 @@ class git::daemon inherits git::server {
target => "/srv/git",
owner => "root",
group => "root",
seltype => "usr_t",
require => File["/srv/git"],
}
selinux::manage_fcontext { "/var/lib/git":
type => "usr_t",
before => File["/var/lib/git"],
}
}
}