Open
Description
Won't work when trying to run build-recorder toolbox enter <container>
This was meant to test how build recorder plays out with containers, we were asked at FOSDEM about docker.
toolbx uses podman, but it's a first step.
Weird fact is that checking the same path with realpath
from a terminal yields the correct output, yet realpath(3)
fails.
Breakpoint 3, __GI___realpath (name=0x45a210 "/proc/2146/ns/user", resolved=0x0) at ./stdlib/canonicalize.c:440
440 ./stdlib/canonicalize.c: No such file or directory.
(gdb) where
#0 __GI___realpath (name=0x45a210 "/proc/2146/ns/user", resolved=0x0) at ./stdlib/canonicalize.c:440
#1 0x0000000000402492 in handle_open (pid=pid@entry=18955, pi=pi@entry=0x40b8b8, fd=6, dirfd=-100, path=0x45a210, purpose=524288) at tracer.c:314
#2 0x0000000000403154 in handle_syscall_exit (exit=0x7fffffffdbe0, pid=18955, pi=0x40b8b8, entry=0x40b8e8) at tracer.c:537
#3 tracer_main (pid=18955, pi=0x40b490, path=<optimized out>, envp=<optimized out>) at tracer.c:681
#4 0x0000000000401493 in main (argc=<optimized out>, argv=0x7fffffffddb0, envp=0x7fffffffddd0) at main.c:38