-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add support for container creation's selinux_opts attribute #139
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @gjpin!
I had to rebase and force-push your branch to fix some conflicts, and I also added a CHANGELOG entry.
Hum...actually I just noticed that the tests are failing? Do they require SELinux to be enabled in the environment? |
@lgfa29 It looks like the log with the test failures has aged out. Can you rerun them. Looking at the test, is trying to add a SELinux label and then check for it. If SELinux is not enabled, that is going to fail. |
Lookin a bit more. It looks like you can't run the GitHub hosted actions with SELinux enabled. The SELinux team runs a MacOS GH Action with a Fedora Linux VM to run their test suite 🤢 https://github.com/SELinuxProject/selinux/blob/master/.github/workflows/vm_testsuite.yml |
Hi Any plan to merge this feature on the master branch ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay here everyone, I'm getting this merged and it will be released soon.
Thank you so much for the contribution @gjpin (and for patience through the slow review process 😅)
@lgfa29 thank you for the merge. |
Ops, the ✅ was a red herring 😅 Since the commit was just |
@lgfa29 oh, I thought that was solved :/. I made a test on my cluster and it works well on my side. I create a task with I hope you'll find the solution with the macos and vagran hack to enable selinux on a machine. That's sad to see github action disable selinux on their linux machines 👎 |
No worries, I thought it was good too 😅 I'm skipping these two tests for now until we figure out a better way. Hopefuly GitHub will provide something better soon 🤞 |
Solves #135
Hi!
This PR adds support for the selinux_opts attribute, as per https://docs.podman.io/en/latest/_static/api.html#operation/ContainerCreateLibpod .
I've also updated the README file and the tests to support the new attribute.
Thank you!