mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
Merge branch 'EmersonBernier/socket_read-only' into 'master'
profiles/apparmor.d/abstractions/X: make x11 socket read-only Write access isn't needed for connecting to x11 socket. Also clear some duplicate and redundant rules in other abstractions. PR: https://gitlab.com/apparmor/apparmor/merge_requests/281 Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
commit
e0ed9c2cae
3 changed files with 1 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
|||
owner /{,var/}run/user/*/X11/Xauthority r,
|
||||
|
||||
# the unix socket to use to connect to the display
|
||||
/tmp/.X11-unix/* rw,
|
||||
/tmp/.X11-unix/* r,
|
||||
unix (connect, receive, send)
|
||||
type=stream
|
||||
peer=(addr="@/tmp/.X11-unix/X[0-9]*"),
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
# unique per-machine identifier
|
||||
/etc/machine-id r,
|
||||
/var/lib/dbus/machine-id r,
|
||||
owner /run/user/*/bus rw,
|
||||
|
||||
unix (connect, receive, send)
|
||||
type=stream
|
||||
|
|
|
@ -9,6 +9,5 @@
|
|||
#
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
owner /var/run/user/*/weston-shared-* rw,
|
||||
owner /run/user/*/wayland-[0-9]* rw,
|
||||
owner /run/user/*/{mesa,mutter,sdl,wayland-cursor,weston,xwayland}-shared-* rw,
|
||||
|
|
Loading…
Add table
Reference in a new issue