Bug 1215686 - SELinux is preventing /usr/bin/docker from 'getattr' accesses on the file /etc/printcap.
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: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:72df61dfc3b9181b145ef567cbb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-27 13:24 UTC by Simon Piette
Modified: 2015-06-02 18:22 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-06-02 18:22:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Simon Piette 2015-04-27 13:24:11 UTC
Description of problem:
On startup, but not on service restarts, docker tries to access printcap. No container is running. 10 minutes after boot, docker tried again.
SELinux is preventing /usr/bin/docker from 'getattr' accesses on the file /etc/printcap.

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

If you believe that docker should be allowed getattr access on the printcap 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:
# 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:cupsd_rw_etc_t:s0
Target Objects                /etc/printcap [ file ]
Source                        docker
Source Path                   /usr/bin/docker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           docker-io-1.6.0-2.git3eac457.fc21.x86_64
Target RPM Packages           setup-2.9.0-4.fc21.noarch
Policy RPM                    selinux-policy-3.13.1-105.13.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.19.5-200.fc21.x86_64 #1 SMP Mon
                              Apr 20 19:51:56 UTC 2015 x86_64 x86_64
Alert Count                   4
First Seen                    2015-04-27 08:36:54 EDT
Last Seen                     2015-04-27 09:05:41 EDT
Local ID                      727472ac-ce7a-49ae-a7d7-a81579f8500a

Raw Audit Messages
type=AVC msg=audit(1430139941.128:644): avc:  denied  { getattr } for  pid=1706 comm="docker" path="/etc/printcap" dev="dm-0" ino=524326 scontext=system_u:system_r:docker_t:s0 tcontext=system_u:object_r:cupsd_rw_etc_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1430139941.128:644): arch=x86_64 syscall=lstat success=yes exit=0 a0=c208582040 a1=c20854c000 a2=0 a3=0 items=0 ppid=1 pid=1706 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=/usr/bin/docker subj=system_u:system_r:docker_t:s0 key=(null)

Hash: docker,docker_t,cupsd_rw_etc_t,file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-105.13.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.19.5-200.fc21.x86_64
type:           libreport

Comment 1 Dmitry Tantsur 2015-05-15 12:03:32 UTC
Description of problem:
Happens regularly to me.

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.19.7-200.fc21.x86_64
type:           libreport

Comment 2 Daniel Walsh 2015-06-02 18:22:50 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.