Bug 1530937

Summary: git_script_t cannot access git_user_content_t
Product: [Fedora] Fedora Reporter: clime
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-283.21.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-10 02:06:38 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 clime 2018-01-04 09:00:06 UTC
Description of problem:

Hello, we had the following problem with cgit on our copr-dist-git.fedorainfracloud.org machine:

type=AVC msg=audit(1514948803.346:52837): avc:  denied  { map } for  pid=5896 comm="cgit" path="/var/lib/dist-git/git/lantw44/vim-latest/vim.git/objects/pack/pack-701fd2e5e6721ca054b00289f07d3c042f3b4956.idx" dev="vdd1" ino=105809302 scontext=system_u:system_r:git_script_t:s0 tcontext=system_u:object_r:git_user_content_t:s0 tclass=file permissive=0

We needed to make own policy containing: 

allow git_script_t git_user_content_t:file map;

Would it be possible to solve this on distribution level?

Version-Release number of selected component (if applicable):
Name         : selinux-policy-targeted
Version      : 3.13.1
Release      : 283.19.fc27

Name         : selinux-policy
Version      : 3.13.1
Release      : 283.19.fc27

How reproducible:
always

Thank you!

Comment 1 Fedora Update System 2018-01-05 14:45:56 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 2 Fedora Update System 2018-01-05 14:48:56 UTC
selinux-policy-3.13.1-283.21.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 3 Fedora Update System 2018-01-06 21:08:33 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d8506aba4

Comment 4 Fedora Update System 2018-01-10 02:06:38 UTC
selinux-policy-3.13.1-283.21.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.