[5274] in Athena Bugs
7.0 attach: wrong uid in mount rpc request
daemon@ATHENA.MIT.EDU (Richard Basch)
Mon Jun 25 14:42:09 1990
Date: Mon, 25 Jun 90 14:41:47 -0400
To: bugs@ATHENA.MIT.EDU
From: Richard Basch <probe@MIT.EDU>
"attach", in its mount RPC request, sends a uid of 0. It should send
the uid of the caller of "attach". (This will become necessary for one
of the projects I am working on, and I have already mentioned this to
John Carr, who agrees with the bug).
The fix is to change:
/source/athena/bin.athena/attach/mount.c: mount_nfs()
Change:
client->cl_auth = spoofunix_create_default(spoofhost);
to:
setreuid(geteuid(),getuid());
client->cl_auth = spoofunix_create_default(spoofhost);
setreuid(geteuid(),getuid());
Probably, /etc/mount is also incorrect, but since that is generally only
executable as "root", fixing this is not as important. However, it
should be checked for consistency.
-Richard