Re: [PATCH 2/4] autofs4 - track uid and gid of last mount requester

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Ian Kent <raven@...>, <autofs@...>, <linux-kernel@...>, <linux-fsdevel@...>, <containers@...>
Date: Thursday, August 7, 2008 - 6:12 pm

Quoting Andrew Morton (akpm@linux-foundation.org):

I actually don't see what the autofs4_waitq->pid is used for.  It's
copied from current into wq->pid at autofs4_wait, and into a packet to
send to userspace (I assume) at autofs4_notify_daemon.

So as long as a daemon can serve multiple pid namespaces (which
doubtless it can), the pid could be confusing (or erroneous) for the
daemon.

If I'm remotely right about how the pid is being used, then the thing to
do would be to 
	1. store the daemon's pid namespace  (would that belong in
	the autofs_sb_info?)
	2. store the task_pid(current) in the waitqueue
	3. retrieve the pid_t for the waiting task in the daemon's
	pid namespace, and put that into the packet at
	autofs4_notify_daemon.

I realize this patch was about the *uids*, but the pids seem more
urgent.

-serge
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/4] autofs4 - cleanup autofs mount type usage, Christoph Hellwig, (Sat Aug 9, 8:47 am)
Re: [PATCH 4/4] autofs4 - add miscelaneous device for ioctls, Christoph Hellwig, (Sat Aug 9, 8:59 am)
Re: [PATCH 4/4] autofs4 - add miscelaneous device for ioctls, Christoph Hellwig, (Sat Aug 9, 1:18 pm)
Re: [PATCH 3/4] autofs4 - devicer node ioctl docoumentation., Christoph Hellwig, (Sat Aug 9, 9:00 am)
Re: [PATCH 2/4] autofs4 - track uid and gid of last mount re..., Serge E. Hallyn, (Thu Aug 7, 6:12 pm)