nixos/adguardhome: allow AF_UNIX when log.file=="syslog"

(cherry picked from commit 6ac56136e5)
This commit is contained in:
Felix Stupp
2026-06-16 00:25:37 +00:00
committed by github-actions[bot]
parent e452157684
commit db280ba7ac

View File

@@ -238,6 +238,8 @@ in
"AF_INET"
"AF_INET6"
]
# AF_UNIX to be able to connect to e.g. /dev/log
++ lib.optionals (cfg.settings.log.file or "" == "syslog") [ "AF_UNIX" ]
++ lib.optionals cfg.allowDHCP [ "AF_PACKET" ];
RestrictNamespaces = true;
RestrictRealtime = true;