tst-pidfd.c: UNSUPPORTED if we get EPERM on valid pidfd_getfd call
commit325ba824b0611e14e96b38dbc486acf255f9e568
authorMark Wielaard <mark@klomp.org>
Sun, 26 Jun 2022 20:17:17 +0000 (26 22:17 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 29 Jul 2022 16:52:12 +0000 (29 18:52 +0200)
tree6321e599741ffe5a4a0e157c07bbc105cd5a6b8d
parent35363b53cef00c3b9886b2c1f45612869f304960
tst-pidfd.c: UNSUPPORTED if we get EPERM on valid pidfd_getfd call

pidfd_getfd can fail for a valid pidfd with errno EPERM for various
reasons in a restricted environment. Use FAIL_UNSUPPORTED in that case.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/tst-pidfd.c