Bug 1081033

Summary: cgit/gitosis blocked by selinux, add git_cgit_read_gitosis_content boolean
Product: [Fedora] Fedora Reporter: Michael J. Chudobiak <mjc>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.12.1-149.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-09 13:23:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael J. Chudobiak 2014-03-26 14:21:04 UTC
See RHEL bug 736623. Same problem. They added a git_cgit_read_gitosis_content boolean to RHEL, but it is not in the Fedora policy.

Please add git_cgit_read_gitosis_content.

Comment 1 Michael J. Chudobiak 2014-03-26 14:25:47 UTC
audit2allow -a

#============= httpd_git_script_t ==============
allow httpd_git_script_t gitosis_var_lib_t:dir { read search open getattr };
allow httpd_git_script_t gitosis_var_lib_t:file { read getattr open };

Comment 2 Miroslav Grepl 2014-03-28 09:02:28 UTC
commit 747d9f5b74eb089dc167b5181ee2e66b1e5936b2
Author: Miroslav Grepl <mgrepl>
Date:   Fri Mar 28 10:02:08 2014 +0100

    Allow cgit to read gitosis lib files by default

Comment 3 Fedora Update System 2014-03-31 14:06:28 UTC
selinux-policy-3.12.1-149.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-149.fc20

Comment 4 Michael J. Chudobiak 2014-03-31 14:22:33 UTC
Thanks, cgit/gitosis works now by default. (No boolean was added.)

Comment 5 Fedora Update System 2014-04-02 09:04:34 UTC
Package selinux-policy-3.12.1-149.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-149.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4604/selinux-policy-3.12.1-149.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-04-09 13:23:03 UTC
selinux-policy-3.12.1-149.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.