public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
To: Carlos O'Donell <carlos@redhat.com>, libc-alpha@sourceware.org
Subject: Re: [PATCH] linux: Split tst-ttyname
Date: Mon, 5 Jun 2023 14:11:56 -0300	[thread overview]
Message-ID: <2537138c-7ac5-2406-398a-0c9a776b556c@linaro.org> (raw)
In-Reply-To: <ddf63720-db45-3e97-ec7a-0a8943f78579@redhat.com>



On 02/06/23 23:11, Carlos O'Donell wrote:
> On 6/1/23 13:44, Adhemerval Zanella via Libc-alpha wrote:
>> The tst-ttyname may fail in container environments while trying to
>> mount the procfs after the unshare (test do_in_chroot_2).  It is not
>> clear why exaclty kernel returns EPERM in this case, the container
>> does have CAP_SYS_CHROOT, SELinux/AppArmor is disabled, and there is
>> no seccomp filter.
> 
> I was seeing this also in our Fedora Rawhide CI/CD weekly integration.
> 
> It is not a kernel issue IMO, but a system issue since I was using systemd-nspawn.
> 
> Are you using systemd-nspawn?
> 
> Zbignew just bisected this for me here:
> https://bugzilla.redhat.com/show_bug.cgi?id=2210335
> https://github.com/systemd/systemd/commit/57c10a5650f6bb7180f3bec31a3f24239a81be39

I am running using a docker ubuntu container with CAP_SYS_ADMIN
(for test-container) enable some tests, so there is no direct usage of 
systemd-nspawn.  Although the bug does seems related, the current
namespace does contain the /proc mount and I tried to change the test
to mount the procfs after support_become_root (and before the
support_enter_mount_namespace in child process); but at least on my
environment it continues to fail with EPERM.

In any case, I think splitting the test does seems an improvement since
it split the test with one that uses and another that does not.  I will
rename the test as Florian asked and send a newer version.

  reply	other threads:[~2023-06-05 17:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-01 17:44 Adhemerval Zanella
2023-06-02 17:32 ` Xi Ruoyao
2023-06-03  2:11 ` Carlos O'Donell
2023-06-05 17:11   ` Adhemerval Zanella Netto [this message]
2023-06-05 13:32 ` Florian Weimer
2023-06-05 17:14   ` Adhemerval Zanella Netto
2023-06-05 18:20     ` Florian Weimer
2023-06-05 18:21       ` Adhemerval Zanella Netto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2537138c-7ac5-2406-398a-0c9a776b556c@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=carlos@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).