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

Support for SELinux label #469

Closed
utam0k opened this issue Nov 12, 2021 · 6 comments
Closed

Support for SELinux label #469

utam0k opened this issue Nov 12, 2021 · 6 comments
Assignees
Labels
looking-for-help Issues which need more infor and/or are looking for help in investigation

Comments

@utam0k
Copy link
Member

utam0k commented Nov 12, 2021

I don't know what we need. The first step is to identify what we need to do.
https://github.com/opencontainers/runtime-spec/blob/a3c33d663ebc56c4d35dbceaa447c7bf37f6fab3/config.md?plain=1#L213-L214

@YJDoc2
Copy link
Collaborator

YJDoc2 commented Nov 12, 2021

Maybe this might provide some help :

https://wiki.gentoo.org/wiki/SELinux/Labels , and specifically, https://wiki.gentoo.org/wiki/SELinux/Labels#Managing_process_labels

As the above states , it is not possible to change the label for process once started. That would mean we would need to start the youki daemon , in the two-fork method with the correct label set. This might provide some info on that : https://wiki.gentoo.org/wiki/SELinux/Tutorials/How_does_a_process_get_into_a_certain_context

I haven't gone through these in detail, but I think this could lead us to the way we need to implement.

Some extra links (but not much different) :
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security-enhanced_linux/sect-security-enhanced_linux-working_with_selinux-selinux_contexts_labeling_files

@YJDoc2
Copy link
Collaborator

YJDoc2 commented Nov 12, 2021

I also found https://opensource.com/article/18/2/understanding-selinux-labels-container-runtimes, which is from the author who contributed to selinux go bindings for OCI : https://github.com/opencontainers/selinux

@utam0k
Copy link
Member Author

utam0k commented Jan 21, 2022

@yihuaf Hi! Maybe are you interested?

@yihuaf yihuaf self-assigned this Jan 21, 2022
@yihuaf
Copy link
Collaborator

yihuaf commented Jan 21, 2022

I can try to do some investigation around this and see if I can come up with a design. Work starts to take up more time, so I may work slower than before.

@utam0k
Copy link
Member Author

utam0k commented Jan 21, 2022

@yihuaf That's right. If you will be busy and it gets difficult, please let me know via discord DM or something. It's no problem at your own pace. THanks again, you're a big help 😍

@YJDoc2 YJDoc2 added the looking-for-help Issues which need more infor and/or are looking for help in investigation label Nov 14, 2022
@YJDoc2
Copy link
Collaborator

YJDoc2 commented Oct 18, 2024

This is carried on in #2718

@YJDoc2 YJDoc2 closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
looking-for-help Issues which need more infor and/or are looking for help in investigation
Projects
None yet
Development

No branches or pull requests

3 participants