lib/misc: filter resources and privileged syscalls
This commit is contained in:
parent
13d8ed5901
commit
4a958c8029
|
@ -32,6 +32,11 @@ lib.mapAttrs (_k: lib.mkOptionDefault) {
|
||||||
RestrictSUIDSGID = true;
|
RestrictSUIDSGID = true;
|
||||||
SystemCallArchitectures = "native";
|
SystemCallArchitectures = "native";
|
||||||
SystemCallErrorNumber = "EPERM";
|
SystemCallErrorNumber = "EPERM";
|
||||||
SystemCallFilter = [ "@system-service" ];
|
SystemCallFilter = [
|
||||||
|
""
|
||||||
|
"@system-service"
|
||||||
|
"~@resources"
|
||||||
|
"~@privileged"
|
||||||
|
];
|
||||||
UMask = "0077";
|
UMask = "0077";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue