fix(systemd_hardening): disable and mask the socket of a listed service too
Look up every listed name as a socket and as a service and act on each installed unit, the socket first. A service whose socket stays active is started again by the next connection to its port. Assisted-by: Claude Code
This commit is contained in:
1 parent
545f2fe94a
commit
f256c1c7e5
8 files changed
+101
-33
No files matched your search
@@ -0,0 +1,8 @@
|
||||
---
|
||||
bugfixes:
|
||||
- >-
|
||||
systemd_hardening - Disable and mask the socket of a listed service as well. A service whose socket stayed active was started again by
|
||||
the next connection to its port (``rpcbind`` listens on port 111 through ``rpcbind.socket``). Every name in the disable and mask lists
|
||||
is now looked up as a socket and as a service, with or without a ``.service`` or ``.socket`` suffix, and each installed unit is acted
|
||||
on, the socket first. A socket that belongs to a listed name, such as ``rpcbind.socket``, is now stopped and disabled, or masked,
|
||||
where before it was left alone.
|
||||
Reference in new issue
Block a user