Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2020 18:11:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 248184] readlink("/proc/curproc/file" returns random results
Message-ID:  <bug-248184-227-VJy5oGvulF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-248184-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-248184-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248184

--- Comment #1 from Conrad Meyer <cem@freebsd.org> ---
The canonical way to do this in FreeBSD is making use of elf_aux_info(3) with
AT_EXECPATH.  The information is copied to userspace in the program image
during activation, but is not tracked by the kernel afterwards.

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

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248184-227-VJy5oGvulF>