Bug 2070326
| Summary: | AVC Denied - SELinux is preventing bash from read access on the file /usr/lib64/libc.so.6 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Onuralp Sezer <thunderbirdtr> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 36 | CC: | amurdaca, dwalsh, dweomer5, grepl.miroslav, jchaloup, lsm5, lvrabec, mmalik, omosnace, pehunt, pkoncity, rh.container.bot, vmojzis, zpytela |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-04-13 17:46:21 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Onuralp Sezer
2022-03-30 20:08:11 UTC
I also notice that there are some errors when I tried to re-install package as well. dnf -y reinstall container-selinux Last metadata expiration check: 0:42:23 ago on Wed 30 Mar 2022 10:28:13 PM +03. Dependencies resolved. ==================================================================================================================== Package Architecture Version Repository Size ==================================================================================================================== Reinstalling: container-selinux noarch 2:2.181.0-1.fc36 updates-testing 49 k Transaction Summary ==================================================================================================================== Total download size: 49 k Installed size: 54 k Downloading Packages: container-selinux-2.181.0-1.fc36.noarch.rpm 79 kB/s | 49 kB 00:00 -------------------------------------------------------------------------------------------------------------------- Total 35 kB/s | 49 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: container-selinux-2:2.181.0-1.fc36.noarch 1/2 Reinstalling : container-selinux-2:2.181.0-1.fc36.noarch 1/2 Running scriptlet: container-selinux-2:2.181.0-1.fc36.noarch 1/2 Failed to resolve allow statement at /var/lib/selinux/targeted/tmp/modules/200/osbuild/cil:127 Failed to resolve AST /usr/sbin/semodule: Failed! Failed to resolve allow statement at /var/lib/selinux/targeted/tmp/modules/200/container/cil:1263 Failed to resolve AST semodule: Failed! Running scriptlet: container-selinux-2:2.181.0-1.fc36.noarch 2/2 Failed to resolve allow statement at /var/lib/selinux/targeted/tmp/modules/200/container/cil:1263 Failed to resolve AST semodule: Failed! Cleanup : container-selinux-2:2.181.0-1.fc36.noarch 2/2 Running scriptlet: container-selinux-2:2.181.0-1.fc36.noarch 2/2 Verifying : container-selinux-2:2.181.0-1.fc36.noarch 1/2 Verifying : container-selinux-2:2.181.0-1.fc36.noarch 2/2 Reinstalled: container-selinux-2:2.181.0-1.fc36.noarch Complete! This is installing fine for me. Are you sure you don't have some custom package which conflicts with the container.fc descriptions? AFAIK no, I don't have any custom package related to that. I never even installed docker as well. I also checked that "Failed to resolve allow statement at /var/lib/selinux/targeted/tmp/modules/200/container/cil:1263" After this "var/lib/selinux/targeted/tmp" directories, /modules/200/container <-- doesn't exit Lucas Zdenek any idea what the conflict is? After long wait and test and trail. I removed all of the selinux configs and /var/lib/selinux/targeted/ and /var/lib/selinux/targeted/tmp/modules. After that I reinstalled all selinux packages and touch ./autorelabel && reboot commands now podman works fine. Looks like without this "/var/lib/selinux/targeted/tmp/modules/200/container" directory it works fine. I don't know how is that directory got there. I see two independent issues. The library has an incorrect label, refer to the output of restorecon setroubleshoot plugin. The other is probably related to updated selinux=policy which also requires updates in osbuild and container, these problems are still being investigated. *** This bug has been marked as a duplicate of bug 2070764 *** |