login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ian Kent <raven@...>
Cc: Andrew Morton <akpm@...>, Kernel Mailing List <linux-kernel@...>, autofs mailing list <autofs@...>, linux-fsdevel <linux-fsdevel@...>, Eric W. Biederman <ebiederm@...>
Date: Thursday, February 28, 2008 - 3:51 am

Ian Kent wrote:

Why do we need the uid then? Is just pid not enough to uniquely 
identify a task?

Assuming we can get by with a pid only, this problem can be solved
by sending a pid_nr() of a task, i.e. the pid by which this task is
seen from an initial namespace. This pid is unique across the system
even when pid namespaces are created.

But this ... trick is only valid if the daemon, that receives the 
pid doesn't try to communicate with this task (e.g. send him a signal),
but just uses this as a key to lookup in some hash. This is not about
security - even having someone's global pid task can do nothing useful 
with it - this is about the consistency - when sending a signal to a
task, giving its _global_ pid to sys_kill() the signal may arrive to a 
wrong task if the sender lives in a sub-namespace.


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

Messages in current thread:
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount re..., Pavel Emelyanov, (Thu Feb 28, 3:51 am)
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount re..., Eric W. Biederman, (Thu Feb 28, 4:33 pm)
Re: [autofs] [PATCH 3/4] autofs4 - track uid and gid of last..., Fabio Olive Leite, (Thu Feb 28, 8:31 am)
speck-geostationary