Open file descriptor within a kext
Open file descriptor within a kext
- Subject: Open file descriptor within a kext
- From: "XXXXXXX XXXXXXXX" <email@hidden>
- Date: Fri, 23 Apr 2010 16:09:56 +0200
Hi,
could anyone please tell me, if there is a possibility to open a file descriptor (provided a vnode) from within a kext?
What I want to do is intercept file accesses (via kauth) and provide userspace with an open filedescriptor to the intercepted file (for content checks).
I tried to use a filepath (from vn_getpath()) for intercepted files but i realised soon that there are lots of limitation with filepaths in conjunction with hard links, race conditions, etc.
I would be very happy if someone could give me a hint how to handle file access control via kauth in a proper way.
Thx in advance and best regards,
Luciano
--
GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern
E-Mail, SMS & mehr! Kostenlos: http://portal.gmx.net/de/go/atfreemail
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden