Skip to content

Commit

Permalink
locate: fix security.wrappers
Browse files Browse the repository at this point in the history
(cherry picked from commit 3deb85b)
  • Loading branch information
Gregor Kleen authored and globin committed Mar 2, 2017
1 parent ac396e9 commit bd265c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/misc/locate.nix
Expand Up @@ -104,13 +104,13 @@ in {
users.extraGroups = mkIf isMLocate { mlocate = {}; };

security.wrappers = mkIf isMLocate {
mlocate = {
locate = {
group = "mlocate";
owner = "root";
permissions = "u+rx,g+x,o+x";
setgid = true;
setuid = false;
program = "locate";
source = "${cfg.locate}/bin/locate";
};
};

Expand Down

0 comments on commit bd265c5

Please sign in to comment.