git: 803d7f4ccdca - stable/13 - posixshm: Allow jails to use kern.ipc.posix_shm_list

From: Jamie Gritton <jamie_at_FreeBSD.org>
Date: Wed, 02 Mar 2022 23:09:52 UTC
The branch stable/13 has been updated by jamie:

URL: https://cgit.FreeBSD.org/src/commit/?id=803d7f4ccdca197a1b2fcb2c8ecc2e4bf18f15d0

commit 803d7f4ccdca197a1b2fcb2c8ecc2e4bf18f15d0
Author:     Jamie Gritton <jamie@FreeBSD.org>
AuthorDate: 2022-02-24 17:30:49 +0000
Commit:     Jamie Gritton <jamie@FreeBSD.org>
CommitDate: 2022-03-02 23:08:00 +0000

    posixshm: Allow jails to use kern.ipc.posix_shm_list
    
    PR:             257554
    Reported by:    grembo@
    
    (cherry picked from commit d7c4ea7d728e7480477eaedf79fac84e7d1aefde)
---
 sys/kern/uipc_shm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index 2c9cf92fe5ad..d1038766fb19 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -1948,7 +1948,7 @@ sysctl_posix_shm_list(SYSCTL_HANDLER_ARGS)
 }
 
 SYSCTL_PROC(_kern_ipc, OID_AUTO, posix_shm_list,
-    CTLFLAG_RD | CTLFLAG_MPSAFE | CTLTYPE_OPAQUE,
+    CTLFLAG_RD | CTLFLAG_PRISON | CTLFLAG_MPSAFE | CTLTYPE_OPAQUE,
     NULL, 0, sysctl_posix_shm_list, "",
     "POSIX SHM list");