Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces

From: Eric W. Biederman
Date: Tue Mar 04 2008 - 17:25:57 EST


Pavel Emelyanov <xemul@xxxxxxxxxx> writes:

>>
>> It takes a little updating of how we use pids. The easiest method
>> is to add an extra counter. So we know when someone besides the hash
>> chains is using the pid as an id. However it might make sense to actually
>> have a net namespace pointer in the pid.
>
> No, please, no. I'm strongly opposed to making pids provide identification
> for anything we need in the kernel.

I don't see the problem. Sessions and process groups are roughly the
same kinds of concept as namespaces.

However I do agree that not using any kind of id is cleaner, leaves us
with less legacy that we have to deal with, and keeps struct pid
small, so it is preferable.

Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/