flameshot: add some service sandboxing

This commit is contained in:
Robert Helgesson 2021-08-14 15:13:31 +02:00
parent 654d82f888
commit 72f3bc6fa4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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";
};
};
};