Date: Sun, 31 Oct 1999 02:03:18 +0100 (MET) From: Borja Marcos <borjam@we.lc.ehu.es> To: hackers@freebsd.org Subject: Obtaining the filename for a vnode Message-ID: <199910310103.CAA17338@sirius.we.lc.ehu.es>
next in thread | raw e-mail | index | archive | help
Hi, I'm modifying execve() so that it will log attempts to execute a program from a filesystem mounted as noexec. I think it is interesting to log the UID, the filename of the program which called execve() and the program it tried to executed. I see (kern_exec.c) I have the vnode of the process text, but, how can I obtain the filename for the vnode? Is there a routine in the kernel to do that? Thanks, Borja. -- *********************************************************************** Borja Marcos * Internet: borjam@we.lc.ehu.es Alangoeta, 11 1 izq * borjamar@sarenet.es 48990 - Algorta (Vizcaya) * borjam@well.com SPAIN * CompuServe: 100015,3502 *********************************************************************** --- FreeBSD, turning PCs into workstations To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910310103.CAA17338>