From b6a645c480ffbd1587617710a5bb6a09538f147e Mon Sep 17 00:00:00 2001
From: intrigeri <intrigeri@boum.org>
Date: Sun, 27 Jan 2019 15:53:34 +0000
Subject: [PATCH] Totem: update the profile to better support Totem 3.30
 (apparmor/apparmor-profiles!33).

---
 profiles/abstractions/totem       | 2 +-
 profiles/usr.bin.totem-previewers | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/profiles/abstractions/totem b/profiles/abstractions/totem
index 111bee7..e8b82a8 100644
--- a/profiles/abstractions/totem
+++ b/profiles/abstractions/totem
@@ -44,7 +44,7 @@
   owner @{HOME}/.local/share/totem/ rwk,
   owner @{HOME}/.local/share/tracker/data/tracker-store.journal rwk,
 
-  owner @{PROC}/@{pid}/status r,
+  owner @{PROC}/@{pid}/{mountinfo,status} r,
 
   /run/udev/data/c* r,
   /run/udev/data/+drm:card* r,
diff --git a/profiles/usr.bin.totem-previewers b/profiles/usr.bin.totem-previewers
index 80a42e9..7b861d0 100644
--- a/profiles/usr.bin.totem-previewers
+++ b/profiles/usr.bin.totem-previewers
@@ -3,7 +3,7 @@
 
 #include <tunables/global>
 
-/usr/bin/totem-video-thumbnailer {
+/usr/bin/totem-video-thumbnailer flags=(attach_disconnected) {
   #include <abstractions/totem>
 
   # Probably needed due to this program being run with bwrap
@@ -26,7 +26,7 @@
   #include <local/usr.bin.totem-previewers>
 }
 
-/usr/bin/totem-audio-preview {
+/usr/bin/totem-audio-preview flags=(attach_disconnected) {
   #include <abstractions/totem>
   #include <abstractions/audio>
 
-- 
GitLab