On Tue, Jul 01, 2025 at 10:29:24AM -0000, Stuart Henderson wrote:
> On 2025-07-01, Taksh <takshfor...@gmail.com> wrote:
> > On 2025-06-30, Stuart Henderson wrote:
> >> 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.
> >
> > Thanks for the response, Any ways which I can use which dont want me
> > to be root? Being a root user definitely helps me to fetch maps using
> > sysctl but I wanted to know if there is some way a non root user can
> > fetch maps.
> 
> If there is I am pretty sure it will be considered a bug.
 
Why do you need this information in the frist place? At least gdb does not
need any of this.

If this is something that a debugger needs and it simplifies some of the
interaction it would be sensible to extend the ptrace API to fetch this
data. From my understanding ptrace will give you this data right now by
looking at some ld.so state data (e.g. where which library was loaded).

-- 
:wq Claudio

Reply via email to