Bug 1222316

Summary: SELinux is preventing /usr/bin/docker from 'getattr' accesses on the file /etc/prelink.cache.
Product: [Fedora] Fedora Reporter: Guillaume Poirier-Morency <guillaumepoiriermorency>
Component: dockerAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: admiller, dominick.grift, dwalsh, ichavero, jcajka, jchaloup, lsm5, lvrabec, mattdm, mgrepl, miminar, plautrba, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d44a1b73fc24a33fe98cc9289e329ffd3c0273bfd6fb7f63b02a6e8800873787
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-18 12:29:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Guillaume Poirier-Morency 2015-05-17 14:59:04 UTC
Description of problem:
SELinux is preventing /usr/bin/docker from 'getattr' accesses on the file /etc/prelink.cache.

*****  Plugin catchall (100. confidence) suggests   **************************

If vous pensez que docker devrait être autorisé à accéder getattr sur prelink.cache file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# grep docker /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:docker_t:s0
Target Context                system_u:object_r:prelink_cache_t:s0
Target Objects                /etc/prelink.cache [ file ]
Source                        docker
Source Path                   /usr/bin/docker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-126.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.3-300.fc22.x86_64 #1 SMP Wed
                              May 13 18:43:52 UTC 2015 x86_64 x86_64
Alert Count                   7
First Seen                    2015-05-07 10:07:19 EDT
Last Seen                     2015-05-17 10:25:32 EDT
Local ID                      a742a4f9-34fd-42dc-8d41-ea98cb8e1a89

Raw Audit Messages
type=AVC msg=audit(1431872732.829:751): avc:  denied  { getattr } for  pid=1373 comm="docker" path="/etc/prelink.cache" dev="dm-2" ino=1077264 scontext=system_u:system_r:docker_t:s0 tcontext=system_u:object_r:prelink_cache_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1431872732.829:751): arch=x86_64 syscall=lstat success=yes exit=0 a0=c2085705e0 a1=c2085602d0 a2=0 a3=0 items=0 ppid=1 pid=1373 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=docker exe=2F7573722F62696E2F646F636B6572202864656C6574656429 subj=system_u:system_r:docker_t:s0 key=(null)

Hash: docker,docker_t,prelink_cache_t,file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-126.fc22.noarch

Additional info:
reporter:       libreport-2.5.1
hashmarkername: setroubleshoot
kernel:         4.0.3-300.fc22.x86_64
type:           libreport

Comment 1 Daniel Walsh 2015-05-18 12:29:11 UTC

*** This bug has been marked as a duplicate of bug 1221379 ***