Bug 1227906 - SELinux is preventing docker from 'getattr' accesses on the file /etc/adjtime.
Summary: SELinux is preventing docker from 'getattr' accesses on the file /etc/adjtime.
Keywords:
Status: CLOSED DUPLICATE of bug 1221379
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:201b92bbf98ace52fde3baeb57e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-03 19:00 UTC by M. Edward (Ed) Borasky
Modified: 2015-06-04 12:29 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-06-04 12:29:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: Dockerfile (383 bytes, text/plain)
2015-06-03 19:00 UTC, M. Edward (Ed) Borasky
no flags Details

Description M. Edward (Ed) Borasky 2015-06-03 19:00:16 UTC
Description of problem:
docker build with attached Dockerfile
SELinux is preventing docker from 'getattr' accesses on the file /etc/adjtime.

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

If you believe that docker should be allowed getattr access on the adjtime 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:adjtime_t:s0
Target Objects                /etc/adjtime [ file ]
Source                        docker
Source Path                   docker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           initscripts-9.62-1.fc22.x86_64
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.4-303.fc22.x86_64 #1 SMP Thu
                              May 28 12:37:06 UTC 2015 x86_64 x86_64
Alert Count                   2
First Seen                    2015-06-03 10:30:34 PDT
Last Seen                     2015-06-03 10:33:06 PDT
Local ID                      607ff7a4-3d9a-4f3e-b3fd-af38ee2b88d7

Raw Audit Messages
type=AVC msg=audit(1433352786.499:595): avc:  denied  { getattr } for  pid=854 comm="docker" path="/etc/adjtime" dev="sda6" ino=524732 scontext=system_u:system_r:docker_t:s0 tcontext=system_u:object_r:adjtime_t:s0 tclass=file permissive=1


Hash: docker,docker_t,adjtime_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.4-303.fc22.x86_64
type:           libreport

Comment 1 M. Edward (Ed) Borasky 2015-06-03 19:00:18 UTC
Created attachment 1034438 [details]
File: Dockerfile

Comment 2 Daniel Walsh 2015-06-04 12:29:49 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.