mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-27 13:12:14 +08:00
fix(systemd): add ReadWritePaths for /etc/hosts
Signed-off-by: Adam Rizkalla <ajarizzo@gmail.com>
This commit is contained in:

committed by
Steffen Vogel

parent
e073af34ab
commit
b798180358
@@ -46,6 +46,7 @@ ProtectKernelLogs=yes
|
|||||||
ProtectKernelTunables=yes
|
ProtectKernelTunables=yes
|
||||||
ProtectProc=invisible
|
ProtectProc=invisible
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
|
ReadWritePaths=-/etc/hosts
|
||||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
||||||
RestrictNamespaces=yes
|
RestrictNamespaces=yes
|
||||||
RestrictRealtime=yes
|
RestrictRealtime=yes
|
||||||
|
@@ -154,6 +154,9 @@ in
|
|||||||
ProtectKernelTunables = true;
|
ProtectKernelTunables = true;
|
||||||
ProtectProc = "invisible";
|
ProtectProc = "invisible";
|
||||||
ProtectSystem = "strict";
|
ProtectSystem = "strict";
|
||||||
|
ReadWritePaths = [
|
||||||
|
"-/etc/hosts"
|
||||||
|
];
|
||||||
RestrictAddressFamilies = [
|
RestrictAddressFamilies = [
|
||||||
"AF_UNIX"
|
"AF_UNIX"
|
||||||
"AF_INET"
|
"AF_INET"
|
||||||
|
Reference in New Issue
Block a user