netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iproute: ss truncates abstract unix domain socket embedding null
@ 2016-10-16 20:43 Isaac Boukris
  2016-10-18 18:46 ` Isaac Boukris
  0 siblings, 1 reply; 6+ messages in thread
From: Isaac Boukris @ 2016-10-16 20:43 UTC (permalink / raw)
  To: netdev

Hello,

The unix(7) man page says that null have no special meaning in
abstract unix domain socket address (the length is specified
therefore).

However, when such name (embedding null) is used, ss (and netstat)
will only show up to the first null occurrence (second technically, if
we count the null prefix).
e.g. the name "\0/tmp/fo\0.sock" is displayed as: "@/tmp/fo" (whilst
strace tool shows it as: sun_path=@"/tmp/fo\0.sock").

Would it be more useful if it printed the whole name and escaped the null?
If so, would '\0' be ok for escaping the null?

Thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-29 19:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-16 20:43 iproute: ss truncates abstract unix domain socket embedding null Isaac Boukris
2016-10-18 18:46 ` Isaac Boukris
2016-10-26 17:15   ` Stephen Hemminger
2016-10-26 18:49     ` Isaac Boukris
2016-10-26 22:22       ` Stephen Hemminger
2016-10-29 19:35         ` Isaac Boukris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).