mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(abs): cleanup X-strict.
This commit is contained in:
parent
0c2b8f612b
commit
df20d29832
1 changed files with 15 additions and 23 deletions
|
@ -3,36 +3,28 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# The unix socket to use to connect to the display
|
||||
unix (connect, receive, send)
|
||||
type=stream
|
||||
peer=(addr="@/tmp/.X11-unix/X[0-9]*"),
|
||||
unix (connect, receive, send)
|
||||
type=stream
|
||||
peer=(addr="@/tmp/.ICE-unix/[0-9]*"),
|
||||
unix (connect, receive, send) type=stream peer=(addr="@/tmp/.X11-unix/X[0-9]*"),
|
||||
unix (connect, receive, send) type=stream peer=(addr="@/tmp/.ICE-unix/[0-9]*"),
|
||||
unix type=stream addr="@/tmp/.ICE-unix/[0-9]*",
|
||||
unix type=stream addr="@/tmp/.X11-unix/X[0-9]*",
|
||||
/tmp/.X11-unix/* rw,
|
||||
|
||||
/usr/share/X11/{,**} r,
|
||||
/usr/share/xsessions/{,*.desktop} r, # Available Xsessions
|
||||
|
||||
/etc/X11/cursors/{,**} r,
|
||||
|
||||
owner @{HOME}/.ICEauthority r, # ICEauthority files required for X authentication, per user
|
||||
owner @{HOME}/.Xauthority r, # Xauthority files required for X connections, per user
|
||||
|
||||
/tmp/.ICE-unix/* rw,
|
||||
/tmp/.X{0,1}-lock rw,
|
||||
|
||||
# Available Xsessions
|
||||
/usr/share/xsessions/{,*.desktop} r,
|
||||
|
||||
# ICEauthority files required for X authentication, per user
|
||||
owner @{HOME}/.ICEauthority r,
|
||||
owner @{run}/user/@{uid}/ICEauthority r,
|
||||
|
||||
# Xauthority files required for X connections, per user
|
||||
owner @{HOME}/.Xauthority r,
|
||||
/tmp/.X11-unix/* rw,
|
||||
owner /tmp/xauth_@{rand6} rl -> /tmp/#@{int},
|
||||
|
||||
owner @{run}/user/@{uid}/.mutter-Xwaylandauth.@{rand6} rw, # Xwayland
|
||||
owner @{run}/user/@{uid}/gdm{[1-9],}/Xauthority r,
|
||||
owner @{run}/user/@{uid}/ICEauthority r,
|
||||
owner @{run}/user/@{uid}/X11/Xauthority r,
|
||||
owner @{run}/user/@{uid}/xauth_@{rand6} rl -> @{run}/user/@{uid}/#@{int},
|
||||
|
||||
# Xwayland
|
||||
owner @{run}/user/@{uid}/.mutter-Xwaylandauth.@{rand6} rw,
|
||||
|
||||
/etc/X11/cursors/{,**} r,
|
||||
/usr/share/X11/{,**} r,
|
||||
|
||||
include if exists <abstractions/X-strict.d>
|
||||
|
|
Loading…
Reference in a new issue