Date: Tue, 22 May 2007 21:41:05 -0400 From: Daniel Molina Wegener <dmw@unete.cl> To: freebsd-hackers@freebsd.org Cc: Joerg Sonnenberger <joerg@britannica.bec.de> Subject: Re: kqueue implementation Message-ID: <200705222141.06123.dmw@unete.cl> In-Reply-To: <20070522180647.GA11365@britannica.bec.de> References: <200705201831.38828.dmw@unete.cl> <23B4A664-5916-47D3-8D42-282817F6CC70@FreeBSD.org> <20070522180647.GA11365@britannica.bec.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 22 May 2007 14:06:48 Joerg Sonnenberger wrote: > On Tue, May 22, 2007 at 10:04:37AM -0700, Suleiman Souhlal wrote: > > >I mean vnode events, in the manual page I see NOTE_WRITE, > > > but I need NOTE_OPEN and NOTE_READ. Is there any chance > > > to get these kind of events? > > > > They should be easy to add.. All you would need to do for > > NOTE_OPEN would be to add a vop_open_post hook to VOP_OPEN > > that calls VFS_KNOTE_LOCKED(..., NOTE_OPEN). Similarly for > > read. > > If this is done, it should be done very carefully. There are > some non-trivial security implications by this, for example > the process hiding can be at least partly circumvented by > adding a open filter on rtld or libc.so. Why?, I can't understand the point. On Linux the inotify interface does the job. Why on FreeBSD shouldn't be applicable?. > > Joerg > > [SNIP] Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User | Standards Rocks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705222141.06123.dmw>