summaryrefslogtreecommitdiffstats
path: root/README.SELinux
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@fedoraproject.org>2009-01-13 21:48:56 +0000
committerTodd Zullinger <tmz@fedoraproject.org>2009-01-13 21:48:56 +0000
commit9c9db9d979a91cd5fe414afb9789ee6b83d35beb (patch)
tree5f9d1dde40542a3ae451aeedc9f265486d45ca6d /README.SELinux
parent8040608946ac0e238807e233d24fc0489c628492 (diff)
downloadcgit_EL6-9c9db9d979a91cd5fe414afb9789ee6b83d35beb.tar.gz
Import cgit on devel branchcgit-0_8_1-1_fc11
Diffstat (limited to 'README.SELinux')
-rw-r--r--README.SELinux24
1 files changed, 24 insertions, 0 deletions
diff --git a/README.SELinux b/README.SELinux
new file mode 100644
index 0000000..329b816
--- /dev/null
+++ b/README.SELinux
@@ -0,0 +1,24 @@
+If you use SELinux, there are a few things you'll need to take care of
+for cgit to work smoothly. (Most of these should be fixed in the
+official selinux-policy packages before cgit makes it into Fedora).
+
+1. Enable the httpd_enable_cgi boolean
+ $ setsebool -P httpd_enable_cgi 1
+
+2. Set proper file contexts
+ (These should be taken care of in the selinux-policy package before
+ cgit makes it into stable Fedora versions.)
+
+ a) The cache dir needs to be writable by the cgi
+ # semanage fcontext -a -t httpd_sys_content_rw_t "/var/cache/cgit(/.*)?"
+
+ b) The git repositories need to be readable by the cgi
+ # semanage fcontext -a -t httpd_sys_content_t "/var/lib/git(/.*)?"
+
+ If your git repositories are somewhere other than /var/lib/git, use that
+ path in the command above. If you have other confined daemons that need
+ to access the git repositories, you may want to use public_content_t
+ instead of httpd_sys_content_t.
+
+ c) Run restorecon to update the contexts
+ # restorecon -R /var/cache/cgit /var/lib/git