Just learned about a few interesting and useful stuff, when playing with bootc:
systemd Components
I finally decided to migrate from cron to systemd-timer. systemd-timer is more interesting and handy than expected, and the migration process is less painful than expected.
SELinux
Recently I got to learn more about it:
- https://people.redhat.com/duffy/selinux/selinux-coloring-book_A4-Stapled.pdf
- https://www.youtube.com/watch?v=_WOKRaM-HI4
- https://developers.redhat.com/articles/2025/04/11/my-advice-selinux-container-labeling#
- https://docs.podman.io/en/v5.0.3/markdown/podmansh.1.html
- https://reintech.io/blog/securing-debian-12-with-selinux
- https://www.redhat.com/en/blog/how-selinux-separates-containers-using-multi-level-security
- https://www.redhat.com/en/blog/why-you-should-be-using-multi-category-security-your-linux-containers
- https://wiki.gentoo.org/wiki/SELinux/User-based_access_control
With more knowledge about it, I feel that I like it much better than before:
- I actually have written my own tool to verify file permissions, in a similar fashion (regex -> permissions)
- rootless docker and apparmor didn't work very well together in my case. rootless podman and selinux might work better together.
- :Z is pretty nice for containers: https://github.com/containers/container-selinux
I probably will start trying SELinux. With more confidence I might eventually enable it on Debian and replace AppArmor.
Comments