Ian Kent <raven@themaw.net> writes:I think there is some confusion surrounding what the UID and GID are used for in this context. I'll try to explain it as best I can. When the automount daemon parses a map entry, it will do some amount of variable substitution. So, let's say you're running on an i386 box, and you want to mount a library directory from a server. You might have a map entry that looks like this: lib server:/export/$ARCH/lib In this case, the automount daemon will replace $ARCH with i386, and will try the following mount command: mount -t nfs server:/export/i386/lib /automountdir/lib There are cases where it would be helpful to use the requesting process's UID in such a variable substitution. Consider the case of a CIFS share, where the automount daemon runs as user root, but we want to mount the share using the credentials of the requesting user. In this case, the UID and GID can be helpful in formatting the mount options for mounting the share. So, the UID and GID are used only for map substitutions. Now, having said all of that, I'll have to look more closely at why we even need to keep track of it, given that it only needs to be used when performing the lookup, and at that time we have information on the requesting UID and GID. Cheers, Jeff --
| Hiten Pandya | Re: up? (emacs docbook xml ide) |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
| Florian Schmidt | blacklist kernel boot option |
git: | |
| Linus Torvalds | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
| Arjan van de Ven | Re: [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
