locate: fix security.wrappers
This commit is contained in:
parent
095cf1b903
commit
3deb85bc63
@ -104,13 +104,13 @@ in {
|
|||||||
users.extraGroups = mkIf isMLocate { mlocate = {}; };
|
users.extraGroups = mkIf isMLocate { mlocate = {}; };
|
||||||
|
|
||||||
security.wrappers = mkIf isMLocate {
|
security.wrappers = mkIf isMLocate {
|
||||||
mlocate = {
|
locate = {
|
||||||
group = "mlocate";
|
group = "mlocate";
|
||||||
owner = "root";
|
owner = "root";
|
||||||
permissions = "u+rx,g+x,o+x";
|
permissions = "u+rx,g+x,o+x";
|
||||||
setgid = true;
|
setgid = true;
|
||||||
setuid = false;
|
setuid = false;
|
||||||
program = "locate";
|
source = "${cfg.locate}/bin/locate";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user