OpenVZ Forum


Home » Mailing lists » Devel » process_group()
Re: process_group() [message #17303 is a reply to message #17302] Sun, 21 January 2007 06:23 Go to previous messageGo to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
ebiederm@xmission.com (Eric W. Biederman) writes:
>
> Close.  Our ultimate goal is to make it so that when you talk within
> the kernel you use a struct pid not a pid_t value.  Attacking the
> cached pid_t values is merely a way finding those places.
>
> So fixing thing like the pid_t value passed as credentials in unix domain
> sockets is a lot more important than fixing any use of process_session
> that just goes to user space.
>
> The reason it is important is because different processes may be in different
> pid namespaces and raw pid_t values just won't make sense while struct pid
> references are pid namespace independent.

The other reason for preferring a struct pid form is that it avoids
unnecessary hash table lookups, that we get processing pid in pid_t form.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Re: [PATCH/RFC] kthread API conversion for dvb_frontend and av7110
Next Topic: [PATCH 1/2] sysfs: Shadow directory support
Goto Forum:
  


Current Time: Sat Aug 10 20:52:22 GMT 2024

Total time taken to generate the page: 0.04814 seconds