mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Add virtlogd profile.
This commit is contained in:
parent
aceb3d7560
commit
a8a1f3b29a
35
apparmor.d/groups/virt/virtlogd
Normal file
35
apparmor.d/groups/virt/virtlogd
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}bin/virtlogd
|
||||||
|
profile virtlogd @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/openssl>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
ptrace (read) peer=libvirtd,
|
||||||
|
ptrace (read) peer=unconfined,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/etc/libvirt/virtlogd.conf r,
|
||||||
|
|
||||||
|
/var/log/libvirt/qemu/*.log rw,
|
||||||
|
|
||||||
|
@{run}/virtlogd.pid rwk,
|
||||||
|
|
||||||
|
@{sys}/devices/system/node/ r,
|
||||||
|
@{sys}/devices/system/node/node[0-9]*/meminfo r,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/stat r,
|
||||||
|
@{PROC}/1/environ r,
|
||||||
|
@{PROC}/cmdline r,
|
||||||
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
|
||||||
|
include if exists <local/virtlogd>
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user