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

Generating policies for systemd-based containers #21

Open
docent-net opened this issue May 6, 2019 · 1 comment
Open

Generating policies for systemd-based containers #21

docent-net opened this issue May 6, 2019 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@docent-net
Copy link

Udica is a great tool. And it would be great if one could use it also for generating policies for systemd - based containers (or even systemd - confined processes, not whole containers like Podman or Docker).

For instance having systemd portable service's unit file Udica would generate SELinux policy taking into consideration directories that were mapped to process.

Same for systemd-nspawn containers or even normal processes confined by systemd properties configured in unit files.

Not sure if Udica is the best project for this (from my perspective looks like it's rather for Podman / Docker based containers). So asking you guys - because if it were maybe I could help you with that a bit.

@wrabcak
Copy link
Member

wrabcak commented May 6, 2019

Hi @docent-net ,

Udica is a great tool. And it would be great if one could use it also for generating policies for systemd - based containers (or even systemd - confined processes, not whole containers like Podman or Docker).

For instance having systemd portable service's unit file Udica would generate SELinux policy taking into consideration directories that were mapped to process.

I'm not familiar systemd-based containers, but if systemd is generating some inspection file for each container, where are all the important information for us (mountpoints, capabilities and ports) it's possible expand the functionality of udica also for systemd containers.

Same for systemd-nspawn containers or even normal processes confined by systemd properties configured in unit files.

Also, do you have example related to systemd portable unit file? I'm not sure what are you mean.

Not sure if Udica is the best project for this (from my perspective looks like it's rather for Podman / Docker based containers). So asking you guys - because if it were maybe I could help you with that a bit.

For me it make sense to have one generation tool for all container engines and in this case also systemd is container engine. So it could be part of Udica.

Thanks for helping with this project!
Lukas.

@wrabcak wrabcak added the enhancement New feature or request label May 6, 2019
@vmojzis vmojzis added the question Further information is requested label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants