unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org>
To: Maya <maya.omase@protonmail.com>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: User group during build process
Date: Sun, 24 Jul 2022 09:19:42 -0700	[thread overview]
Message-ID: <CAFHYt54NjS1QhbQc_Nuch6mK41jY8ery_NjesKrDgbWJ+tRZPw@mail.gmail.com> (raw)
In-Reply-To: <3216B1FC-8597-4D68-B4C0-BD5F67E86F53@tobias.gr>

Hi,

On Sun, Jul 24, 2022 at 7:14 AM Tobias Geerinckx-Rice <me@tobias.gr> wrote:
>
> The correct way to make smtpctl setgid is to use Guix System's setuid-programs field, and use (setgid? #t) (group "smtpq") for smtpctl.

In line with TGR's recommendation, the snippet below works locally.

Kind regards
Felix Lechner

* * *

  (setuid-programs
   (append (list

            (setuid-program
             (program (file-append opensmtpd "/sbin/smtpctl"))
             (setuid? #false)
             (setgid? #true)
             (group "smtpq"))

            (setuid-program
             (program (file-append opensmtpd "/sbin/sendmail"))
             (setuid? #false)
             (setgid? #true)
             (group "smtpq"))

            (setuid-program
             (program (file-append opensmtpd "/sbin/send-mail"))
             (setuid? #false)
             (setgid? #true)
             (group "smtpq"))

            (setuid-program
             (program (file-append opensmtpd "/sbin/makemap"))
             (setuid? #false)
             (setgid? #true)
             (group "smtpq"))

            (setuid-program
             (program (file-append opensmtpd "/sbin/mailq"))
             (setuid? #false)
             (setgid? #true)
             (group "smtpq"))

            (setuid-program
             (program (file-append opensmtpd "/sbin/newaliases"))
             (setuid? #false)
             (setgid? #true)
             (group "smtpq")))

             %setuid-programs))


  reply	other threads:[~2022-07-24 16:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-24 14:00 User group during build process Maya
2022-07-24 14:14 ` Tobias Geerinckx-Rice
2022-07-24 16:19   ` Felix Lechner via Development of GNU Guix and the GNU System distribution. [this message]
2022-07-24 19:17     ` Maya
2022-07-24 19:57       ` Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFHYt54NjS1QhbQc_Nuch6mK41jY8ery_NjesKrDgbWJ+tRZPw@mail.gmail.com \
    --to=guix-devel@gnu.org \
    --cc=felix.lechner@lease-up.com \
    --cc=maya.omase@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).