On 2025-06-28, Taksh <takshfor...@gmail.com> wrote: > --000000000000e31db00638a100b2 > Content-Type: text/plain; charset="UTF-8" > > Hello, > So I am working on a debugger which supports many OS/Arch platforms. For > testing I am using OpenBSD 7.7 with x86_64. I wanted to know are if there > any ways in which I can fetch process maps when I am not a root user. I can > use sysctl only if I am a root user. I know the secure-level is set to 1. > > I tried procmap but that shows Operation not permitted even as root user > and can't really use /proc/pid/map as procfs isn't mounted there.
IIRC you need to set kern.allowkmem=1 while securelevel is still at 0 (i.e. during boot) for procmap - and to have root while running it. -- Please keep replies on the mailing list.