Problem with test -r

David Laight David.Laight at ACULAB.COM
Tue Feb 14 09:29:49 UTC 2023


From: Dominique Martinet
> Sent: 13 February 2023 23:22
...
> - Reproduce under strace and provide the full strace.log:
> strace -o /tmp/strace.log bash -c '[ -r file ]; echo $?'
> strace might not want to run within the container without some extra
> privileges, it's also possible to attach your bash process from outside
> if that's easier, but if you can reproduce with the container running
> with --privileged that is probably the most straightforward.

If the strace just shows the stat (maybe fstatat) system call failing
then the next step is to get ftrace to monitor the kernel function
calls to help guess where the error comes from.
That might be tricky to arrange inside the container.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)


More information about the busybox mailing list