Bug 257554 - POSIX shared memory: Can't list allocations within jails
Summary: POSIX shared memory: Can't list allocations within jails
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Jamie Gritton
Depends on:
Blocks: 257556
  Show dependency treegraph
Reported: 2021-08-02 09:50 UTC by Michael Gmelin
Modified: 2021-08-06 21:39 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gmelin freebsd_committer 2021-08-02 09:50:10 UTC
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: