I have a Podman container with Jellyfin running in it. It runs fine without SELinux, but it always crashes whenever SELinux is enabled. This will be an instance that will only be accessible in my private network.

Should I:

  • figure out how to use SELinux with Podman
  • uninstall SELinux
  • use a different server distro (Debian, Ubuntu)

If I should figure out SELinux, please point me to some resources as I could not find anything easy enough for me through a simple Google search.

  • poVoq
    link
    fedilink
    English
    117 months ago

    Try mounting volumes with :z at the end.

    But it is pretty easy to turn SELinux into permissive mode or disable it all together via the config file.

  • @[email protected]
    link
    fedilink
    English
    77 months ago

    Personally I would lean towards finding out why its borking with SELinux and fixing that. It really shouldn’t be too hard. As others have mentioned it may be as simple as how you are mounting volumes into your containers - or it could be changing the SELinux context type for some files.

  • @[email protected]
    link
    fedilink
    English
    57 months ago

    Just make sure to mount your volumes with the :z or :Z flags. I have disabled SELinux on servers in the past, but never when I’ve just used podman containers, since “it just works” with SELinux. Literally never had any problems with containers and SELinux.

  • @lightnegative
    link
    English
    -77 months ago

    SELinux is one of the first things I disable. It causes way more problems than it solves.

    All my workloads are containerised so I’ll trust the security of that machinery to sandbox them instead