Merge pull request #108238 from snicket2100/more-dnscrypt-proxy-hardening
nixos/dnscrypt-proxy2: more service hardening
This commit is contained in:
commit
2630a2df91
@ -87,6 +87,7 @@ in
|
|||||||
NoNewPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
NonBlocking = true;
|
NonBlocking = true;
|
||||||
PrivateDevices = true;
|
PrivateDevices = true;
|
||||||
|
ProtectClock = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
ProtectHome = true;
|
ProtectHome = true;
|
||||||
ProtectHostname = true;
|
ProtectHostname = true;
|
||||||
@ -107,8 +108,13 @@ in
|
|||||||
SystemCallFilter = [
|
SystemCallFilter = [
|
||||||
"@system-service"
|
"@system-service"
|
||||||
"@chown"
|
"@chown"
|
||||||
|
"~@aio"
|
||||||
|
"~@keyring"
|
||||||
|
"~@memlock"
|
||||||
"~@resources"
|
"~@resources"
|
||||||
"@privileged"
|
"~@setuid"
|
||||||
|
"~@sync"
|
||||||
|
"~@timer"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user