Bug 2125878
Summary: | SELinux is preventing sh from 'read' accesses on the file openboxes-run.sh. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Aleksandar Kostadinov <akostadi> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 36 | CC: | dwalsh, grepl.miroslav, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:4b755e4742cc2538da566e085baef93b9f116fd3339f138fc6bb67346e948e63; | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-09-12 19:51:36 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: |
Description
Aleksandar Kostadinov
2022-09-11 13:13:41 UTC
I believe there is some selinux relabeling needed when running docker-compose according to https://github.com/openboxes/openboxes-docker Alexander, Can you put down some details or reproducer? Container should not be allowed to access data outside. This is not a bug. It is expected the directory must be labeled for SELinux access. chcon -t container_file_t -r on the volume being mounted into the container. If the directory is not private to the container then you might need to disable SELinux for the run of the container. chcon -R worked, thank you! Just for anybody that reads, the `-r` above is a typo and should be `-R`. |