Description of problem: This error occurred on the git server while attempting to clone a repository in a home directory (/home/dshea/public_git/testrepo.git). git_system_enable_homedirs is set and I restorecon'd everything in public_git. SELinux is preventing /usr/libexec/git-core/git-upload-pack from 'read' accesses on the directory . ***** Plugin catchall (100. confidence) suggests ************************** If you believe that git-upload-pack should be allowed read access on the directory 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: # grep git-upload-pack /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:git_system_t:s0 Target Context unconfined_u:object_r:git_user_content_t:s0 Target Objects [ dir ] Source git-upload-pack Source Path /usr/libexec/git-core/git-upload-pack Port <Unknown> Host (removed) Source RPM Packages git-1.8.5.3-2.fc20.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-127.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.13.6-200.fc20.x86_64 #1 SMP Fri Mar 7 17:02:28 UTC 2014 x86_64 x86_64 Alert Count 3 First Seen 2014-03-13 11:49:25 EDT Last Seen 2014-03-13 11:50:30 EDT Local ID 6ca1af37-619c-4562-ae30-2e1a4a88a4ad Raw Audit Messages type=AVC msg=audit(1394725830.885:720): avc: denied { read } for pid=6929 comm="git-upload-pack" name="refs" dev="dm-2" ino=33423936 scontext=system_u:system_r:git_system_t:s0 tcontext=unconfined_u:object_r:git_user_content_t:s0 tclass=dir type=SYSCALL msg=audit(1394725830.885:720): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffffffffffff9c a1=6c2da2 a2=90800 a3=0 items=0 ppid=6928 pid=6929 auid=4294967295 uid=99 gid=99 euid=99 suid=99 fsuid=99 egid=99 sgid=99 fsgid=99 ses=4294967295 tty=(none) comm=git-upload-pack exe=/usr/libexec/git-core/git-upload-pack subj=system_u:system_r:git_system_t:s0 key=(null) Hash: git-upload-pack,git_system_t,git_user_content_t,dir,read Additional info: reporter: libreport-2.2.0 hashmarkername: setroubleshoot kernel: 3.13.6-200.fc20.x86_64 type: libreport
commit 0195c999ba4ecac2f779c060f19e734ad67a6c69 Author: Miroslav Grepl <mgrepl> Date: Fri Mar 14 09:47:20 2014 +0100 Fix git_system_enable_homedirs boolean
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
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).
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.