* Re: [9fans] AuthInfo.cuid and suid
@ 2005-07-05 1:19 YAMANASHI Takeshi
0 siblings, 0 replies; 3+ messages in thread
From: YAMANASHI Takeshi @ 2005-07-05 1:19 UTC (permalink / raw)
To: 9fans
On Tue Jul 5 03:19:09 JST 2005, Russ Cox wrote:
> Since the client name isn't
> authenticated at all, suid == cuid.
I see. tickauthreply() in auth/authsrv.c has the following lines:
safecpy(t.cuid, tr->uid, sizeof t.cuid);
safecpy(t.suid, tr->uid, sizeof t.suid);
Thanks.
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] AuthInfo.cuid and suid
2005-07-04 8:21 YAMANASHI Takeshi
@ 2005-07-04 18:18 ` Russ Cox
0 siblings, 0 replies; 3+ messages in thread
From: Russ Cox @ 2005-07-04 18:18 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
At one point there was a notion that ai.cuid would be
the name the user used on the client, while ai.suid would
be the name on the server. Since the client name isn't
authenticated at all, suid == cuid. The right one to use
is suid but it doesn't matter.
Russ
^ permalink raw reply [flat|nested] 3+ messages in thread
* [9fans] AuthInfo.cuid and suid
@ 2005-07-04 8:21 YAMANASHI Takeshi
2005-07-04 18:18 ` Russ Cox
0 siblings, 1 reply; 3+ messages in thread
From: YAMANASHI Takeshi @ 2005-07-04 8:21 UTC (permalink / raw)
To: 9fans
My old 4th ed. has the line:
% nashi@valinore grep -n mkcap /sys/src/cmd/auth/factotum/rpc.c
329: fss->ai.cap = mkcap(r->fid->uid, fss->ai.cuid);
% nashi@valinore ls -l /sys/src/cmd/auth/factotum/rpc.c
--rw-rw-r-- M 9 sys sys 10229 Jun 29 2002 /sys/src/cmd/auth/factotum/rpc.c
On the other hand, the recent factotum has the line:
cpu% grep -n mkcap /sys/src/cmd/auth/factotum/rpc.c
341: fss->ai.cap = mkcap(r->fid->uid, fss->ai.suid);
Why cuid was changed to suid while cuid remains in many places like
cpu.c? What is the difference between them?
The following description in auth(2) did't clear my confusion...
The fields cuid and suid point to the authenticated ids of
the client and server. Cap is a capability returned only to
the server.
--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-05 1:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-05 1:19 [9fans] AuthInfo.cuid and suid YAMANASHI Takeshi
-- strict thread matches above, loose matches on Subject: below --
2005-07-04 8:21 YAMANASHI Takeshi
2005-07-04 18:18 ` Russ Cox
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).