mirror of
https://passt.top/passt
synced 2024-11-05 20:31:11 +00:00
28 lines
704 B
Plaintext
28 lines
704 B
Plaintext
|
# 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/3.0>,
|
||
|
|
||
|
include <tunables/global>
|
||
|
|
||
|
profile pasta /usr/bin/pasta{,.avx2} flags=(attach_disconnected) {
|
||
|
include <abstractions/pasta>
|
||
|
|
||
|
# Alternatively: include <abstractions/user-tmp>
|
||
|
owner /tmp/** w, # tap_sock_unix_init(), pcap(),
|
||
|
# write_pidfile(),
|
||
|
# logfile_init()
|
||
|
|
||
|
owner @{HOME}/** w, # pcap(), write_pidfile()
|
||
|
}
|