apparmor.d/apparmor.d/profiles-s-z/spice-vdagentd
2022-05-21 17:11:20 +01:00

28 lines
No EOL
642 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/spice-vdagentd
profile spice-vdagentd @{exec_path} {
include <abstractions/base>
capability sys_nice,
@{exec_path} mr,
owner @{run}/spice-vdagentd/spice-vdagentd.pid rw,
@{run}/systemd/seats/seat[0-9]* r,
@{run}/systemd/sessions/[0-9]* r,
@{run}/systemd/users/@{uid} r,
@{PROC}/@{pids}/cgroup r,
/dev/uinput rw,
/dev/vport[0-9]*p[0-9]* rw,
include if exists <local/spice-vdagentd>
}