[Bug 257554] POSIX shared memory: Can't list allocations within jails

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 02 Aug 2021 09:50:10 UTC

            Bug ID: 257554
           Summary: POSIX shared memory: Can't list allocations within
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: grembo@FreeBSD.org

The sysctl kern.ipc.posix_shm_list isn't marked as jail-safe, which
results in problems listing POSIX shared memory allocations from
within a jail:

    # posixshmcontrol ls
    posixshmcontrol: cannot get kern.ipc.posix_shm_list length:
    Operation not permitted

while accessing them directly works, e.g.:

    # posixshmcontrol stat /xyz
    output as expected...

See also the jails mailing list:

You are receiving this mail because:
You are the assignee for the bug.