diff options
Diffstat (limited to 'policy/modules/services/git.fc')
-rw-r--r-- | policy/modules/services/git.fc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/policy/modules/services/git.fc b/policy/modules/services/git.fc new file mode 100644 index 00000000..c26586d3 --- /dev/null +++ b/policy/modules/services/git.fc @@ -0,0 +1,18 @@ +HOME_DIR/public_git(/.*)? gen_context(system_u:object_r:git_user_content_t,s0) + +/usr/lib/git-core/git-daemon -- gen_context(system_u:object_r:gitd_exec_t,s0) + +/usr/libexec/git-core/git-daemon -- gen_context(system_u:object_r:gitd_exec_t,s0) + +/usr/share/gitweb/gitweb\.cgi -- gen_context(system_u:object_r:httpd_git_script_exec_t,s0) +/usr/share/gitweb/static(/.*)? gen_context(system_u:object_r:httpd_git_content_t,s0) + +/var/cache/cgit(/.*)? gen_context(system_u:object_r:httpd_git_rw_content_t,s0) +/var/cache/gitweb-caching(/.*)? gen_context(system_u:object_r:httpd_git_rw_content_t,s0) + +/var/lib/git(/.*)? gen_context(system_u:object_r:git_sys_content_t,s0) + +/var/www/cgi-bin/cgit -- gen_context(system_u:object_r:httpd_git_script_exec_t,s0) +/var/www/git(/.*)? gen_context(system_u:object_r:httpd_git_content_t,s0) +/var/www/git/gitweb\.cgi -- gen_context(system_u:object_r:httpd_git_script_exec_t,s0) +/var/www/gitweb-caching/gitweb\.cgi -- gen_context(system_u:object_r:httpd_git_script_exec_t,s0) |