HomeFreeBSD

jail: Remove a prison's shared memory when it dies

Description

jail: Remove a prison's shared memory when it dies

Add shm_remove_prison(), that removes all POSIX shared memory segments
belonging to a prison. Call it from prison_cleanup() so a prison
won't be stuck in a dying state due to the resources still held.

PR: 257555
Reported by: grembo

Details

Provenance
jamieAuthored on Jun 29 2022, 5:47 PM
Parents
rGa9f7455c38c1: jail: add prison_cleanup() to release resources held by a dying jail
Branches
Unknown
Tags
Unknown