mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-07 10:45:09 +01:00
32 lines
856 B
Text
32 lines
856 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/spice-vdagentd
|
|
profile spice-vdagentd @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/bus-system>
|
|
include <abstractions/bus/org.freedesktop.login1.Session>
|
|
|
|
capability sys_nice,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{run}/systemd/journal/dev-log w,
|
|
@{run}/systemd/seats/seat@{int} r,
|
|
@{run}/systemd/sessions/* r,
|
|
@{run}/systemd/users/@{uid} r,
|
|
owner @{run}/spice-vdagentd/spice-vdagent-sock r,
|
|
owner @{run}/spice-vdagentd/spice-vdagentd.pid rw,
|
|
|
|
@{PROC}/@{pids}/cgroup r,
|
|
|
|
/dev/uinput rw,
|
|
/dev/vport@{int}p@{int} rw,
|
|
|
|
include if exists <local/spice-vdagentd>
|
|
}
|