Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SELinux security-opt parameter is not showing upon inspect container #343

Open
Amizzuddin opened this issue Nov 15, 2023 · 1 comment
Open
Assignees
Labels
help wanted Extra attention is needed

Comments

@Amizzuddin
Copy link

Amizzuddin commented Nov 15, 2023

Hi, I have notice when "security_opt" parameter is supply as run(), parameter is not not reflecting in container. Here are some information:

  1. Details of run() command: run_command.txt
    Screenshot from 2023-11-16 07-45-41

  2. Detail of HostConfig from podman inspect <container_name>: HostConfig.json
    Screenshot from 2023-11-16 07-46-15

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.

@umohnani8 umohnani8 added the help wanted Extra attention is needed label Jan 23, 2024
@inknos inknos self-assigned this May 29, 2024
@NerdToMars
Copy link

NerdToMars commented Dec 5, 2024

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 vv9k/podman-api-rs#106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants