vn_fullpath()

Igor Shmukler shmukler at mail.ru
Sun Feb 20 08:22:17 PST 2005


Hello,

I was wondering if anyone has figured a way to make vn_fullpath() reliable?

Perhaps there is another approach to attacking this problem. Here is what I need
to accomplish:

I need to be able to determine dynamic linker, shared libraries or executable
name for a specific process.

The alternative to vn_fullpath() is intercepting calls, however I need an
interpreter name in case of a script.

The problem with name cache is:
a. name has to be in the cache
b. hardlinks cause vnodes with multiple names

This must be a common problem so I was curious whether there is a solution.

If anyone has any experience making this work, please advise.

Thank you,

Igor.


More information about the freebsd-hackers mailing list