public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH] contrib/apparmor: add missing setfcap capability
Date: Tue, 08 Sep 2026 17:02:07 +0200 (CEST)	[thread overview]
Message-ID: <20260908170206.225f16cc@elisabeth> (raw)
In-Reply-To: <20260907213938.1161149-1-sevinj.aghayeva@gmail.com>

On Mon,  7 Sep 2026 14:39:37 -0700
Sevinj Aghayeva <sevinj.aghayeva@gmail.com> wrote:

> Since Linux 5.12, writing a mapping from UID 0 to /proc/self/uid_map
> requires CAP_SETFCAP. isolation.c already retains this capability for
> the case where pasta spawns a child from a non-init user namespace,
> but the AppArmor profile doesn't grant it, so the write is denied
> whenever the profile is enforced.
> 
> Add setfcap to the AppArmor abstraction to match what isolation.c
> expects.
> 
> Link: https://bugs.passt.top/show_bug.cgi?id=172
> Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>

Applied, thanks for the patch, and welcome to the git log!

I just played for a while with nested pasta on Debian, and finally
stuff like:

  $ pasta --config-net -- pasta --config-net ping -c1 2600::

works with AppArmor as well.

I'll take care of closing https://bugs.passt.top/show_bug.cgi?id=172
once your fix is released.

-- 
Stefano


      reply	other threads:[~2026-09-08 15:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-07 21:39 Sevinj Aghayeva
2026-09-08 15:02 ` Stefano Brivio [this message]

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=20260908170206.225f16cc@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=passt-dev@passt.top \
    --cc=sevinj.aghayeva@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).