Thread (20 messages) flat view 20 messages, 5 authors, 2012-08-14

Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2012-08-10 18:44:16
Also in: linux-nfs, lkml

On 08/10/2012 11:40 AM, Alan Cox wrote:
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
Well, supporting device node subpaths would be nice, but I don't think
that that is a requirement either for being able to open() a socket (as
a Linux extension) nor for supporting something like your above
/dev/socket/... since that could be done with a filesystem rather than
just a device node.

	-hpa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help