netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* open() on sockets (sock_no_open)
@ 2007-07-14 23:04 Simon Arlott
  0 siblings, 0 replies; only message in thread
From: Simon Arlott @ 2007-07-14 23:04 UTC (permalink / raw)
  To: netdev

There are sockets in /proc/<pid>/fd/, but they can't be opened because
of this function:

/*
 *  In theory you can't get an open on this inode, but /proc provides
 *  a back door. Remember to keep it shut otherwise you'll let the
 *  creepy crawlies in.
 */
static int sock_no_open(struct inode *irrelevant, struct file *dontcare)


How would I make it possible to open existing sockets?

It's possible to duplicate access to the same socket using fork(), but I
just seem to be creating a mess when I try to make open() work because
it breaks after calling socket_close... is there a way to do this so it
works properly?

-- 
Simon Arlott

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-14 23:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-14 23:04 open() on sockets (sock_no_open) Simon Arlott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).