Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2018-02-12 Thread Davidlohr Bueso
On Thu, 21 Dec 2017, Michael Kerrisk (man-pages) wrote: Hi Michal, On 21 December 2017 at 09:02, Michal Hocko wrote: On Wed 20-12-17 17:17:46, Michael Kerrisk wrote: Hello Michal, On 20 December 2017 at 10:20, Michal Hocko wrote: > On Tue 19-12-17 17:45:40, Michael Kerrisk wrote: >> But, i

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-21 Thread Michael Kerrisk (man-pages)
Hi Michal, On 21 December 2017 at 09:02, Michal Hocko wrote: > On Wed 20-12-17 17:17:46, Michael Kerrisk wrote: >> Hello Michal, >> >> On 20 December 2017 at 10:20, Michal Hocko wrote: >> > On Tue 19-12-17 17:45:40, Michael Kerrisk wrote: >> >> But, is >> >> there a pressing reason to make the c

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-21 Thread Michal Hocko
On Wed 20-12-17 17:17:46, Michael Kerrisk wrote: > Hello Michal, > > On 20 December 2017 at 10:20, Michal Hocko wrote: > > On Tue 19-12-17 17:45:40, Michael Kerrisk wrote: > >> But, is > >> there a pressing reason to make the change? (Okay, I guess iterating > >> using *_STAT is nicer than parsin

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-20 Thread Michael Kerrisk (man-pages)
Hello Michal, On 20 December 2017 at 10:20, Michal Hocko wrote: > On Tue 19-12-17 17:45:40, Michael Kerrisk wrote: >> But, is >> there a pressing reason to make the change? (Okay, I guess iterating >> using *_STAT is nicer than parsing /proc/sysvipc/*.) > > The reporter of this issue claims that

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-20 Thread Michal Hocko
On Tue 19-12-17 17:45:40, Michael Kerrisk wrote: > Hello Michal, > > On 19 December 2017 at 10:48, Michal Hocko wrote: > > Hi, > > we have been contacted by our partner about the following permission > > discrepancy > > > > 1. Create a shared memory segment with permissions 600 with user A using

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-20 Thread Michal Hocko
On Wed 20-12-17 09:44:47, Michael Kerrisk wrote: > Hi Manfred, > > On 20 December 2017 at 09:32, Dr. Manfred Spraul > wrote: > > Hi Michal, > > > > On 12/19/2017 10:48 AM, Michal Hocko wrote: > >> > >> Hi, > >> we have been contacted by our partner about the following permission > >> discrepancy

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-20 Thread Michael Kerrisk (man-pages)
Hi Manfred, On 20 December 2017 at 09:32, Dr. Manfred Spraul wrote: > Hi Michal, > > On 12/19/2017 10:48 AM, Michal Hocko wrote: >> >> Hi, >> we have been contacted by our partner about the following permission >> discrepancy >> 1. Create a shared memory segment with permissions 600 with user A u

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-20 Thread Dr. Manfred Spraul
Hi Michal, On 12/19/2017 10:48 AM, Michal Hocko wrote: Hi, we have been contacted by our partner about the following permission discrepancy 1. Create a shared memory segment with permissions 600 with user A using shmget(key, 1024, 0600 | IPC_CREAT) 2. ipcs -m should return an output as follo

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-19 Thread Michael Kerrisk (man-pages)
Hello Michal, On 19 December 2017 at 10:48, Michal Hocko wrote: > Hi, > we have been contacted by our partner about the following permission > discrepancy > > 1. Create a shared memory segment with permissions 600 with user A using >shmget(key, 1024, 0600 | IPC_CREAT) > 2. ipcs -m should retu

shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-19 Thread Michal Hocko
Hi, we have been contacted by our partner about the following permission discrepancy 1. Create a shared memory segment with permissions 600 with user A using shmget(key, 1024, 0600 | IPC_CREAT) 2. ipcs -m should return an output as follows: -- Shared Memory Segments keyshmi