OpenVZ Forum


Home » Mailing lists » Devel » [RFC PATCH 0/2] net: connect to UNIX sockets from specified root
Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root [message #47441 is a reply to message #47440] Fri, 10 August 2012 18:37 Go to previous messageGo to previous message
Alan Cox is currently offline  Alan Cox
Messages: 48
Registered: May 2006
Member
> > AF_UNIX between roots raises some interesting semantic questions when
> > you begin passing file descriptors down them as well.
>
> Why is that? A file descriptor carries all that information with it...

Things like fchdir(). It's not a machine breaking problem but for
containers as opposed to chroot we need to be clear what the expected
isolation sematics are.

Agreed on open() for sockets.. the lack of open is a Berklix derived
pecularity of the interface. It would equally be useful to be able to
open "/dev/socket/ipv4/1.2.3.4/1135" and the like for scripts and stuff

That needs VFS changes however so you can pass the remainder of a path to
a device node. It also lets you do a lot of other sane stuff like

open /dev/ttyS0/9600/8n1
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH v4 7/9] IPC: message queue receive cleanup
Next Topic: Running windows over OpenVZ
Goto Forum:
  


Current Time: Mon Nov 18 19:53:31 GMT 2024

Total time taken to generate the page: 0.02873 seconds