git: d7c4ea7d728e - main - posixshm: Allow jails to use kern.ipc.posix_shm_list PR: 257554 Reported by: grembo@

From: Jamie Gritton <jamie_at_FreeBSD.org>
Date: Thu, 24 Feb 2022 17:32:35 UTC
The branch main has been updated by jamie:

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

commit d7c4ea7d728e7480477eaedf79fac84e7d1aefde
Author:     Jamie Gritton <jamie@FreeBSD.org>
AuthorDate: 2022-02-24 17:30:49 +0000
Commit:     Jamie Gritton <jamie@FreeBSD.org>
CommitDate: 2022-02-24 17:30:49 +0000

    posixshm: Allow jails to use kern.ipc.posix_shm_list
    PR:             257554
    Reported by:    grembo@
---
 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 04c2c65af02e..0ee2147da122 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -2066,7 +2066,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");