From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Roland McGrath <roland@redhat.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
Ulrich Drepper <drepper@redhat.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] bug in setpgid()? process groups and thread groups
Date: 02 Aug 2003 21:51:24 +0100 [thread overview]
Message-ID: <1059857483.20306.6.camel@dhcp22.swansea.linux.org.uk> (raw)
In-Reply-To: <200308021908.h72J82x10422@magilla.sf.frob.com>
On Sad, 2003-08-02 at 20:08, Roland McGrath wrote:
> The problem exists with uids/gids as well, in the sense that they are
> changed per-thread but POSIX semantics are that setuid et al affect the
> whole process (i.e. all threads in a thread group). I emphatically agree
> that this should be changed, and I hope we can get it done in 2.6.
There are two reasons the uid/gid stuff can't change.
#1 Lots of non posix afflicted intelligent programmers use the per
thread uid stuff in daemons. Its really really useful
#2 Linux fundamentally assumes your security credentials don't change
mid syscall except in the specific calls we intend to.
#2 is not sanely soluble for 2.6, and of questionable value anyway, #1
is a very good reason for making libc fix up this obscure posix
stupidity itself.
Lets face it how many posix pthreads app have -performance critical
setuid/getid calls ?
next prev parent reply other threads:[~2003-08-02 20:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-02 7:57 [PATCH] bug in setpgid()? process groups and thread groups Jeremy Fitzhardinge
2003-08-02 8:20 ` Ulrich Drepper
2003-08-02 8:50 ` Jeremy Fitzhardinge
2003-08-02 19:08 ` Roland McGrath
2003-08-02 20:30 ` Nicholas Miell
2003-08-02 20:51 ` Alan Cox [this message]
2003-08-03 7:22 ` Florian Weimer
2003-08-03 21:00 ` Alan Cox
2003-08-03 4:15 ` Jeremy Fitzhardinge
2003-08-02 18:39 ` William Lee Irwin III
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=1059857483.20306.6.camel@dhcp22.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=akpm@osdl.org \
--cc=drepper@redhat.com \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.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.
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 NNTP newsgroup(s).