nixos/keyd: Allow service to call nice syscall
Otherwise it'll be killed by systemd with Main process exited, code=killed, status=31/SYS Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
This commit is contained in:
parent
1718e247eb
commit
6591d332f9
@ -133,7 +133,7 @@ in
|
||||
RuntimeDirectory = "keyd";
|
||||
|
||||
# Hardening
|
||||
CapabilityBoundingSet = "";
|
||||
CapabilityBoundingSet = [ "CAP_SYS_NICE" ];
|
||||
DeviceAllow = [
|
||||
"char-input rw"
|
||||
"/dev/uinput rw"
|
||||
@ -142,7 +142,7 @@ in
|
||||
PrivateNetwork = true;
|
||||
ProtectHome = true;
|
||||
ProtectHostname = true;
|
||||
PrivateUsers = true;
|
||||
PrivateUsers = false;
|
||||
PrivateMounts = true;
|
||||
PrivateTmp = true;
|
||||
RestrictNamespaces = true;
|
||||
@ -155,9 +155,9 @@ in
|
||||
LockPersonality = true;
|
||||
ProtectProc = "invisible";
|
||||
SystemCallFilter = [
|
||||
"nice"
|
||||
"@system-service"
|
||||
"~@privileged"
|
||||
"~@resources"
|
||||
];
|
||||
RestrictAddressFamilies = [ "AF_UNIX" ];
|
||||
RestrictSUIDSGID = true;
|
||||
|
Loading…
Reference in New Issue
Block a user