resolv/tst-resolv-res_init fails with unshare (CLONE_NEWUTS) failed: Operation not permitted
Florian Weimer
fweimer@redhat.com
Tue Mar 1 19:25:20 GMT 2022
* John Lumby via Libc-help:
> Apologies if this has been answered elsewhere.
>
> under linux-5.16.9 I am building and testing glibc-2.35 and get one FAIL in the test suite : glibc-build/resolv/tst-resolv-res_init.out contains :
>
> warning: could not become root outside namespace (Operation not permitted)
> warning: unshare (CLONE_NEWUTS) failed: Operation not permitted
> warning: could not enter network namespace
>
> I think the cause if that is this code in support/support_become_root.c
>
> unshare (CLONE_NEWUSER | CLONE_NEWNS)
>
> is getting EPERM.
It's just a warning, so it shouldn't cause a test failure.
Are there any other messages in the resolv/tst-resolv-res_init.out file?
Thanks,
Florian
More information about the Libc-help
mailing list