2009-11-04 14:25:42 -06:00
|
|
|
# vim:syntax=apparmor
|
2006-04-11 21:52:54 +00:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2009-11-04 14:25:42 -06:00
|
|
|
# Copyright (C) 2002-2009 Novell/SUSE
|
2011-06-22 22:26:14 -05:00
|
|
|
# Copyright (C) 2009-2011 Canonical Ltd.
|
2006-04-11 21:52:54 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-05-05 00:08:39 -07:00
|
|
|
abi <abi/3.0>,
|
|
|
|
|
2020-06-09 23:28:41 +02:00
|
|
|
include <abstractions/dri-common>
|
2006-04-11 21:52:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
# .ICEauthority files required for X authentication, per user
|
2013-01-04 22:05:53 -08:00
|
|
|
owner @{HOME}/.ICEauthority r,
|
2020-10-25 09:37:01 +00:00
|
|
|
owner @{run}/user/*/ICEauthority r,
|
2006-04-11 21:52:54 +00:00
|
|
|
|
|
|
|
# .Xauthority files required for X connections, per user
|
2013-01-04 22:05:53 -08:00
|
|
|
owner @{HOME}/.Xauthority r,
|
2017-12-17 15:38:26 +01:00
|
|
|
owner @{HOME}/.local/share/sddm/.Xauthority r,
|
2020-02-13 11:02:49 +02:00
|
|
|
owner @{run}/gdm{,3}/*/database r,
|
|
|
|
owner @{run}/lightdm/authority/[0-9]* r,
|
|
|
|
owner @{run}/lightdm/*/xauthority r,
|
|
|
|
owner @{run}/user/*/gdm/Xauthority r,
|
|
|
|
owner @{run}/user/*/X11/Xauthority r,
|
2020-07-20 20:30:34 +02:00
|
|
|
owner @{run}/user/*/xauth_* r,
|
2006-04-11 21:52:54 +00:00
|
|
|
|
|
|
|
# the unix socket to use to connect to the display
|
2020-10-23 12:22:10 +00:00
|
|
|
/tmp/.X11-unix/* rw,
|
2014-09-03 14:21:31 -05:00
|
|
|
unix (connect, receive, send)
|
|
|
|
type=stream
|
2014-09-03 15:11:05 -05:00
|
|
|
peer=(addr="@/tmp/.X11-unix/X[0-9]*"),
|
2015-07-24 15:01:46 -05:00
|
|
|
unix (connect, receive, send)
|
|
|
|
type=stream
|
|
|
|
peer=(addr="@/tmp/.ICE-unix/[0-9]*"),
|
2007-08-23 23:26:49 +00:00
|
|
|
|
2009-11-04 14:25:42 -06:00
|
|
|
/usr/include/X11/ r,
|
|
|
|
/usr/include/X11/** r,
|
2007-08-23 23:12:53 +00:00
|
|
|
|
2009-11-04 14:25:42 -06:00
|
|
|
# The X tree changes and is large -- grant read access to the whole thing
|
|
|
|
/usr/X11R6/** r,
|
|
|
|
/usr/share/X11/ r,
|
|
|
|
/usr/share/X11/** r,
|
|
|
|
/usr/X11R6/**.so* mr,
|
|
|
|
|
2014-05-15 22:01:35 -05:00
|
|
|
# EGL
|
|
|
|
/usr/lib/@{multiarch}/egl/*.so* mr,
|
|
|
|
|
2013-01-02 15:23:08 -08:00
|
|
|
# Xcompose
|
|
|
|
owner @{HOME}/.XCompose r,
|
2020-11-16 20:42:00 +01:00
|
|
|
/var/cache/libx11/compose/* r,
|
|
|
|
deny /var/cache/libx11/compose/* wlk,
|
2013-01-02 15:23:08 -08:00
|
|
|
|
2009-11-04 14:25:42 -06:00
|
|
|
# mouse themes
|
|
|
|
/etc/X11/cursors/ r,
|
|
|
|
/etc/X11/cursors/** r,
|
2019-01-24 03:03:11 -08:00
|
|
|
|
2019-09-08 07:35:00 +00:00
|
|
|
# Xwayland
|
2020-02-13 11:02:49 +02:00
|
|
|
owner @{run}/user/*/.mutter-Xwaylandauth.* r,
|
2019-09-08 07:35:00 +00:00
|
|
|
|
2019-01-24 03:03:11 -08:00
|
|
|
# Include additions to the abstraction
|
2020-05-30 19:46:08 +02:00
|
|
|
include if exists <abstractions/X.d>
|