765eb0bf16
Now: - we don't open the PID file in main() anymore - PID file and AF_UNIX socket are opened by pidfile_open() and tap_sock_unix_open() - write_pidfile() becomes pidfile_write() Reported-by: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Acked-by: Richard W.M. Jones <rjones@redhat.com>
31 lines
802 B
Text
31 lines
802 B
Text
# 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>
|
|
/tmp/** rw, # tap_sock_unix_open(),
|
|
# tap_sock_unix_init(), pcap(),
|
|
# pidfile_open(),
|
|
# pidfile_write(),
|
|
# logfile_init(),
|
|
# pasta_open_ns()
|
|
|
|
owner @{HOME}/** w, # pcap(), pidfile_open(),
|
|
# pidfile_write()
|
|
}
|