On Sun, 24 Jul 2005, Moshe Kaminsky wrote:

> Hi,
> 
> I don't know if this is really the place to ask (I also was unable to 
> view the archives). Anyway, my question is this: suppose I'm using the 
> program map type to return the mount argument. Can I know from within 
> this program who is the user that is causing the mounting to take place? 
> Can I ask that the program be run as that user?

Not yet.

The reason this has not been done so far is that the messages from the 
kernel that request actions need to be a predefined length to maintain 
compatability with older versions of autofs. The current message 
structure doesn't have any user information and so this cannot be used 
during the mount. The time that this can change is when the kernel 
protocol version changes, in this case from version 4 to version 5. I'm 
currently working on getting an alpha of autofs version 5. Indeed, I've 
started work on this very issue tonight.

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to