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

Adding linux capabilities via CDI specification #243

Closed
bachp opened this issue Dec 5, 2024 · 2 comments
Closed

Adding linux capabilities via CDI specification #243

bachp opened this issue Dec 5, 2024 · 2 comments

Comments

@bachp
Copy link

bachp commented Dec 5, 2024

I would like to give a container access to some host resource. And I am thinking about modeling this as a CDI resource as I think it is a very good fit to manage this exclusive access resources. I think with the environment variables and the mounts I have most of what is needed. The only thing missing is that I need to also give the container an additional capability (NET_RAW) which is not available by default in podman. I could provide it to the runtime as a separate parameter, but this means I need to know that I need to add the capability when assigning the CDI resource to a container.

I was thinking if it makes sense to also specify required capabilities in a CDI spec file. So, the container runtime can automatically assign them if permitted by the host runtime.

@mythi
Copy link

mythi commented Dec 5, 2024

I believe the discussion in #55 is related,

@bachp
Copy link
Author

bachp commented Dec 5, 2024

Yes this is exactly it. I somehow missed that. I will join the discussion there.

@bachp bachp closed this as completed Dec 5, 2024
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

No branches or pull requests

2 participants