public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
f641649178c05d9bff59f33dbc573967ffde017e blob 940 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
# SPDX-License-Identifier: GPL-2.0-or-later
#
# PASST - Plug A Simple Socket Transport
#  for qemu/UNIX domain socket mode
#
# PASTA - Pack A Subtle Tap Abstraction
#  for network namespace/tap device mode
#
# contrib/apparmor/usr.bin.pasta - AppArmor profile for pasta(1)
#
# Copyright (c) 2022 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com>

abi <abi/4.0>,

include <tunables/global>

profile pasta /usr/bin/pasta{,.avx2} flags=(attach_disconnected) {
  include <abstractions/pasta>

  include <abstractions/user-tmp>		# tap_sock_unix_open(),
						# tap_sock_unix_init(), pcap(),
						# pidfile_open(),
						# pidfile_write(),
						# logfile_init()

  # user-tmp is using "owner" which is not compatible with netns paths
  # which show up as ouid=0 in the kernel apparmor checks
  /tmp/**                              rw,      # pasta_open_ns()

  owner @{HOME}/**			w,	# pcap(), pidfile_open(),
						# pidfile_write()
}
debug log:

solving f641649 ...
found f641649 in https://archives.passt.top/passt-dev/20261001125528.78194-2-pholzing@redhat.com/
found 32dfad9 in https://passt.top/passt
preparing index
index prepared:
100644 32dfad915bb369027f9da958a3e5f86f7ceeaa38	contrib/apparmor/usr.bin.pasta

applying [1/1] https://archives.passt.top/passt-dev/20261001125528.78194-2-pholzing@redhat.com/
diff --git a/contrib/apparmor/usr.bin.pasta b/contrib/apparmor/usr.bin.pasta
index 32dfad9..f641649 100644

Checking patch contrib/apparmor/usr.bin.pasta...
Applied patch contrib/apparmor/usr.bin.pasta cleanly.

index at:
100644 f641649178c05d9bff59f33dbc573967ffde017e	contrib/apparmor/usr.bin.pasta

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).