Merge pull request #240072 from NickCao/singbox-harden
nixos/sing-box: set umask 0077 when generating configuration file
This commit is contained in:
@@ -56,6 +56,7 @@ in
|
|||||||
|
|
||||||
systemd.services.sing-box = {
|
systemd.services.sing-box = {
|
||||||
preStart = ''
|
preStart = ''
|
||||||
|
umask 0077
|
||||||
mkdir -p /etc/sing-box
|
mkdir -p /etc/sing-box
|
||||||
${utils.genJqSecretsReplacementSnippet cfg.settings "/etc/sing-box/config.json"}
|
${utils.genJqSecretsReplacementSnippet cfg.settings "/etc/sing-box/config.json"}
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user