Project

General

Profile

Actions

Bug #8279

closed

socketpair(AF_UNIX, SOCK_DGRAM,...) broken after 7590

Added by Gordon Ross over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
networking
Start date:
2017-05-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

[ From ]
The fix for #7590 breaks inter-process communication when sending datagrams over a socketpair.

I’m still looking at the why, but here’s a simple program that reproduces this issue:
https://gist.github.com/pzakha/42335d26fd69d7622db12e33d2490ff0

Before this commit it would work as expected:

$ ./sockpair_dgram
parent received 'hello parent, I am child’

Now the message never makes it to the receiver:

$ ./sockpair_dgram
recvmsg failed: Connection reset by peer

Related issues

Related to illumos gate - Bug #7590: sendmsg on AF_UNIX socket fails after process drops privilegesClosed2016-11-16

Actions
Actions

Also available in: Atom PDF