Bug 1227906
| Summary: | SELinux is preventing docker from 'getattr' accesses on the file /etc/adjtime. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | M. Edward (Ed) Borasky <znmeb> | ||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 22 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, znmeb | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | abrt_hash:201b92bbf98ace52fde3baeb57efe6b4d41b5f06fc8072b08a3d98876cb053c2 | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-06-04 12:29:49 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: | |||||||
| Attachments: |
|
||||||
Created attachment 1034438 [details]
File: Dockerfile
*** This bug has been marked as a duplicate of bug 1221379 *** |
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