Bug 1468095
| Summary: | SELinux is preventing postgres from 'remove_name' accesses on the directory postmaster.pid. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Victor Arenas <vctarenas> | ||||||||
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 25 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde | ||||||||
| Target Milestone: | --- | Keywords: | Reopened | ||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | abrt_hash:04cddfb499d6b993e42150a7b1f6ee74b3c0ee7e2edb8480bca30235d851f552;VARIANT_ID=workstation; | ||||||||||
| Fixed In Version: | selinux-policy-3.13.1-225.20.fc25 selinux-policy-3.13.1-225.22.fc25 selinux-policy-3.13.1-225.23.fc25 | Doc Type: | If docs needed, set a value | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2017-11-01 16:38:39 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 1294789 [details]
File: Dockerfile
Created attachment 1294790 [details]
File: docker-compose.yml
Created attachment 1294791 [details]
File: requirements.txt
This looks like you are volume mounting in content from your homedir into the container.
These volume directories need to have the correct SELinux labels applied to them to be used within the containers.
- ~/Documentos/odoo/test-addons:/mnt/extra-addons/
- ~/Documentos/odoo/conf:/etc/odoo/
- /var/log/odoo:/var/log/odoo/
Adding :Z to the end should vix the labels
- ~/Documentos/odoo/test-addons:/mnt/extra-addons/:Z
- ~/Documentos/odoo/conf:/etc/odoo/:Z
- /var/log/odoo:/var/log/odoo/:Z
http://www.projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/
selinux-policy-3.13.1-225.20.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-837f04c39a selinux-policy-3.13.1-225.20.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-837f04c39a selinux-policy-3.13.1-225.20.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. selinux-policy-3.13.1-225.22.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5d4f3635ee selinux-policy-3.13.1-225.22.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5d4f3635ee selinux-policy-3.13.1-225.22.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. selinux-policy-3.13.1-225.23.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-4d00e4db6a selinux-policy-3.13.1-225.23.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-4d00e4db6a selinux-policy-3.13.1-225.23.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: im executing a docker-compose with odoo 8 and postgres 9.4 SELinux is preventing postgres from 'remove_name' accesses on the directory postmaster.pid. ***** Plugin catchall (100. confidence) suggests ************************** If cree que de manera predeterminada, postgres debería permitir acceso remove_name sobre postmaster.pid directory. Then debería reportar esto como un error. Puede generar un módulo de política local para permitir este acceso. Do allow this access for now by executing: # ausearch -c 'postgres' --raw | audit2allow -M my-postgres # semodule -X 300 -i my-postgres.pp Additional Information: Source Context system_u:system_r:container_t:s0:c32,c625 Target Context unconfined_u:object_r:user_home_t:s0 Target Objects postmaster.pid [ dir ] Source postgres Source Path postgres Port <Desconocido> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-225.18.fc25.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 4.11.8-200.fc25.x86_64 #1 SMP Thu Jun 29 16:13:56 UTC 2017 x86_64 x86_64 Alert Count 2 First Seen 2017-07-05 23:08:36 -04 Last Seen 2017-07-05 23:11:01 -04 Local ID 9c136dd9-57cc-4b7b-a492-94ac8a7ef13a Raw Audit Messages type=AVC msg=audit(1499310661.698:1109): avc: denied { remove_name } for pid=13618 comm="postgres" name="postmaster.pid" dev="sda9" ino=5896 scontext=system_u:system_r:container_t:s0:c32,c625 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir permissive=1 Hash: postgres,container_t,user_home_t,dir,remove_name Version-Release number of selected component: selinux-policy-3.13.1-225.18.fc25.noarch Additional info: reporter: libreport-2.8.0 hashmarkername: setroubleshoot kernel: 4.11.8-200.fc25.x86_64 type: libreport