From: Andi Kleen <andi@firstfloor.org>
To: Jeff Dike <jdike@addtoit.com>
Cc: Zach Brown <zach.brown@oracle.com>, Ingo Molnar <mingo@elte.hu>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: Syslets, signals, and security
Date: 04 Jun 2007 22:57:34 +0200 [thread overview]
Message-ID: <p73vee3a14x.fsf@bingen.suse.de> (raw)
In-Reply-To: <20070604191349.GA8903@c2.user-mode-linux.org>
Jeff Dike <jdike@addtoit.com> writes:
> How about splitting the credentials out of the task_struct and making
> them sharable ala ->mm et al? You change uid there and it changes for
> everyone. It will make fork slightly more expensive though.
Strictly that's required by POSIX anyways. But it's a real mess.
The problem is that you would need to reference count/lock them in every
syscall or ioctl or similar. Otherwise another thread
could change them in the middle of a syscall which wouldn't be
good. Doing this full reference counting would be probably somewhat
expensive with more locked cycles and also a lot of work to implement.
You would need to audit large parts of the source tree.
I don't think it's a good idea.
-Andi
next prev parent reply other threads:[~2007-06-04 20:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-04 16:31 Syslets, signals, and security Jeff Dike
2007-06-04 17:16 ` Ulrich Drepper
2007-06-04 17:45 ` Zach Brown
2007-06-04 19:13 ` Jeff Dike
2007-06-04 20:57 ` Andi Kleen [this message]
2007-06-04 22:44 ` Alan Cox
2007-06-05 11:11 ` Andi Kleen
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=p73vee3a14x.fsf@bingen.suse.de \
--to=andi@firstfloor.org \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=zach.brown@oracle.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