mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
Add Xwayland.
This commit is contained in:
parent
d570ff123e
commit
db2501b517
2 changed files with 54 additions and 1 deletions
53
apparmor.d/groups/desktop/xwayland
Normal file
53
apparmor.d/groups/desktop/xwayland
Normal file
|
@ -0,0 +1,53 @@
|
|||
# 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/mesa>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{exec_path} mrix,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/xkbcomp rPx,
|
||||
|
||||
/usr/share/drirc.d/{,*} r,
|
||||
/usr/share/glvnd/egl_vendor.d/{,*.json} r,
|
||||
/usr/share/X11/xkb/rules/evdev r,
|
||||
|
||||
/dev/dri/card[0-9]* rw,
|
||||
/dev/dri/renderD[0-9]* rw,
|
||||
|
||||
# TMP files
|
||||
owner /tmp/server-[0-9].xkm rwk,
|
||||
|
||||
# Display Xserver on a specific TTY
|
||||
/dev/tty[0-9]* rw,
|
||||
/dev/tty rw,
|
||||
|
||||
# Extra Mesa rules for GDM
|
||||
owner /var/lib/gdm/.cache/ w,
|
||||
owner /var/lib/gdm/.cache/mesa_shader_cache/ r,
|
||||
owner /var/lib/gdm/.cache/mesa_shader_cache/index rw,
|
||||
owner /var/lib/gdm/.cache/mesa_shader_cache/[a-f0-9][a-f0-9]/ r,
|
||||
owner /var/lib/gdm/.cache/mesa_shader_cache/[a-f0-9][a-f0-9]/[0-9a-f]* r,
|
||||
|
||||
# Needed for Mutter
|
||||
owner @{run}/user/@{pid}/.mutter-Xwaylandauth.[a-zA-z0-9]* rw,
|
||||
|
||||
@{sys}/devices/pci[0-9]*/**/uevent r,
|
||||
@{sys}/devices/pci[0-9]*/**/vendor r,
|
||||
@{sys}/devices/pci[0-9]*/**/device r,
|
||||
@{sys}/devices/pci[0-9]*/**/subsystem_vendor r,
|
||||
@{sys}/devices/pci[0-9]*/**/subsystem_device r,
|
||||
|
||||
owner @{PROC}/@{pids}/cmdline r,
|
||||
|
||||
include if exists <local/xwayland>
|
||||
}
|
|
@ -21,7 +21,7 @@ profile xkbcomp @{exec_path} {
|
|||
|
||||
owner @{HOME}/*.{xkb,xkm} rw,
|
||||
|
||||
owner /tmp/server-[0-9].xkm w,
|
||||
owner /tmp/server-[0-9].xkm rwk,
|
||||
|
||||
# file_inherit
|
||||
owner /dev/tty[0-9]* rw,
|
||||
|
|
Loading…
Reference in a new issue