From owner-freebsd-hackers Sat Oct 30 18: 3:25 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by hub.freebsd.org (Postfix) with ESMTP id 892EF14C10 for ; Sat, 30 Oct 1999 18:03:21 -0700 (PDT) (envelope-from borjam@we.lc.ehu.es) Received: from sirius.we.lc.ehu.es (sirius [158.227.6.30]) by polaris.we.lc.ehu.es (8.9.1/8.9.1) with ESMTP id CAA21479 for ; Sun, 31 Oct 1999 02:03:19 +0100 (MET) From: Borja Marcos Received: (from borjam@localhost) by sirius.we.lc.ehu.es (8.9.1/8.9.1) id CAA17338 for hackers@freebsd.org; Sun, 31 Oct 1999 02:03:18 +0100 (MET) Message-Id: <199910310103.CAA17338@sirius.we.lc.ehu.es> Subject: Obtaining the filename for a vnode To: hackers@freebsd.org Date: Sun, 31 Oct 1999 02:03:18 +0100 (MET) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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