Bug 1222316 - SELinux is preventing /usr/bin/docker from 'getattr' accesses on the file /etc/prelink.cache.
Summary: SELinux is preventing /usr/bin/docker from 'getattr' accesses on the file /et...
Keywords:
Status: CLOSED DUPLICATE of bug 1221379
Alias: None
Product: Fedora
Classification: Fedora
Component: docker
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d44a1b73fc24a33fe98cc9289e3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-17 14:59 UTC by Guillaume Poirier-Morency
Modified: 2015-05-18 12:29 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-05-18 12:29:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.