* resolv/tst-resolv-res_init fails with unshare (CLONE_NEWUTS) failed: Operation not permitted
@ 2022-03-01 19:16 John Lumby
2022-03-01 19:25 ` Florian Weimer
0 siblings, 1 reply; 3+ messages in thread
From: John Lumby @ 2022-03-01 19:16 UTC (permalink / raw)
To: 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.
After reading the man page for unshare() I am none the wiser about whether :
. the userid running the test is missing some capability that is needed in order to run the test - if so , what?
. there is some environmental problem - if so , how can I find out what?
. or is this test supposed to be run by root? (I think not but unclear)
I am sure the answer is buried somewhere in some doc but if anyone can help me get there I would be grateful.
Cheers, John Lumby
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: resolv/tst-resolv-res_init fails with unshare (CLONE_NEWUTS) failed: Operation not permitted
2022-03-01 19:16 resolv/tst-resolv-res_init fails with unshare (CLONE_NEWUTS) failed: Operation not permitted John Lumby
@ 2022-03-01 19:25 ` Florian Weimer
2022-03-01 19:40 ` John Lumby
0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2022-03-01 19:25 UTC (permalink / raw)
To: John Lumby via Libc-help
* 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: resolv/tst-resolv-res_init fails with unshare (CLONE_NEWUTS) failed: Operation not permitted
2022-03-01 19:25 ` Florian Weimer
@ 2022-03-01 19:40 ` John Lumby
0 siblings, 0 replies; 3+ messages in thread
From: John Lumby @ 2022-03-01 19:40 UTC (permalink / raw)
To: libc help; +Cc: Florian Weimer
Thanks Florian -
My ooppss - the FAIL was actually on
FAIL: resolv/tst-resolv-res_init-multi
But I looked in tst-resolv-res_init.out - I should have looked in tst-resolv-res_init-multi.out - where I see something completely different - a timeout (which I think I have seen before)
Sorry for false alarm (although now I have learned about unshare :-)
Cheers, John Lumby
From: Florian Weimer <fweimer@redhat.com>
Sent: March 1, 2022 2:25 PM
To: John Lumby via Libc-help <libc-help@sourceware.org>
Cc: John Lumby <johnlumby@hotmail.com>
Subject: Re: resolv/tst-resolv-res_init fails with unshare (CLONE_NEWUTS) failed: Operation not permitted
* 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-01 19:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 19:16 resolv/tst-resolv-res_init fails with unshare (CLONE_NEWUTS) failed: Operation not permitted John Lumby
2022-03-01 19:25 ` Florian Weimer
2022-03-01 19:40 ` John Lumby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).