36 lines
No EOL
928 B
Text
36 lines
No EOL
928 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/virtnetworkd
|
|
profile virtnetworkd @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/openssl>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
network netlink raw,
|
|
|
|
ptrace (read) peer=virtqemud,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/dnsmasq rPx,
|
|
|
|
@{run}/utmp rk,
|
|
@{run}/systemd/inhibit/*.ref rw,
|
|
owner @{run}/user/@{uid}/libvirt/common/system.token rwk,
|
|
owner @{run}/user/@{uid}/libvirt/network/{,**} rwk,
|
|
owner @{run}/user/@{uid}/libvirt/virtnetworkd* rwk,
|
|
|
|
@{sys}/devices/system/node/ r,
|
|
@{sys}/devices/system/node/node[0-9]*/meminfo r,
|
|
|
|
owner @{PROC}/@{pid}/stat r,
|
|
owner @{PROC}/@{pids}/fd/ r,
|
|
|
|
include if exists <local/virtnetworkd>
|
|
} |