kernel modules programming: struct proc question
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Mar 16 13:47:27 PST 2004
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.
+>
+> So, my aim is to log every file opening in `/tmp' dir. I've wrote a simple
+> "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
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd at FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040316/e8169866/attachment.bin
More information about the freebsd-hackers
mailing list