all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ulrich Mueller <ulm@gentoo.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Allow update-game-score to run sgid instead of suid.
Date: Fri, 6 Feb 2015 11:35:09 +0100	[thread overview]
Message-ID: <21716.39133.974878.311315@a1i15.kph.uni-mainz.de> (raw)
In-Reply-To: <jwva90s5t5g.fsf-monnier+emacs@gnu.org>

>>>>> On Thu, 05 Feb 2015, Stefan Monnier wrote:

>> So, any objections against changing the default, as indicated above?

> I'm OK with changing to setgid instead of setuid, yes (I don't have
> a strong opinion either way on this).

A small problem with this is that there seems to be no portable
command to check for existence of a group. (There is getent(1) in
GNU/Linux and {Free,Open,Net}BSD but it's not specified by POSIX.)

But I guess we can set the default in configure and try to chgrp to it
during make install. It fails softly, so installation won't abort if
the group doesn't exist.

> As for defaulting to "neither setuid nor setgid", I'm less convinced.
> After all, I'd expect that most cases where Emacs is built "by hand"
> (rather than installed from a distro), the build will be done by
> a non-privileged user, so it will already end up being neither
> setgid/setuid.  IOW changing the default will end up catching distros
> by surprise with no real upside.

There's a note in etc/NEWS ... But point taken.

Ulrich



      reply	other threads:[~2015-02-06 10:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16 11:59 [PATCH] Allow update-game-score to run sgid instead of suid Ulrich Mueller
2015-02-05 12:03 ` Ulrich Mueller
2015-02-05 14:33   ` Stefan Monnier
2015-02-06 10:35     ` Ulrich Mueller [this message]

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

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

  git send-email \
    --in-reply-to=21716.39133.974878.311315@a1i15.kph.uni-mainz.de \
    --to=ulm@gentoo.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.