lsns: tolerate lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failing with ENOSYS
authorMasatake YAMATO <yamato@redhat.com>
Sat, 13 Apr 2024 16:40:14 +0000 (01:40 +0900)
committerChris Hofstaedtler <zeha@debian.org>
Sat, 27 Apr 2024 12:23:31 +0000 (14:23 +0200)
commitcd35aa68c3773499ed98e117c5986fc9150ffb7b
treed2d2a57c0c2187904328d1b4ba77a1c74069e737
parentead6f38155f0fbb92559ae3a9de315a800f459e5
lsns: tolerate lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failing with ENOSYS

With the original code, "lsns/filedesc" test case failed on
"build (qemu-user, s390x)" and "build (qemu-user, riscv64)".

On the platforms, lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failed
with ENOSYS. The error stoped the iteration for gathering
information from /proc/[0-9]+. As a result, lsns printed
nothing. We don't expect this behavior.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit f2a8b20d9c63f771d1fddd639ea1ec3fe034dc6d)

Gbp-Pq: Topic upstream
Gbp-Pq: Name lsns-tolerate-lsns_ioctl-fd-NS_GET_-PARENT-USERNS-failing.patch
sys-utils/lsns.c