Rainbow and P_NET

Bert Freudenberg bert at freudenbergs.de
Mon Mar 17 17:55:51 EDT 2008


On Mar 17, 2008, at 18:10 , Michael Stone wrote:

> Bert,
>
> It's still in early prototyping so there's substantial flexibility to
> adapt it to do what we need.
>
> At present, sys_disablenetwork() disables calls to socket(),  
> connect(),
> bind(), and sendmsg() for address families other than AF_UNIX. (I.e.  
> all
> unix sockets should still work and everything else should return  
> EACCES).
>
> I'm _think_ I could get it to allow AF_INET and AF_INET6 connections  
> to
> localhost without much trouble if this would be valuable to folks.  
> (As I
> understand, the primary use case is to write local networking code  
> that
> will function identically on both Windows and *nix).


Well, it makes porting older code a lot simpler. And writing cross- 
platform code, too, indeed.

- Bert -




More information about the Devel mailing list