thanks @qkiel, that helped with binding the socket inside the container. however, if I try to use it the connection fails.
trying to trace it inside container with strace socat - UNIX-CONNECT:/mnt/aesm.socket
:
...
socket(AF_UNIX, SOCK_STREAM, 0) = 5
recvfrom(3, 0x7ffe88cd5180, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
recvfrom(3, 0x7ffe88cd5180, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(3, 0x7ffe88cd5090, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
connect(5, {sa_family=AF_UNIX, sun_path="/mnt/aesm.socket"}, 18) = 0
recvfrom(3, 0x7ffe88cd5090, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
getsockname(5, {sa_family=AF_UNIX}, [112 => 2]) = 0
recvfrom(3, 0x7ffe88cd5540, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
pselect6(6, [0 5], [1 5], [], NULL, NULL) = 3 (in [5], out [1 5])
recvfrom(3, 0x7ffe88cd5540, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(3, 0x7ffe88cd4fd0, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
read(5, "", 8192) = 0
recvfrom(3, 0x7ffe88cd4fd0, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(3, 0x7ffe88cd5540, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
pselect6(1, [0], [], [], {tv_sec=0, tv_nsec=500000000}, NULL) = 0 (Timeout)
recvfrom(3, 0x7ffe88cd5540, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
shutdown(5, SHUT_RDWR) = 0
recvfrom(3, 0x7ffe88cd5780, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
exit_group(0) = ?
+++ exited with 0 +++
and on the host with strace socat - UNIX-CONNECT:/var/run/aesmd/aesm.socket
it works fine:
...
socket(AF_UNIX, SOCK_STREAM, 0) = 5
recvfrom(3, 0x7ffca514fb10, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
recvfrom(3, 0x7ffca514fb10, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(3, 0x7ffca514fa20, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
connect(5, {sa_family=AF_UNIX, sun_path="/var/run/aesmd/aesm.socket"}, 28) = 0
recvfrom(3, 0x7ffca514fa20, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
getsockname(5, {sa_family=AF_UNIX}, [112 => 2]) = 0
recvfrom(3, 0x7ffca514fed0, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
pselect6(6, [0 5], [1 5], [], NULL, NULL) = 2 (out [1 5])
recvfrom(3, 0x7ffca514fed0, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(3, 0x7ffca514fed0, 519, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
pselect6(6, [0 5], [], [], NULL, NULL^C) = ? ERESTARTNOHAND (To be restarted if no handler)
... and here it waits for the input
strace: Process 6618 detached
it seems an issue lies with the proxy device. I tried different configurations of UID/GID, but no success.
is there a way I could debug the proxy device maybe?