fix: hardening

This commit is contained in:
FUFSoB committed 2026-10-05 22:44:09 +05:00
1 parent 017a947a18
commit a435942b4f
168 files changed
+9166 -1644

No files matched your search

+13 -3
View File
@@ -94,9 +94,19 @@ in
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig =
derived.constants.unprivilegedServiceConfig [
"net_bind_service"
]
# Not proxy-suite-daemon, whose traffic gets past TUN, TProxy and the kill switch whatever
# bypassTransparentProxy says: the bypass goes by the cgroup mark below.
builtins.removeAttrs
(derived.constants.unprivilegedServiceConfig [
"net_bind_service"
])
[
"User"
"Group"
]
// lib.optionalAttrs cfg.host.privileged {
DynamicUser = true;
}
// {
ExecStart = startScript;
LoadCredential = lib.optional (t.secretFile != null) "tg_ws_proxy_secret:${t.secretFile}";