mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(docker): recommend label=disable, not :z, when SELinux blocks the Podman socket (#7434)
The Podman docs and the web console's start-failure message told SELinux users to relabel the socket mount with :z. On a rootless podman machine (SELinux enforcing) that recipe fails: the web console cannot start and a Lambda invoke returns "Docker is not reachable (Permission denied)". :z fixes access to the socket file, but SELinux also denies connectto from the Floci container (container_t) to the Podman service (container_runtime_t), which a relabel can't fix; --security-opt label=disable avoids it. With it, the same recipe starts the console and invokes a Python Lambda.
This commit is contained in:
1 parent
fbfe9048a1
commit
bb6f46c104
4 files changed
+17
-12
No files matched your search
@@ -324,6 +324,10 @@ class FlociUiManagerTest {
|
||||
"socket-permission failure must not be reported as a missing image, was: " + msg);
|
||||
assertTrue(msg.contains("could not reach the container runtime"), msg);
|
||||
assertTrue(msg.contains("Permission denied"), msg);
|
||||
// A ':z' relabel only fixes access to the socket file; SELinux still denies connectto
|
||||
// on the Podman service, so the message must not send users back to it.
|
||||
assertTrue(msg.contains("'--security-opt label=disable'"), msg);
|
||||
assertFalse(msg.contains(":z"), msg);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user