From: Michael Kerrisk <m.kerrisk@gmx.net>
To: linux-kernel@vger.kernel.org
Date: Sat, 13 Oct 2001 18:48:19 +0200 (MEST) [thread overview]
Message-ID: <6126.1002991699@www50.gmx.net> (raw)
Gidday,
[Hmmm, tried postin this from another address but it doesn't seem to have
maed it through - this is another shot, apologies if it turns out to be a
duplicate]
I've put this question out on C.O.L.D.S, but have not really received any
conclusive answer, and archive searches don't seem to reveal anything, so
I'll bring it here...
I'm slightly puzzled about the use of the file system UID and GID
features. The setfsuid(2) man page says:
>> An explict call to setfsuid is usually only used by pro
>> grams such as the Linux NFS server that need to change
>> what user ID is used for file access without a correspond
>> ing change in the real and effective user IDs. A change in
>> the normal user IDs for a program such as the NFS server
>> is a security hole that can expose it to unwanted signals
>> from other user IDs.
Now I can see that it can be convenient for the NFS server to change the
FSUID in order to masquerade as another user for the purposes of file
access permissions, while at the same time maintaining privileges via the
effective/saved set-user IDs.
However, the statement about signals sounds strange to me: on Linux (as
with other Unices), one process can send another process a signal if the
[REAL or EFFECTIVE UID of the sender] matches the [REAL or SAVED SET-
USER-ID of the receiver].
Thus a process could use (say) seteuid(2) to change the process'
effective UID (while leaving the real and saved set-user-id unchanged) ,
and still not be a target for signals sent by another process with the
same real of effective UID. In other words, the FSUID doesn't appear to
be necessary, at least from the point of view of protection from signals.
Is the explanation on the manual page incomplete? Or have I missed
something? (I've had a read of the NFS sources and haven't been
enlightened.)
Thanks,
Michael
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
reply other threads:[~2001-10-13 16:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=6126.1002991699@www50.gmx.net \
--to=m.kerrisk@gmx.net \
--cc=linux-kernel@vger.kernel.org \
/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