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 -1
View File
@@ -104,7 +104,19 @@ in
# `proxy-ctl zapret cutoff probe` drops its `force` file in requests/ instead.
StateDirectoryMode = "0755";
}
// constants.rootInSharedDirConfig;
// constants.rootInSharedDirConfig
# z2k-detect's raw sockets, marks and nft table (NET_*); requests/, which the group writes
# (DAC_*, FOWNER).
// lib.optionalAttrs cfg.host.privileged {
CapabilityBoundingSet = [
"CAP_NET_RAW"
"CAP_NET_ADMIN"
"CAP_DAC_OVERRIDE"
"CAP_DAC_READ_SEARCH"
"CAP_FOWNER"
];
NoNewPrivileges = true;
};
};
tmpfiles = [