From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id DE9A35A0657; Wed, 06 May 2026 11:22:41 +0200 (CEST) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH v9 20/23] apparmor: Add policy file for pesto Date: Wed, 6 May 2026 11:22:38 +0200 Message-ID: <20260506092241.1607480-21-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260506092241.1607480-1-sbrivio@redhat.com> References: <20260506092241.1607480-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: GGSCJJNC3A2QUYXZHY2YUGCOIK62PGLU X-Message-ID-Hash: GGSCJJNC3A2QUYXZHY2YUGCOIK62PGLU X-MailFrom: sbrivio@passt.top 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: Jon Maloy , David Gibson , Laurent Vivier 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: It needs to connect to passt and pasta, whether they're started as root or not, and the control socket can be anywhere. Signed-off-by: Stefano Brivio --- contrib/apparmor/usr.bin.pesto | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 contrib/apparmor/usr.bin.pesto diff --git a/contrib/apparmor/usr.bin.pesto b/contrib/apparmor/usr.bin.pesto new file mode 100644 index 0000000..0c072c7 --- /dev/null +++ b/contrib/apparmor/usr.bin.pesto @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# PESTO - Programmable Extensible Socket Translation Orchestrator +# front-end for passt(1) and pasta(1) forwarding configuration +# +# contrib/apparmor/usr.bin.pesto - AppArmor profile for pesto(1) +# +# Copyright (c) 2026 Red Hat GmbH +# Author: Stefano Brivio + +abi , + +#include + +profile pesto /usr/bin/pesto { + #include + /** rw, # control socket might be anywhere + unix (connect, receive, send) type=stream, + + capability dac_override, # connect to passt's socket as root + + network unix stream, # connect and use UNIX domain socket +} -- 2.43.0