mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
flameshot: add some service sandboxing
This commit is contained in:
parent
654d82f888
commit
72f3bc6fa4
1 changed files with 9 additions and 0 deletions
|
@ -34,6 +34,15 @@ in {
|
|||
Environment = "PATH=${config.home.profileDirectory}/bin";
|
||||
ExecStart = "${package}/bin/flameshot";
|
||||
Restart = "on-abort";
|
||||
|
||||
# Sandboxing.
|
||||
LockPersonality = true;
|
||||
MemoryDenyWriteExecute = true;
|
||||
NoNewPrivileges = true;
|
||||
PrivateUsers = true;
|
||||
RestrictNamespaces = true;
|
||||
SystemCallArchitectures = "native";
|
||||
SystemCallFilter = "@system-service";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue