Bug 1218132 - SELinux is preventing docker from 'getattr' accesses on the directory /etc/audit.
Summary: SELinux is preventing docker from 'getattr' accesses on the directory /etc/au...
Keywords:
Status: CLOSED DUPLICATE of bug 1218138
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1966335d4ea3b31fbd034bc696c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-04 09:19 UTC by autarch princeps
Modified: 2015-05-05 06:09 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-05-05 06:09:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description autarch princeps 2015-05-04 09:19:24 UTC
Description of problem:
SELinux is preventing docker from 'getattr' accesses on the directory /etc/audit.

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

If sie denken, dass es docker standardmässig erlaubt sein sollte, getattr Zugriff auf audit directory zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# 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:auditd_etc_t:s0
Target Objects                /etc/audit [ dir ]
Source                        docker
Source Path                   docker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           audit-2.4.1-1.fc22.x86_64
                              audit-2.4.2-1.fc22.x86_64
Policy RPM                    selinux-policy-3.13.1-122.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.0.0-1.fc22.x86_64 #1 SMP Mon Apr
                              13 10:03:33 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-05-02 14:43:07 CEST
Last Seen                     2015-05-02 14:43:07 CEST
Local ID                      6a0470eb-fed2-4b03-8368-6dded8212947

Raw Audit Messages
type=AVC msg=audit(1430570587.938:2640): avc:  denied  { getattr } for  pid=5366 comm="docker" path="/etc/audit" dev="sdc1" ino=268435590 scontext=system_u:system_r:docker_t:s0 tcontext=system_u:object_r:auditd_etc_t:s0 tclass=dir permissive=1


Hash: docker,docker_t,auditd_etc_t,dir,getattr

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

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

Comment 1 Daniel Walsh 2015-05-05 06:09:39 UTC

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


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