Systemd Service Hardening

https://roguesecurity.dev/blog/systemd-hardening

This one is a little self-hosting specific, and more casual Linux best practices, but I've got a new blog post down for general security! Harden your systemd units (especially custom ones) for better peace of mind on the internet!

133 points · 6 comments · view on lemmy.world

6 Comments

Limeade3425@lemmy.zip · 19 pts · 1y (1 reply)

Good write-up

starkzarn@infosec.pub · 17 pts · 1y

Hey, much appreciated!

chaospatterns@lemmy.world · 4 pts · 1y (1 reply)

How hard would it be to contribute these improvements back to the project in the form of either distro package updates or documentation changes? Did you consider that?

starkzarn@infosec.pub · 1 pts · 1y

That's a super valid question, as it seems sometimes that some of these things are configured in a way that begs the question "why?" As far as contributing to documentation, that's a moot point. This is already in the man pages, and that's exactly what I referenced in writing this post, in addition to some empirical testing of course. As far as implementation goes, I think that probably lies at a per distribution level, where not one size fits all. Although I don't know of it off the top of my head, I'm sure there's a security centric distro out there that implements more of these sandboxing options by default.

littlebigendian@lemmy.zip · 3 pts · 1y (1 reply)

That was very informative

starkzarn@infosec.pub · 3 pts · 1y

Excellent! There's certainly a lot to unpack, but being able to twist all these little knobs is part of the beauty of Linux.