Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2007 20:06:48 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: kqueue implementation
Message-ID:  <20070522180647.GA11365@britannica.bec.de>
In-Reply-To: <23B4A664-5916-47D3-8D42-282817F6CC70@FreeBSD.org>
References:  <200705201831.38828.dmw@unete.cl> <20070521075757.GG4602@funkthat.com> <200705210948.36033.dmw@unete.cl> <23B4A664-5916-47D3-8D42-282817F6CC70@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Joerg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070522180647.GA11365>