label option, from libpod.conf, is not being respected. #5087
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When playing with podman + kata, there's the need to always pass
--security-opt label=disable
topodman-run
. A similar way to achieve that, but for all the containers, would be settinglabel = false
in the libpod.conf. However, it doesn't seem to work.Steps to reproduce the issue:
On a Fedora 31 machine, using cgroups v1. do:
dnf install kata-runtime
label=false
in the libpod.conf filepodman --runtime /usr/bin/kata-runtime run -it fedora /bin/bash
Describe the results you received:
Error: rpc error: code = Unknown desc = selinux label is specified in config, but selinux is disabled or not supported: OCI runtime error
Describe the results you expected:
Container would be started in the same way as if started using the following command-line:
podman --runtime /usr/bin/kata-runtime run --security-opt label=disable fedora /bin/bash
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Physical machine.
The text was updated successfully, but these errors were encountered: