Skip to content

Add SELinux support and fix IPv6 issues for containerized qlever commands#273

Open
tanmay-9 wants to merge 12 commits intoqlever-dev:mainfrom
tanmay-9:add-selinux-support
Open

Add SELinux support and fix IPv6 issues for containerized qlever commands#273
tanmay-9 wants to merge 12 commits intoqlever-dev:mainfrom
tanmay-9:add-selinux-support

Conversation

@tanmay-9
Copy link
Copy Markdown
Collaborator

@tanmay-9 tanmay-9 commented Mar 26, 2026

  • New DISABLE_SELINUX option: On systems with SELinux enforcing (e.g. Fedora, RHEL), containerized qlever commands can fail with permission errors on bind-mounted files. A new DISABLE_SELINUX = yes option in the [runtime] section of the Qleverfile (or --disable-selinux yes on the command line) resolves this. It applies to all containerized commands with volume mounts: index, start, add-text-index, system-info, and ui.
  • SELinux warning: A warning is now shown when SELinux is in enforcing mode but DISABLE_SELINUX is not set, so that the user knows that DISABLE_SELINUX needs to be set to yes in order for commands to work.
  • IPv6 warning: When running in containerized mode, a warning is now shown if the configured HOST_NAME resolves to IPv6 first, since container port forwarding typically only listens on IPv4. The warning suggests using an explicit IPv4 address like 127.0.0.1.
    Fixes SELinux permissions with Podman containers #220

@tanmay-9 tanmay-9 marked this pull request as draft March 27, 2026 14:36
@tanmay-9 tanmay-9 marked this pull request as ready for review April 7, 2026 15:49
@tanmay-9 tanmay-9 changed the title Add SELinux support for containerized commands Add SELinux support and fix IPv6 issues for containerized qlever commands Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SELinux permissions with Podman containers

1 participant