public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: "Bittner, Jan" <Jan.Bittner@kdo.de>
To: "passt-dev@passt.top" <passt-dev@passt.top>
Subject: [PATCH] apparmor: Fix signaling issues from podman
Date: Thu, 28 May 2026 14:08:40 +0000	[thread overview]
Message-ID: <be4eef52592341b08433f80995025768@kdo.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

This fixes a bug that causes a crash in podman. Podman uses signal to
communicate with pasta. Without this patch apparmor does not allow
podman to signal pasta and kills pasta instead. Killing pasta causes
podman to crash. You can reproduce this by starting a rootless podman
socket and starting a container via the socket using podman remote or
docker.
Links: https://bugs.launchpad.net/ubuntu/+source/passt/+bug/2154379

Signed-off-by: Jan Philipp Bittner <jan.bittner@kdo.de>
---
 contrib/apparmor/usr.bin.pasta | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/contrib/apparmor/usr.bin.pasta b/contrib/apparmor/usr.bin.pasta
index 56b5024..b0838de 100644
--- a/contrib/apparmor/usr.bin.pasta
+++ b/contrib/apparmor/usr.bin.pasta
@@ -18,6 +18,9 @@ include <tunables/global>
 profile pasta /usr/bin/pasta{,.avx2} flags=(attach_disconnected) {
   include <abstractions/pasta>

+  # Allow podman to signal pasta
+  signal (receive) peer=podman,
+
   # Alternatively: include <abstractions/user-tmp>
   /tmp/**                              rw,     # tap_sock_unix_open(),
                                                # tap_sock_unix_init(), pcap(),
--
2.43.0

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 9516 bytes --]

                 reply	other threads:[~2026-05-28 14:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=be4eef52592341b08433f80995025768@kdo.de \
    --to=jan.bittner@kdo.de \
    --cc=passt-dev@passt.top \
    /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).