From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 16 13:47:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 885EF16A4CE for ; Tue, 16 Mar 2004 13:47:27 -0800 (PST) Received: from darkness.comp.waw.pl (unknown [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id C700143D31 for ; Tue, 16 Mar 2004 13:47:26 -0800 (PST) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 02CB4ACABE; Tue, 16 Mar 2004 22:47:24 +0100 (CET) Date: Tue, 16 Mar 2004 22:47:24 +0100 From: Pawel Jakub Dawidek To: Roman Bogorodskiy Message-ID: <20040316214724.GK8930@darkness.comp.waw.pl> References: <20040316163956.GD638@lame.novel.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GmiNL4+5WUWrod5m" Content-Disposition: inline In-Reply-To: <20040316163956.GD638@lame.novel.ru> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-hackers@freebsd.org Subject: Re: kernel modules programming: struct proc question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 21:47:27 -0000 --GmiNL4+5WUWrod5m Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 16, 2004 at 07:39:56PM +0300, Roman Bogorodskiy wrote: +> I hope it's a right place for kernel module programming related +> questions, in another case I'd be glad if you point me to the right +> maillist.=20 +>=20 +> So, my aim is to log every file opening in `/tmp' dir. I've wrote a simp= le +> "syscall" module which replaces open(2) syscall. My new open(2) looks +> like this: Keep in mind, that there is no need to open file by giving its full path. For example: % cd /tmp % cat ./foo or: % ln -s /tmp/foo ~/bar % cat bar --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --GmiNL4+5WUWrod5m Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAV3XsForvXbEpPzQRAnAEAKDfa6mYViPYi44EwMSBn02cXw1iMwCghNfn FlXyyqKxTrk4Tir/wLdZreQ= =xIEw -----END PGP SIGNATURE----- --GmiNL4+5WUWrod5m--