aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/apparmor/apparmor.d/abstractions/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'straper/db/public/apparmor/apparmor.d/abstractions/wayland')
-rw-r--r--straper/db/public/apparmor/apparmor.d/abstractions/wayland21
1 files changed, 21 insertions, 0 deletions
diff --git a/straper/db/public/apparmor/apparmor.d/abstractions/wayland b/straper/db/public/apparmor/apparmor.d/abstractions/wayland
new file mode 100644
index 0000000..27563d5
--- /dev/null
+++ b/straper/db/public/apparmor/apparmor.d/abstractions/wayland
@@ -0,0 +1,21 @@
+# vim:syntax=apparmor
+# ------------------------------------------------------------------
+#
+# Copyright (C) 2016 intrigeri <intrigeri@boum.org>
+#
+# 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.
+#
+# ------------------------------------------------------------------
+
+ abi <abi/4.0>,
+
+ owner @{run}/user/*/wayland-[0-9]* rw,
+ owner @{run}/user/*/{mesa,mutter,sdl,wayland-cursor,weston,xwayland}-shared-* rw,
+
+ #For compositors based on wlroots
+ owner /dev/shm/wlroots-* rw,
+
+ # Include additions to the abstraction
+ include if exists <abstractions/wayland.d>