Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2011 10:46:01 -0800
From:      Julian Elischer <julian@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Communication between kernel and userspace via local socket
Message-ID:  <4EC55669.2060908@freebsd.org>
In-Reply-To: <20111116085508.GF36205@hoeg.nl>
References:  <201111152218.41031.gelraen.ua@gmail.com> <20111116085508.GF36205@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/16/11 12:55 AM, Ed Schouten wrote:
> * Maxim Ignatenko<gelraen.ua@gmail.com>, 20111115 21:18:
>> I'm currently inventing the wheel^W^W^Wwriting a firewall from scratch and
>> looking for most convenient way to establish communication between userspace
>> processes and kernel part. Communication pattern best fits to listening
>> PF_LOCAL socket opened from kernel and userspace processes connecting to it.
> What's wrong with a character device?

you can't easily have a different character device depending on which 
jail you are in..
(well, you can but it gets tricky).. see the problem with /dev/pflog 
and vimages.


Maxim, look at the usage of sockets with netgraph ng_socket node..  also
divert sockets.





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