[apparmor] [patch] X abstraction: adjust for LightDM xauthority location

Steve Beattie steve at nxnw.org
Thu Oct 2 13:07:44 UTC 2014


Bug: https://bugs.launchpad.net/bugs/1339727

LightDM keeps moving the location where it stores xauthority files for
users, when configured to store them in a system directory (e.g. with

  [LightDM]
  user-authority-in-system-dir=true

set in a lightdm configuration file).

Signed-off-by: Steve Beattie <steve at nxnw.org>
---
 profiles/apparmor.d/abstractions/X |    2 ++
 1 file changed, 2 insertions(+)

Index: b/profiles/apparmor.d/abstractions/X
===================================================================
--- a/profiles/apparmor.d/abstractions/X
+++ b/profiles/apparmor.d/abstractions/X
@@ -19,6 +19,8 @@
   owner @{HOME}/.Xauthority r,
   owner /{,var/}run/gdm{,3}/*/database r,
   owner /{,var/}run/lightdm/authority/[0-9]* r,
+  # lightdm keeps moving these around
+  owner /{,var/}run/lightdm/*/xauthority r,
 
   # the unix socket to use to connect to the display
   /tmp/.X11-unix/*           w,

-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20141002/44f476bf/attachment-0001.pgp>


More information about the AppArmor mailing list