is a data communications endpoint for exchanging data between processes executing within the same host operating system.

learn more… | top users | synonyms

2
votes
1answer
150 views

Is there a system call to bind a file descriptor directly into another?

A read() & write() loop would probably be as good as what I'm looking for, but nevertheless is anything like that around or is it impossible because of an obstacle I didn't envisage ? I'm curious
1
vote
1answer
57 views

Udev rule setting up SocketCAN socket only works correctly only when run manually

I want to start slcand (the userspace daemon for the serial line CAN interface driver) when my Lawicel CanUSB dongle is plugged in. I followed Pascal Walter's step-by-step guide and all seems to work (...
1
vote
1answer
44 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 ...
1
vote
1answer
224 views

/private/var socket not created with postfix/dovecot sasl

I'm currently running into a problem I have with my email server. I try to setup Postfix and Dovecot with SASL authentication but I get the following error when I connect with telnet (port 25) to the ...
1
vote
1answer
29 views

How to apply a parameter to packet so TC can prioritize\classify it

I want to add a parameter to the packet so that I can later let TC (HTB in specific) prioritize my packet (based on filtering that parameter). I thought about filtering by socket but as I understand ...
1
vote
1answer
166 views

Communication to device is lost when network starts on boot up?

I have an application that opens a socket on port 4444 to a device (/dev/linkToDevice). The "linkToDevice" is a link to ttyUSB0. The application is a c++ program of which is now a daemon and runs at ...
1
vote
1answer
481 views

How to limit all tcp traffic to the network interface the session was initiated on?

I have an embedded linux system with two network interfaces (lan0, wlan0) that are configured to the same subnet. A server on this system accepts tcp connections on both interfaces. How I can assure ...
0
votes
1answer
31 views

Server port doenst go back to listen and is in closed_wait state , because of starting an daemon application from client

Below is the basic client and server code . While iam trying to start an appliaction(which has to keep running in the machine once we send a msg to server) during connect call. using system(/bin/...
0
votes
1answer
445 views

Finding out the number of dropped packets in raw sockets

I am developing a program that sniffs network packets using a raw socket (AF_PACKET, SOCK_RAW) and processes them in some way. I am not sure whether my program runs fast enough and succeeds to ...
0
votes
1answer
336 views

Archlinux ARM Apache server fails to start

I am currently setting up an Apache web server on my Pi running on Archlinux ARM. After installing and making the first small configurations I have tested it and it works. Then I stop the server and ...
0
votes
1answer
124 views

A script to identify whether a file descriptor has gone bad

Problem : I have a server program running which connects to a remote program using TCP sockets. There many of them (say 20). My problem is one of the socket descriptor has gone bad and has recieved ...
-1
votes
1answer
18 views

Need to write an automated web navigator with “click” and “retrieve” capabilities

In our company, several clients provide the detailed information information that we need in a web site. The amount of time that our employees spend navigating the remote website is simply ridiculous, ...
5
votes
0answers
547 views

OEL6 Slow boot && Millions of socket files in /tmp/orbit-gdm

Background on question Lately I've been having some trouble with slow booting on the servers, sometimes over 2 hours to boot stuck on "Enabling Local Filesystem Quotas:" After searching I managed to ...
3
votes
0answers
113 views

Sharing unix sockets across unprivileged lxcontainers

I have two unprivileged containers and I'd like to share a unix socket between them. Each container has its own user on the host, complete with separate subuid and subguid mappings. I've tried ...
3
votes
0answers
13 views

Limit access/transmit rights on NIC to a single user application

I currently have a RT patched linux machine and I need to have full and undelayed access to my Wired interface card. I am running a realtime non-preemtable user application which sends a couple of ...
3
votes
0answers
75 views

Read but not write access to a socket on Linux, what can one do with that?

On a server installation, I found sockets writable by group, but only readable by others. I assume that the latter has no effect, as my understanding was that write access is needed to be able to work ...
3
votes
0answers
233 views

Scripted write-then-read from Unix domain socket using socat

I have a simple server listening on a Unix domain socket (on a CentOS box in case that's important). When I send the command "DATE" to the socket it writes back a welcome message and then "APRIL 15 ...
2
votes
0answers
120 views

Netlink access inside a network namespace

I'm trying set up an IPsec gateway (strongSwan) on a Raspberry Pi 2. The Pi was already providing a number of services on the LAN using a private IP address. My initial attempt to turn it into an ...
2
votes
0answers
49 views

how to list all the epoll requests in linux

I used to use netstat for displaying all listening sockets. How can we list epoll requests on the sockets? Or is there anyway to dislay epoll requests using netstat?
2
votes
0answers
247 views

What does an inode for a socket contain?

I read somewhere that the inode for a TCP socket would contain the buffer space. Is that true, and if so, does it mean that the inode contains a memory address for the buffer space used by the socket,...
2
votes
0answers
47 views

Placing OpenSSH control socket in /run

OpenSSH has a feature that allows you to multiplex connections over a controlsocket. It is generally accepted that these control sockets should not reside in a common area, due to the security issues ...
2
votes
0answers
208 views

Emulate console by sending data on one UDP port, and receive text from another

Note: I also posted this question on SuperUser, because I'm not sure where it belongs I'm trying to establish a "console-like" connection with a National Instruments cRIO-FRC. It broadcasts its ...
2
votes
0answers
701 views

X11 bad access at first try but working on successive tries

I use the following setup to forward X11 output from my local machine to the server. I will outline the setup: X11 server and the client are on the same local machine. The X11 server runs on my ...
2
votes
0answers
93 views

Last data traffic time for a TCP socket

Is it possible, to find out when was the last time there was any traffic on an opened TCP socket? Keepalive and timeout timers are based on this statistic, so I guess it has to be stored somewhere. ...
2
votes
0answers
499 views

Does epoll give available bytes to read or write, and threshold feature?

kqueue gives available bytes to send or receive if file descriptior (such as socket) gets signal. and, kqueue gives threshold feature, for example, it does not signal until sufficient bytes are ...
1
vote
0answers
13 views

strace for troubleshooting inter process communication

I have output captured by following command: strace -f -e trace=process,socketpair,open,close,dup,dup2,read,write -o rsync.log rsync -avcz --progress src/ dst/ it is a bit long so I've uploaded it ...
1
vote
0answers
16 views

Several TCP Window Scale values depending on interface?

Is it possible that TCP Window Scale value set by default on a socket (not raw) depends on the interface used? Where are these values stored?
1
vote
0answers
23 views

Implications of increasing igmp_max_memberships

I am writing an application that will subscribe to 150+ multicast groups. It appears the linux default number of multicast subscriptions is 20 which can be increased via sysctl -w net.ipv4....
1
vote
0answers
51 views

What does the “ss -s” result “Total:” value represent? How to get details on each of them?

I am trying to understand what the ss -s result line Total: value represents, along with how this number is related to the other numbers. Note, the following values are equivalent: ss -s Total: == ...
1
vote
0answers
290 views

How to know file name of sockets or pipes in /proc/[pid]/fd

In Android, #ls -l 15843/fd gives following output, lrwx------ u0_a179 u0_a179 2015-05-28 11:58 90 -> socket:[193728] lrwx------ u0_a179 u0_a179 2015-05-28 11:58 91 -> ...
1
vote
0answers
143 views

Which Privileges Should Assign For Create Raw Sockets

I want to run an ICMP command to ping an IP Adress at Java: InetAddress.getByAddress("XXX.XXX.XXX.XXX".getBytes()).isReachable(1000); However there is a security restriction that: Normal users are ...
1
vote
0answers
127 views

Why was n't kqueue socket polling mechanism not implemented in Linux?

Linux has epoll for socket polling mechanism. kqueue seems to be better than epoll. Why did linux went with epoll rather than kqueue? I read about libkqueue. But that is implemented in user space and ...
1
vote
0answers
248 views

closing socket after forcing terminal close

I'm running Bluetooth socket server, this server is listening to incoming connection. but I forced the terminal close ctrl + Z . after that the server is not listeing any more and show me the output ...
1
vote
0answers
143 views

Unable to start apache

I'm running CentOS7 in virtualbox on a mac (osx 10.9.3). Ultimately, I want to access the website on my Guest VM from my Host. I can Ping and SSH to VM but I can't access the webpage when entering ...
1
vote
0answers
404 views

Which socket is gnome-shell reading from continuously?

strace shows that the GNOME shell is continuously trying to read from a socket, which is often not available (or doesn't contain any data to read from): strace -p gnome-shell-pid -e trace=recvfrom ...
1
vote
0answers
2k views

Symbolic link to a socket

From a security point of view, is it safe to create a symbolic link to a socket file? The following bits of context refer to the deployment of a web application on a shared hosting service. $ ls -al ~...
0
votes
0answers
20 views

Ensure that file socket is already opened

I'd like to open a simple file socket that can run in background like: nc -l -k -m 10 -U my_socket -c cat & so other processes can connect into it with nc -U my_socket -c read. After this ...
0
votes
0answers
19 views

PAM: make dbus listen to some address

I'm new with PAM and have some questions about it. Is possible to make PAM configure dbus, and make dbus listen to some address?
0
votes
0answers
73 views

espeak, alsa Unknown PCM

I have a Debian Wheezy and I connected to my linux a USB Dac. I use every time a MPD server (and that work) Now, I would like to use espeak with pyttsx But when I start my script (It worked and my ...
0
votes
0answers
35 views

Connection refused, but only on one specific port

I have two service daemons. One responds; the other does not. The command netstat -pln returns, among others, Proto Recv-Q Send-Q Local Address Foreign Address State PID/...
0
votes
0answers
49 views

What kinds of IPC are used in ssh port forwarding?

SSH local forwarding is specified by: -L [bind_address:]port:host:hostport on the local host, a process called P1 attaches to port, so that P1 and the ssh client SC can communicate. What type of ...
0
votes
0answers
59 views

How to view source service(Process Name), when connection is established

Imagine there are 3 servers server1 has Haproxy, server2 has apache and server3 has MySQL. Deployed an application in server2. Client can send the request via Haproxy to server2. Apache listens on the ...
0
votes
0answers
267 views

linux + what are the messages bad tty under /var/log/messages file

under /var/log/messages I see the following messages "bad tty" what the meaning of these messages? second is it caused because some application that called - owstd ? as we can see from the log? ...
0
votes
0answers
200 views

Stopping syslogd also closes /dev/log UNIX domain socket

I am working on a project and from some testing I found out that stopping syslogd daemon also closes /dev/log socket. Is there some other way so that even if syslogd is down, /dev/log socket still ...