Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [unix-sockets]

The tag has no usage guidance.

0
votes
2answers
45 views

Can one processes have a descriptor that is non-blocking while another process have a descriptor referencing the same file/socket that is blocking?

I am more interested in sockets than regular files, but basically I want to know whether one process can "see" a socket as blocking where another process can see it as non-blocking. I am guessing yes,...
1
vote
1answer
49 views

Read GNU screen session without attaching to it

I use GNU screen mostly to run commands that become non-interactive after some initial input. I do not like navigating output in screen sessions, I feel it is a bit buggy. Is there a way to access ...
1
vote
1answer
1k views

Find out details of a socket by the socket's path name?

I ran an strace on a client application failure and got something like this: socket(PF_LOCAL, SOCK_SEQPACKET|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3 setsockopt(3, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0 ...
1
vote
1answer
527 views

Where to put socket so PrivateTmp can be true

I have a C++ program which must communicate with other services (including httpd), and does so via a socket in /tmp With the advent of systemd and the PrivateTmp=true setting, processes like httpd ...
0
votes
1answer
116 views

syslog-ng modification issue for unix socket

I am having issue researching the right way to go about a problem. The problem is the syslog-ng file in the salt master server at the moment only enforces unix-stream as follows: source s_sys { ...
0
votes
1answer
577 views

sudo netstat -antp not showing PID

i am testing stuff with sockets and i encountered that strange case : i coded i very simple tcp server in c, i made it block after accept(), just to see what happen when accepting multiple connection ...
2
votes
0answers
554 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
0answers
112 views

Total socket count steadily increasing, tcp/udp sockets steady. Why?

I have a server (Ubuntu 16.04.5) running sockets.io and a few other things. This server is running about 5 or 6 different python apps and sockets.io. When the server reaches this level of ~6144 ...
1
vote
0answers
159 views

Is there any rsync option to avoid errors on sockets in the source

I'm trying to back up a user's files on a remote machine, but I can't find any rsync option to avoid errors ... ++ rsync -a --no-D --delete --stats '--exclude=.cache/*' --password-file=a_secret ...
1
vote
0answers
61 views

“Multiplex uid mismatch” when trying to get info from Unix socket

I created a unix socket in order to enable SSH multiplexing for my SSH tunnel. I'm new to unix sockets so I wanted to see what this pseudo-file in my filesystem contains. I've tried using: nc -U ...
1
vote
0answers
107 views

same netlink socket for inter-user space process communication and user space-kernel space communication?

Is it possible to use the same netlink socket for kernel - user space process and witin user space process communication??
1
vote
0answers
525 views

Communication between user space and kernel space - AF_netlink + AF_Unix

I am new to IPC and am trying to implement a common buffer between kernel and user space processes. My design will be in such a way, I will have a library(in user space) where my client socket tries ...
1
vote
0answers
164 views

How to check dropped packets per process/socket when socket buffer is overflow for UNIX domain sockets?

How to check dropped packets per process/socket when message drops are seen when socket buffer is full for unix domain sockets. netstat and ss tools are giving all statistics based on connection type. ...
0
votes
0answers
279 views

socat - UNIX-LISTEN and TCP-LISTEN in one command

Is it possible, to open a tcp port and a socket with one process/command? socat UNIX-LISTEN:/var/run/mysqld/mysqld.sock,fork,user=mysql,group=mysql,mode=777 TCP:123.123.123.1:3306 combined with: ...
0
votes
0answers
56 views

Listen to specific event types via process netlink connector

I'm authoring a user app that would listen to process events via the process netlink connector. While listening on the socket, my process spends a lot of time doing busy work because of lots of ...
0
votes
0answers
96 views

Shared buffer for user space processes

Currently Im implementing a shared buffer between user space processes. For that, I have a library which opens a client UNIX socket for the client processes to dump events into the server socket. My ...
0
votes
0answers
352 views

/var/log mounted as a tmpfs failing to get umounted on FreeBSD

I have /var/log mounted as a tmpfs, where log files are synced periodically to the disk by the cron on FreeBSD. The process is done by the rc script. I am mounting it like: mount -t tmpfs -o nosuid,...
0
votes
0answers
24 views

Opening daemon specific ports

How can we set firewall inbound rules for specific daemon if it is using random port from range of Ephemeral ports? There is Custom Rule wizard available in Windows. Does LINUX and UNIX has similar ...