SystemD Service Hardening

32 todsacerdoti 5 8/18/2025, 4:57:47 AM roguesecurity.dev ↗

Comments (5)

eliaspro · 49m ago
Quoting https://brand.systemd.io/#:~:text=Yes,%20it%20is%20written%2...

"Yes, it is written systemd, not system D or System D, or even SystemD. And it isn't system d either. [...]"

jauntywundrkind · 47m ago
Much better article with very real tips about what options to try than yesterday's (weirdly flagged/dead?) post on the topic. Which while I really enjoyed lacked substance; I was in the comments trying to provide a more useful basis with some real examples, but this is an exemplary list of awesome ways systemd can easily quickly readily provide aassive boost to isolation & security. Great write up!

Yesterday's, just in case: https://us.jlcarveth.dev/post/hardening-systemd.md https://news.ycombinator.com/item?id=44928504

Faaak · 45m ago
And that's something that's impossible to do with old init scripts, that are all unique in their way and not uniform at all.
carlhjerpe · 38s ago
You can ofcourse achieve all these things in your init scripts which are unique in their way and not uniform at all, just to give credit where credit is due. But systemd makes it practical to use our beloved kernel and it's features in an uniform and standard way... :)

I started my Linux journey so late I can't imagine living without systemd, the few systems I've encountered without systemd are such a major PITA to use.

I recently discovered "unshare" which I could use to remount entire /nix RW for some hardlinking shenanigans without affecting other processes.

systemd is so good, warty UX when interacting with it but the alternative is honestly Windows in my case.

ibizaman · 59m ago
Nice tip on debugging syscall issues!