From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id 4D5835A9CD3 for ; Wed, 8 May 2024 18:13:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715184820; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uj8Yo3+e9yCa/5LqBNRT0kZiOcA7aXz0+/ePfg4FZgc=; b=fvj8q/lVpwzTZQJUQY440RHSkXFKhyNtg7cQzuqTCfzMHGDu3gsvmWWTxyUaeePQaJuxZk NTFZs5ab6hA+Y3PEPdTQzj+lxeIzN0nmlkhKvt/GYcJhB/6hmK/PB+4bCGN6QKhhHkOE7e xL5DqKrNW8pTOgB0GjuRPN08JiA4zlY= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-527-dWP1gniYMsCFC8pDcl5qvg-1; Wed, 08 May 2024 12:13:38 -0400 X-MC-Unique: dWP1gniYMsCFC8pDcl5qvg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EB4CD29AC007 for ; Wed, 8 May 2024 16:13:37 +0000 (UTC) Received: from pholzing-fedora.redhat.com (unknown [10.39.192.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 56B45C0157C; Wed, 8 May 2024 16:13:37 +0000 (UTC) From: Paul Holzinger To: passt-dev@passt.top Subject: [PATCH] apparmor: allow read access on /tmp for pasta Date: Wed, 8 May 2024 18:13:16 +0200 Message-ID: <20240508161316.111022-1-pholzing@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: JIXBC2G66PZD6HDI7BPFB6HVVHFWUJPF X-Message-ID-Hash: JIXBC2G66PZD6HDI7BPFB6HVVHFWUJPF X-MailFrom: pholzing@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Paul Holzinger X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The podman CI on debian runs tests based on /tmp but pasta is failing there because it is unable to open the netns path as the open for read access is denied. Signed-off-by: Paul Holzinger --- contrib/apparmor/usr.bin.pasta | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/apparmor/usr.bin.pasta b/contrib/apparmor/usr.bin.pasta index e5ee4df..2a4d28c 100644 --- a/contrib/apparmor/usr.bin.pasta +++ b/contrib/apparmor/usr.bin.pasta @@ -19,9 +19,10 @@ profile pasta /usr/bin/pasta{,.avx2} flags=(attach_disconnected) { include # Alternatively: include - owner /tmp/** w, # tap_sock_unix_init(), pcap(), + owner /tmp/** rw, # tap_sock_unix_init(), pcap(), # write_pidfile(), - # logfile_init() + # logfile_init(), + # pasta_open_ns() owner @{HOME}/** w, # pcap(), write_pidfile() } -- 2.44.0