tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: vnode_to_path()
> It's not just $ORIGIN that can make use of it. Imagine for a moment
> getting a backtrace automatically on a segfault. It's a lot easier
> and more reliable if you get access to the debug sections. Those are
> normally not mapped though, so you need access to the path.
Actually, you don't. You need read access to the executable; whether
you get that access via a path or not is irrelevant.
/proc/curproc/file can address this; so could some kind of
get_RO_fd_on_my_executable().
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index