diff options
| author | Dariqq <dariqq@posteo.net> | 2026-05-17 19:27:08 +0000 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-08-09 14:44:26 +0200 |
| commit | be6b16f1a8f7b32b966dfdf81c4b0e59b4e05e40 (patch) | |
| tree | c12d25f6ed968b5debf1367ce1c066408fa4e27a /gnu/packages/mail.scm | |
| parent | fed5ef4baf2ef34751333f575c05964f572a2a55 (diff) | |
gnu: opensmtpd: Change path for lockspool to setuid program.
* gnu/packages/mail.scm (opensmtpd)[arguments]<#:phases>
{patch-FHS-file-names}: Also patch path to setuid lockspool.
Diffstat (limited to 'gnu/packages/mail.scm')
| -rw-r--r-- | gnu/packages/mail.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 3d9213da54b..cab39a4aa46 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm | |||
| @@ -3435,6 +3435,10 @@ from the Cyrus IMAP project.") | |||
| 3435 | (string-append def "\\\"/run/privileged/bin/smtpctl\\\" \\")) | 3435 | (string-append def "\\\"/run/privileged/bin/smtpctl\\\" \\")) |
| 3436 | (("(-DPATH_MAKEMAP=).*\\\\" all def) | 3436 | (("(-DPATH_MAKEMAP=).*\\\\" all def) |
| 3437 | (string-append def "\\\"/run/privileged/bin/makemap\\\" \\"))) | 3437 | (string-append def "\\\"/run/privileged/bin/makemap\\\" \\"))) |
| 3438 | ;; lockspool needs to be suid to be able to lock root owned /var/mail | ||
| 3439 | (substitute* "contrib/libexec/mail.local/pathnames.h" | ||
| 3440 | (("(#define _PATH_LOCKSPOOL).*" all def) | ||
| 3441 | (string-append def " \"/run/privileged/bin/lockspool\""))) | ||
| 3438 | (substitute* "usr.sbin/smtpd/smtpctl.c" | 3442 | (substitute* "usr.sbin/smtpd/smtpctl.c" |
| 3439 | ;; ‘gzcat’ is auto-detected at compile time, but ‘cat’ isn't. | 3443 | ;; ‘gzcat’ is auto-detected at compile time, but ‘cat’ isn't. |
| 3440 | (("/bin/cat" file) (search-input-file inputs file))) | 3444 | (("/bin/cat" file) (search-input-file inputs file))) |
