9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Yaroslav <yarikos@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] p9any auth in u9fs: uid value in ticked is ignored
Date: Mon, 10 Oct 2011 17:01:31 +0300	[thread overview]
Message-ID: <CAG3N4d-PT7+aj4ZU5=YpCk9eDnxT76TGLE5uWCqSfsSEfOoGZA@mail.gmail.com> (raw)
In-Reply-To: <CAOw7k5jYgQKeELmybstA_-9JMDxdCJ3wae_Jm4oh9-uxyMAEww@mail.gmail.com>

devmnt always uses up->user for Tauth/Tattach no matter what an auth
protocol would yield (/sys/src/9/port/devmnt.c:281). Stock 9P servers
tolerate this and check Tattach.uname to match Tauth.uname but use
t.cuid or t.suid as the true user identity (unless no auth required).

Anyway, simply trusting Tattach.uname is too naïve - at least for p9any.

> It's true that the server must take account of the result of
> authentication, but although that might not
> mean identity, the results of authentication should be consistent with
> the name presented as uname
> in Tauth/Tattach. In the context of p9auth I think that means that the
> cuid of AuthInfo should match.



  reply	other threads:[~2011-10-10 14:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-10 12:07 Yaroslav
2011-10-10 12:39 ` Charles Forsyth
2011-10-10 14:01   ` Yaroslav [this message]
2011-10-10 16:18     ` Charles Forsyth
2011-10-10 20:47       ` Yaroslav
2011-10-10 22:03         ` Charles Forsyth

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='CAG3N4d-PT7+aj4ZU5=YpCk9eDnxT76TGLE5uWCqSfsSEfOoGZA@mail.gmail.com' \
    --to=yarikos@gmail.com \
    --cc=9fans@9fans.net \
    /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).