feat(profiles): add spice-vdagent.

This commit is contained in:
Alexandre Pujol 2022-05-21 17:11:20 +01:00
parent 7a1304720e
commit 1d284c03c3
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# 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>
}