[lkml]   [2018]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [REVIEW][PATCH 09/11] ipc/shm: Fix shmctl(..., IPC_STAT, ...) between pid namespaces.

On 03/28/2018 04:04 PM, wrote:
>> On 3/23/2018 2:33 PM, wrote:
>>>> Thanks!
>>>> Reviewed-by: Nagarathnam Muthusamy <>
>>> Does this look like it will address the issue you have been fighting
>>> with pids?
>> We do use IPC shared memory but it is a single large one, shared by multiple
>> levels. We are currently looking into using a similar solution based on file
>> locks.
>> When a new level is created, a file representing that level could be created in
>> a common path which could be locked by the init process of that level.
>> Parent levels could query the locking pid of that file to get the pid
>> translation
>> of the init process of the required level. Then it could open a file descriptor
>> and use the translate_pid API for further translations.
> Do you want to resend the translate_pid API with file descriptors as it
> was in the lwn article? That I will apply.

Sure Eric! We are currently implementing and testing the file locks + FD
approach, just to make sure it covers all the requirements. Will resend the
patch with FD based translate_pid API in few days.

> Eric

 \ /
  Last update: 2018-03-29 01:24    [W:0.060 / U:2.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site