Re: POSIX shared memory and dying jails

2021-08-02 Thread Michael Gmelin
On Fri, 25 Jun 2021 20:18:39 -0700 James Gritton wrote: > On 2021-06-25 09:58, Michael Gmelin wrote: > > Another problem caused by the lack of jail ownership is that access > > semantics are a bit strange. E.g., a jail based on / can easily list > > (and remove) all memory allocations in the s

Re: POSIX shared memory and dying jails

2021-06-26 Thread James Gritton
On 2021-06-26 08:13, Mark Johnston wrote: On Fri, Jun 25, 2021 at 08:08:31PM -0700, James Gritton wrote: On 2021-06-25 09:58, Michael Gmelin wrote: > On Fri, 25 Jun 2021 09:19:05 -0700 > James Gritton wrote: > >> On 2021-06-25 07:41, Michael Gmelin wrote: >> > It seems like non-anonymous POSIX

Re: POSIX shared memory and dying jails

2021-06-26 Thread Mark Johnston
On Fri, Jun 25, 2021 at 08:08:31PM -0700, James Gritton wrote: > On 2021-06-25 09:58, Michael Gmelin wrote: > > On Fri, 25 Jun 2021 09:19:05 -0700 > > James Gritton wrote: > > > >> On 2021-06-25 07:41, Michael Gmelin wrote: > >> > It seems like non-anonymous POSIX shared memory is not freed > >>

Re: POSIX shared memory and dying jails

2021-06-25 Thread James Gritton
On 2021-06-25 09:58, Michael Gmelin wrote: Another problem caused by the lack of jail ownership is that access semantics are a bit strange. E.g., a jail based on / can easily list (and remove) all memory allocations in the system, while for other jails it depends. They can stat their own alloca

Re: POSIX shared memory and dying jails

2021-06-25 Thread James Gritton
On 2021-06-25 09:58, Michael Gmelin wrote: On Fri, 25 Jun 2021 09:19:05 -0700 James Gritton wrote: On 2021-06-25 07:41, Michael Gmelin wrote: > It seems like non-anonymous POSIX shared memory is not freed > automatically when a jail is removed and keeps it in a dying state, > until the shared

Re: POSIX shared memory and dying jails

2021-06-25 Thread Michael Gmelin
On Fri, 25 Jun 2021 09:19:05 -0700 James Gritton wrote: > On 2021-06-25 07:41, Michael Gmelin wrote: > > It seems like non-anonymous POSIX shared memory is not freed > > automatically when a jail is removed and keeps it in a dying state, > > until the shared memory segment is deleted manually.

Re: POSIX shared memory and dying jails

2021-06-25 Thread James Gritton
On 2021-06-25 07:41, Michael Gmelin wrote: It seems like non-anonymous POSIX shared memory is not freed automatically when a jail is removed and keeps it in a dying state, until the shared memory segment is deleted manually. See below for the most basic example: [root@jailhost ~]# jail -c p

POSIX shared memory and dying jails

2021-06-25 Thread Michael Gmelin
Hi, It seems like non-anonymous POSIX shared memory is not freed automatically when a jail is removed and keeps it in a dying state, until the shared memory segment is deleted manually. See below for the most basic example: [root@jailhost ~]# jail -c path=/ command=/bin/sh # posixshmcont