Bug 1984457
| Summary: | SELinux is preventing bash from 'execute' accesses on the file install-toolchains.sh. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | michael <michael> |
| 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: | 34 | CC: | dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, vmojzis, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:75ecfeccc39109e5eb6ff7f11147825644c837b9f20bbe46b53778d1f399200c;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-07-21 17:20:04 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
michael@mcdonnell.dk
2021-07-21 13:43:06 UTC
I follow the instructions to create a local policy module but then I get a "read, open" error instead. I then created another local policy module but then got an "execute_no_trans" error instead. I added yet another module but then cat failed instead: ` cat: jni/deltachat-core-rust/rust-toolchain: Permission denied ` Which is where I finally gave up. Accessing files from the host inside a container [confined by SELinux] requires that the files are first relabeled to container_file_t. In your case, using the "z" volume option when invoking `podman run` should take care of it automatically: podman run --userns=keep-id -it --name deltachat -v $(pwd):/home/app:z -w /home/app localhost/deltachat-android Thank you very much Ondrej! That worked! |