[PATCH] tst-personality: Check for ENOSYS

Carlos O'Donell carlos@redhat.com
Thu Jul 27 02:16:14 GMT 2023


On 7/25/23 13:57, Joe Simmons-Talbott via Libc-alpha wrote:
> Return UNSUPPORTED if personality fails with ENOSYS.

Where did you see this?

It would be good to comment in the commit message the system or
systems under which this occurs.

> ---
>  sysdeps/unix/sysv/linux/tst-personality.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sysdeps/unix/sysv/linux/tst-personality.c b/sysdeps/unix/sysv/linux/tst-personality.c
> index 5e59627826..4b171ccae3 100644
> --- a/sysdeps/unix/sysv/linux/tst-personality.c
> +++ b/sysdeps/unix/sysv/linux/tst-personality.c
> @@ -35,7 +35,7 @@ do_test (void)
>      {
>        /* The syscall argument might be filtered by kernel, so the
>          test can not check for the bug issue.  */
> -      if (errno == EPERM)
> +      if (errno == EPERM || errno == ENOSYS)
>         FAIL_UNSUPPORTED ("personality syscall argument are filtered");
>        FAIL_EXIT1 ("personality (%#x) failed: %m", test_persona);
>      }

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list