nixos/dnscrypt-proxy2: more service hardening
added 'ProtectClock' and made the seccomp filter a bit more restrictive have been running with these settings for a while with zero problems
This commit is contained in:
parent
d47eae33b0
commit
2bab1a76c6
@ -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