Bug 1071910
| Summary: | backport: ss: unix and netlink sockets are printed in inet mode | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Alicja Kario <hkario> |
| Component: | iproute | Assignee: | Pavel Šimerda (pavlix) <psimerda> |
| Status: | CLOSED ERRATA | QA Contact: | Jaroslav Aster <jaster> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | ebenes, jaster, jorton, ksrot, psimerda, thozza |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | iproute-3.10.0-24.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 14:41:09 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1215006 | ||
| Bug Blocks: | 1039625, 1110700, 1191021, 1205796 | ||
|
Description
Alicja Kario
2014-03-03 12:52:18 UTC
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. Upstream already handles this correctly, we are going to backport it. The following commit is a candidate for fixing this issue:
commit 9db7bf15e22b6a1b8bc09c4a1e29571cbca55c94
Author: Vadim Kochan <vadim4j>
Date: Sun Jan 4 22:18:40 2015 +0200
ss: Filtering logic changing, with fixes
This patch fixes some filtering combinations issues which does not
work on the 'master' version:
$ ss -4
shows inet & unix sockets, instead of only inet sockets
$ ss -u
needs to specify 'state closed'
$ ss src unix:*X11*
needs to specify '-x' shortcut for UNIX family
$ ss -A all
shows only sockets with established states
There might some other issues which was not observed.
Also changed logic for calculating families, socket types and
states filtering. I think that this version is a little simpler
one. Now there are 2 predefined default tables which describes
the following maping:
family -> (states, dbs)
db -> (states, families)
Signed-off-by: Vadim Kochan <vadim4j>
One preceding patch is missing as well:
commit 30b669d7ac3cc233272f0f23bc6b547a298f373e
Author: Masatake YAMATO <yamato>
Date: Wed Jan 8 20:13:46 2014 +0900
ss: handle seqpacket type of unix domain socket
ss didn't distignish seqpacket type from dgram type.
With this patch ss can distignish it.
$ misc/ss -x -a | grep seq
u_seq LISTEN 0 128 /run/udev/control 10966 * 0
u_seq ESTAB 0 0 * 115103 * 115104
u_seq ESTAB 0 0 * 115104 * 115103
Signed-off-by: Masatake YAMATO <yamato>
After applying both of the patches (except hunks that wouldn't apply), output is as expected. I'm going to adapt the pair of patches so that all hunks apply.
Fixed as part of bug #1215006. # ss -ln -f inet Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port udp UNCONN 0 0 *:68 *:* udp UNCONN 0 0 *:5353 *:* udp UNCONN 0 0 *:48379 *:* udp UNCONN 0 0 *:56679 *:* tcp LISTEN 0 128 *:22 *:* Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2117.html |