about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-11-13 15:25:35 +0000
committerAlyssa Ross <hi@alyssa.is>2019-11-13 15:31:32 +0000
commit7813c249ef2025123eddf826c9559923203ad018 (patch)
treef5b77eefa8de12271ebbab02728ef0e607523eb3
parentfaa4b27923840c56beacb98aa47ee7bedc5ed73c (diff)
downloadnixlib-7813c249ef2025123eddf826c9559923203ad018.tar
nixlib-7813c249ef2025123eddf826c9559923203ad018.tar.gz
nixlib-7813c249ef2025123eddf826c9559923203ad018.tar.bz2
nixlib-7813c249ef2025123eddf826c9559923203ad018.tar.lz
nixlib-7813c249ef2025123eddf826c9559923203ad018.tar.xz
nixlib-7813c249ef2025123eddf826c9559923203ad018.tar.zst
nixlib-7813c249ef2025123eddf826c9559923203ad018.zip
nixos/postfix: add missing setgid wrapper
This is basically an alias for a special case of postqueue, which
already has a setgid wrapper.  Would be silly to allow postqueue -p
but not mailq.
-rw-r--r--nixos/modules/services/mail/postfix.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/mail/postfix.nix b/nixos/modules/services/mail/postfix.nix
index d5fd76da970b..df438a0c69d1 100644
--- a/nixos/modules/services/mail/postfix.nix
+++ b/nixos/modules/services/mail/postfix.nix
@@ -631,6 +631,14 @@ in
         setgid = true;
       };
 
+      security.wrappers.mailq = {
+        program = "mailq";
+        source = "${pkgs.postfix}/bin/mailq";
+        group = setgidGroup;
+        setuid = false;
+        setgid = true;
+      };
+
       security.wrappers.postqueue = {
         program = "postqueue";
         source = "${pkgs.postfix}/bin/postqueue";