Skip to content

Missing Unix socket features.

Also known as Unix domain sockets.

This is required by some software. The related issues are as follows:

Current Status / Supported Features

We currently support the following Unix socket features:

  • socket, bind, accept, connect, and socketpair
  • write, read, close and (fpath)
  • getsockopt and setsockopt with support for SO_PASSCRED
  • sendmsg and recvmsg with support for SCM_RIGHTS and SCM_CREDENTIALS
  • MSG_TRUNC and MSG_CTRUNC flags
  • All of the above for both SOCK_STREAM and SOCK_DGRAM

Missing Features / To-Do

However, some features are still missing.

These include:

  • Functions
    • sendto and recvfrom (using sendmsg/recvmsg)
  • Flags
  • Options
    • SO_PEERCRED (Wayland, D-Bus)
    • SO_PEEK_OFF
    • (SO_PASSSEC)
    • (SO_PEERSEC) (D-Bus)
    • SO_ACCEPTCONN
    • SO_DOMAIN
    • SO_ERROR
    • SO_PROTOCOL
    • SO_SNDBUF (Wayland(Optional))
    • SO_TYPE
    • SO_TIMESTAMP
    • SO_TIMESTAMPNS
  • Ancillary Data
    • SCM_TIMESTAMP
    • SCM_TIMESTAMPNS
    • (SCM_SECURITY)

Notes

  • The changes for sendto and recvfrom are expected to be on the relibc side only. Most other features above will likely require changes on both the relibc and scheme sides.
  • () means the feature needs SELinux support.
  • Feature-name ([software-name]) indicates features known to be required by specific software.

References

Edited by Ibuki Omatsu