mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00
parent
96d1602a5f
commit
9c565e0e69
@ -35,15 +35,14 @@ in {
|
||||
Slice = "system-rustdesk.slice";
|
||||
User = "rustdesk";
|
||||
Group = "rustdesk";
|
||||
DynamicUser = "yes";
|
||||
Environment = [];
|
||||
WorkingDirectory = "/var/lib/rustdesk";
|
||||
StateDirectory = "rustdesk";
|
||||
StateDirectoryMode = "0750";
|
||||
LockPersonality = true;
|
||||
NoNewPrivileges = true;
|
||||
PrivateDevices = true;
|
||||
PrivateMounts = true;
|
||||
PrivateTmp = true;
|
||||
PrivateUsers = true;
|
||||
ProtectClock = true;
|
||||
ProtectControlGroups = true;
|
||||
@ -53,10 +52,7 @@ in {
|
||||
ProtectKernelModules = true;
|
||||
ProtectKernelTunables = true;
|
||||
ProtectProc = "invisible";
|
||||
ProtectSystem = "strict";
|
||||
RemoveIPC = true;
|
||||
RestrictNamespaces = true;
|
||||
RestrictSUIDSGID = true;
|
||||
};
|
||||
};
|
||||
in lib.mkIf cfg.enable {
|
||||
|
Loading…
Reference in New Issue
Block a user