apparmor.d/apparmor.d/groups/desktop/xwayland
2021-05-06 16:44:49 +01:00

40 lines
964 B
Text

# 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/Xwayland
profile xwayland @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/dri-common>
include <abstractions/dri-enumerate>
include <abstractions/mesa>
include <abstractions/nameservice-strict>
signal (receive) set=(term hup) peer=gdm*,
@{exec_path} mrix,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/xkbcomp rPx,
/usr/share/glvnd/egl_vendor.d/{,*.json} r,
/usr/share/X11/xkb/rules/evdev r,
# TMP files
owner /tmp/server-[0-9]*.xkm rwk,
# Display Xserver on a specific TTY
/dev/tty[0-9]* rw,
/dev/tty rw,
# Needed for Mutter
owner @{run}/user/@{uid}/.mutter-Xwaylandauth.[a-zA-z0-9]* rw,
owner @{PROC}/@{pids}/cmdline r,
include if exists <local/xwayland>
}