nixos/unbound: fix wrong syscall filter

This changes the syscall filter to match that of upstream. Note that

    SystemCallFilter=~foo bar

is completely different from

    SystemCallFilter=~foo
    SystemCallFilter=bar

The former one means that foo and bar are forbidden, and the latter
one means foo is forbidden and bar is granted!
This commit is contained in:
Gary Guo 2023-11-05 20:31:52 +00:00
parent 6e9240e25b
commit c70614c0a4

View File

@ -273,14 +273,7 @@ in {
RestrictRealtime = true;
SystemCallArchitectures = "native";
SystemCallFilter = [
"~@clock"
"@cpu-emulation"
"@debug"
"@keyring"
"@module"
"mount"
"@obsolete"
"@resources"
"~@clock @cpu-emulation @debug @keyring @module mount @obsolete @resources"
];
RestrictNamespaces = true;
LockPersonality = true;