All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Waychison <Michael.Waychison@Sun.COM>
To: raven@themaw.net
Cc: autofs@linux.kernel.org
Subject: Re: Exporting UID to userspace?
Date: Tue, 08 Jun 2004 14:45:24 -0400	[thread overview]
Message-ID: <40C60944.3080006@sun.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0406090017110.22861@donald.themaw.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

raven@themaw.net wrote:
> On Tue, 8 Jun 2004, Brian Long wrote:
>
>
>>>Fact is I'm still struggling to get bugs fixed. When that has settled
down
>>>there are a couple of quite serious limitations with autofs that need to
>>>be addressed. They've been outstanding for many months.
>>
>>Ian,
>>
>>Could you remind us what "serious limitations" still exist in autofs?
>>Is this in comparison to Sun's implementation on Solaris or something
>>else?
>
>
> Lazy mounting of multi-mount map entries.
> Direct mounts obscure underlying file system high up in the tree.
>
> Yes this is what people expect from an automounter as Suns implementation
> provides it. In any case I've needed it for ages and I have some fairly
> clear ideas on how to implement it, after having given it much thought.
>
> Don't get me wrong here, the big issue with this request is working out a
> way to get hold of the UID and GID or perhaps GIDs without having to
> compromise the existing system.
>
> Do you guys have any ideas on how we might do this?
>
> Ian

If the idea is to have a 'Network Neighborhood' inside each user's
homedir, you could write an executable map for /home (not tested..):

key = shift
entry = `ypcat $KEY -k`
if [ $? == 0 ] ; then
   echo $entry " /NetworkNeighborhood -Duser=$key /etc/auto_nn"
   exit 0
fi;
exit 1

And then use a auto_nn executable map for generating the Neighborhood
contents.

To handle mounting with credentials, you'll have to

a) adapt the existing modules to handle grabbing credentials

or

b) write a generic 'execmount' module that will execute a given script
with all the required information (all the environment variables, mount
options, real filesystem type, yadda yadda).   This is my preferred
approach to handling this as it can be re-used for other strange
automount uses..

This method also means that you don't have to touch the kernel module at
all..

What think?

- --
Mike Waychison
Sun Microsystems, Inc.
1 (650) 352-5299 voice
1 (416) 202-8336 voice
mailto: Michael.Waychison@Sun.COM
http://www.sun.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE:  The opinions expressed in this email are held by me,
and may not represent the views of Sun Microsystems, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAxglEdQs4kOxk3/MRAl0jAJ9NzCQq0c4AZ8r2DupTP2hilZ6CXQCeIWKu
hEQ6VbhSVaURsqIPW9tRboM=
=CzDF
-----END PGP SIGNATURE-----

  reply	other threads:[~2004-06-08 18:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-07 12:38 Exporting UID to userspace? Dimitry V. Ketov
2004-06-08  1:15 ` Ian Kent
2004-06-08 13:12   ` Brian Long
2004-06-08 16:28     ` raven
2004-06-08 18:45       ` Mike Waychison [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-06-10 16:14 Dimitry V. Ketov
2004-06-10 16:59 ` Mike Waychison
2004-06-10 14:55 Dimitry V. Ketov
2004-06-10 15:54 ` Mike Waychison
2004-06-09 18:10 Dimitry V. Ketov
2004-06-09 18:44 ` Mike Waychison
2004-06-10  1:13   ` Ian Kent
2004-06-08 17:47 Dimitry V. Ketov
2004-06-08 18:20 ` Robin Rosenberg
2004-06-07 12:45 Dimitry V. Ketov
2004-06-07 16:06 ` Mike Waychison
2004-06-07 22:53   ` Robin Rosenberg
2004-06-05 14:00 Dimitry V. Ketov
2004-06-05 15:47 ` raven
2004-06-05 15:52   ` raven
2004-06-05 17:11     ` Robin Rosenberg
2004-06-05 17:49       ` Ian Kent
2004-06-05 20:13         ` Robin Rosenberg

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=40C60944.3080006@sun.com \
    --to=michael.waychison@sun.com \
    --cc=autofs@linux.kernel.org \
    --cc=raven@themaw.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.