The unix-sockets tag has no usage guidance.
9
votes
1answer
122 views
Does Linux automatically clean up abstract domain sockets?
There's a great answer on StackOverflow about providing a better lock for daemons (synthesized from here) that doesn't depend on the common PID file lock mechanism for daemons. There are lots of good ...
7
votes
1answer
54 views
What happens to requests to a service that is stopped with SIGSTOP
If you run SIGSTOP against a web server, does the kernel just tell the network stack to block/sleep all connections to that socket until it is continued? It seems that the server timeout values don't ...
4
votes
1answer
303 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 ...
4
votes
0answers
77 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 ...
3
votes
0answers
211 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
143 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 ...
2
votes
1answer
55 views
How to passively capture from Unix domain sockets (AF_UNIX socket monitoring)?
TCP/IP and UDP captures can be made using tcpdump/dumpcap and produces a pcap/pcapng file which can be fed to Wireshark for further analysis. Does a similar tool exist for named Unix domain sockets? ...
2
votes
0answers
105 views
UNIX sockets vs AF_NETLINK vs Kdbus vs Binder
What are essential differences between those IPCs? Which are main use cases?
Is there some consolidated comparison table between them somewhere? Something like:
Protocol: AF_UNIX | ...
1
vote
1answer
78 views
Is it possible to establish a Socket session (between Server and Client) using shell commands ?
From what I read (only the very outline, i do not know C Language) a Socket session is established between a server and a client by calling functions for both of them in a certain order.
It starts ...
1
vote
0answers
32 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. ...
1
vote
0answers
81 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
2answers
66 views
change ksh shell path in linux
present ksh path in linux is as below
-bash-4.1$ which ksh
/bin/ksh
-bash-4.1$ uname
Linux
-bash-4.1$ uname -i
x86_64
i want to change this path to /usr/bin/ksh.
could you help me in this?
0
votes
1answer
26 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 ...
0
votes
1answer
120 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
0answers
11 views
Can i use single Gateway with multipal /2 lan card in linux 5.2
i have two interface eth0 and eth1 in same network
eth0 ip : 192.168.10.10
gateway : 192.168.10.5
eth1 IP : 192.168.10.11
can i use same gateway : 192.168.10.5 for eth1
i am able to ping only ...