The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
30 views

Find who is connected to a Unix domain socket (Linux) [duplicate]

I have a Unix domain socket (for example /var/run/mysqld/mysqld.sock). I know there is open connection(s) to this socket thanks to lsof -U or ss -xa but I cannot find which process is connected to it. ...
4
votes
0answers
54 views

What happens with unix stream ancillary data on partial reads

So I've read lots of information on unix-stream ancillary data, but one thing missing from all the documentation is what is supposed to happen when there is a partial read? Suppose I'm receiving the ...
1
vote
0answers
11 views

can I delete abstract socket path? [migrated]

I created a abstract socket. #define SOCKET_PATH @/tmp/xyz /*in server code of socket_server.c*/ int sockfd = -1; int len; struct sockaddr_un address; int result; sockfd = socket(AF_UNIX, ...
0
votes
0answers
18 views

Connect with D-Bus in a network namespace

I am using network namespaces such that I can capture network traffic of a single process. The namespace is connected through the "host" via a veth pair and has network connectivity through NAT. So ...
0
votes
1answer
25 views

What is a typical life cycle of a Unix Datagram Socket?

This is strictly in the context of Unix Datagram Sockets: family = AF_UNIX/AF_LOCAL type = SOCK_DGRAM Does the following look correct for a scenario where a client sends message to server ? Server ...
0
votes
1answer
15 views

Does the command listen apply to Unix Datagram Sockets?

Unix Datagram Sockets: family = AF_UNIX/AF_LOCAL type = SOCK_DGRAM If I want to start a server for this type of socket, do I need to mark it as listening by calling 'listen' ? I was under the ...
3
votes
0answers
45 views

What is the meaning of the contents of /proc/net/unix?

On my Android device there is the file called /proc/net/unix who's content does not conform to that of any standard linux distribution (which show the unix domain sockets.) First few lines: Num ...
2
votes
1answer
23 views

How to report receive queue size for AF_UNIX sockets

netstat -a reports Recv-Q (amount of unread data pending for a reading application) for AF_INET sockets, but not AF_UNIX sockets (at least not for SOCK_DGRAM). Does anybody know a way to obtain this ...
4
votes
1answer
52 views

Why is there AF_NETLINK? Is AF_UNIX not enough?

As far as I understand, AF_NETLINK socket protocol is for communicating between the kernel and userspace and AF_UNIX is for communication between two userspace processes. Why does Linux need a ...