Move libvirtd profiles.
This commit is contained in:
parent
b79ffa52c6
commit
adabcd6b94
8 changed files with 40 additions and 244 deletions
|
|
@ -13,7 +13,7 @@ profile libvirt-dbus @{exec_path} {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}{s,}bin/libvirtd rPUx,
|
||||
/{usr/,}{s,}bin/libvirtd rPx,
|
||||
|
||||
/usr/share/dbus-1/interfaces/org.libvirt.*.xml r,
|
||||
|
||||
|
|
|
|||
21
apparmor.d/groups/virt/libvirt/TEMPLATE.lxc
Normal file
21
apparmor.d/groups/virt/libvirt/TEMPLATE.lxc
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) Libvirt Team
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# This profile is for the container whose UUID matches this file.
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
profile LIBVIRT_TEMPLATE flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/libvirt-lxc>
|
||||
|
||||
# Globally allows everything to run under this profile
|
||||
# These can be narrowed depending on the container's use.
|
||||
file,
|
||||
capability,
|
||||
network,
|
||||
}
|
||||
17
apparmor.d/groups/virt/libvirt/TEMPLATE.qemu
Normal file
17
apparmor.d/groups/virt/libvirt/TEMPLATE.qemu
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) Libvirt Team
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# This profile is for the VM whose UUID matches this file.
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
profile LIBVIRT_TEMPLATE flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/libvirt-qemu>
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ abi <abi/3.0>,
|
|||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}{,s}bin/libvirtd
|
||||
@{exec_path} = /{usr/,}sbin/libvirtd /{usr/,}bin/libvirtd
|
||||
profile libvirtd @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/dbus>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue