Bug 1517541
| Summary: | [git_script_t] SELinux is preventing git from map access on the file /var/lib/git/ansible.git/objects/pack/pack-277152cd4f4e150f5bdd3c0a5d13bbf9eb946d69.idx | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Juan Orti Alcaine <jorti> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 27 | CC: | dwalsh, john.obaterspok, lvrabec, mgrepl, plautrba, pmoore |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.13.1-283.19.fc27 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-01-02 16:48:08 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: | |||
I believe this is a duplicate of 1514866 which has been resolved. (selinux-policy update package has been provided since end of november). I'm still getting these errors with selinux-policy-3.13.1-283.17.fc27.noarch selinux-policy-3.13.1-283.18.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502 selinux-policy-3.13.1-283.18.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-2017-8225c4e502 selinux-policy-3.13.1-283.19.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502 selinux-policy-3.13.1-283.19.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-2017-8225c4e502 selinux-policy-3.13.1-283.19.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |
I use gitweb to access my git repositories. SELinux is preventing git from map access on the file /var/lib/git/ansible.git/objects/pack/pack-277152cd4f4e150f5bdd3c0a5d13bbf9eb946d69.idx. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that git should be allowed map access on the pack-277152cd4f4e150f5bdd3c0a5d13bbf9eb946d69.idx file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'git' --raw | audit2allow -M my-git # semodule -X 300 -i my-git.pp Additional Information: Source Context system_u:system_r:git_script_t:s0 Target Context system_u:object_r:git_rw_content_t:s0 Target Objects /var/lib/git/ansible.git/objects/pack/pack-277152c d4f4e150f5bdd3c0a5d13bbf9eb946d69.idx [ file ] Source git Source Path git Port <Unknown> Host helio Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-283.16.fc27.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name helio Platform Linux helio 4.13.13-300.fc27.x86_64 #1 SMP Wed Nov 15 15:47:50 UTC 2017 x86_64 x86_64 Alert Count 6 First Seen 2017-11-26 16:43:17 CET Last Seen 2017-11-26 16:43:17 CET Local ID 663a339a-3ab5-4c53-8312-3fbfc6d67023 Raw Audit Messages type=AVC msg=audit(1511710997.504:8774): avc: denied { map } for pid=6516 comm="git" path="/var/lib/git/ansible.git/objects/pack/pack-277152cd4f4e150f5bdd3c0a5d13bbf9eb946d69.idx" dev="dm-4" ino=2435 scontext=system_u:system_r:git_script_t:s0 tcontext=system_u:object_r:git_rw_content_t:s0 tclass=file permissive=0 Hash: git,git_script_t,git_rw_content_t,file,map