What happened to my /proc/curproc/file?
Konstantin Belousov
kostikbel at gmail.com
Fri Sep 7 16:00:11 UTC 2012
On Fri, Sep 07, 2012 at 10:33:52AM -0400, John Baldwin wrote:
> On Tuesday, September 04, 2012 7:46:23 pm Sam Varshavchik wrote:
> > Is the dev+ino of what was exec()ed known, for another process? I might be
> > able to get the client voluntarily submit its argv[0], then independently
> > have the server validate it by stat()ing that, and comparing the result
> > against what the kernel says the process's inode is.
>
> It's known in the kernel certainly. I don't think we currently have any way
> of exporting that info to userland however.
It is, as KF_FD_TYPE_TEXT by sysctl kern.proc.filedesc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120907/8cf2ee28/attachment.pgp
More information about the freebsd-hackers
mailing list