All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: "Ed V. Bartosh" <ed@sam-solutions.net>
Cc: nfs@lists.sourceforge.net
Subject: Re: NFSv3 UID/GID mapping
Date: Fri, 23 Apr 2004 14:23:22 -0400	[thread overview]
Message-ID: <20040423182322.GD18366@fieldses.org> (raw)
In-Reply-To: <m3ekqfvz16.fsf@pc213.belcaf.minsk.by>

On Fri, Apr 23, 2004 at 12:12:05PM +0300, Ed V. Bartosh wrote:
> It's just a server-side mapping. I think we don't need to rely on
> client for that. There are many other possibilities to change uids on
> client side.

The situation where I can imagine it being useful is when you had a
client (maybe a laptop) that you wanted to be able to access shares on
servers in different uid domains (possibly simultaneously).

> Also client-based solution is less secure than server-side one and
> also it's the linux-only solution.

I don't see the argument there.

> I think there are many other situations when it may be useful to use
> this kind of mapping.

Sure.  I think someone on the linux kernel mailing list said they wanted
to able to squash ranges of uid's.

> > Do you also need to do map the id's in nfs3xdr.c:xdr_encode_setattr() and
> > xdr_decode_fattr()?
> Yes, I do. Thank you.

That means you need a second mapping: in addition to mapping remove
clients' id's to local server id's, you need the inverse mapping from
local id's to the clients' id's (to get ls right).

> > We need to figure out a way to do this without duplicating so much code
> > from nfs4idmap.c.
> Yes, we need it, but it's not too much code. I think that there is
> sense to move only deferred request handling functions somewhere in
> separate file and use it from nfs4 and nfs3 idmap functions.

OK.

> BTW, Is any chance for this functionality to be in mainstream sometime ?

It seems useful, but it's not really up to me.

--Bruce Fields


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

      reply	other threads:[~2004-04-23 18:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-22  9:36 NFSv3 UID/GID mapping Ed V. Bartosh
2004-04-22 17:25 ` J. Bruce Fields
2004-04-23  9:12   ` Ed V. Bartosh
2004-04-23 18:23     ` J. Bruce Fields [this message]

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=20040423182322.GD18366@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=ed@sam-solutions.net \
    --cc=nfs@lists.sourceforge.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.