How to get filename of an open file descriptor

Dmitry Morozovsky marck at rinet.ru
Mon Nov 12 15:12:48 PST 2007


On Mon, 12 Nov 2007, Yuri wrote:

Y> I looked at the patch. It retrieves file description information through
Y> 'sysctl' calls with proprietary keys.
Y> 
Y> Isn't it better architecturally to expose the same information through procfs
Y> interface? At least from the filesystem level and up standard tools like ls/cat
Y> will be able to show the the same information instead of the specialized utility.

IIRC, procfs interface (and existing procfs implementation in particular) has 
been mostly dropped due to various privilege escalation vulnerabilities existed 
in the past.

Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------


More information about the freebsd-hackers mailing list