SELinux `security-opt` parameter is not showing upon inspect container
Hi, I have notice when "security_opt" parameter is supply as run(), parameter is not not reflecting in container. Here are some information:
-
Details of run() command: run_command.txt
-
Detail of
HostConfigfrompodman inspect <container_name>: HostConfig.json
Also I use the following code comments for available parameters as well as parameters to podman_config. I did print of the values and notice that the parameters did pass but somehow when I perform inspect to the container SecurityOptis not set. Kindly do advise how can I get the SecurityOpt set.
REMARK: Just an extra information, when I run the container the cli or compose method, I do not face the same issue.
Thank you so much for the development of podman-py and l look into this issue. Looking forward for your advice.
not sure if this is relevant, podman api seems only have
selinux_opts | Array of stringsSelinuxProcessLabel is the process label the container will use. If SELinux is enabled and this is not specified, a label will be automatically generated if not specified. Optional. -- | --but if we go to podman docker compat api: https://docs.podman.io/en/latest/_static/api.html#tag/containers-(compat)/operation/ContainerCreate there is SecurityOpt in the payload
remind me something https://github.com/vv9k/podman-api-rs/issues/106