summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/local/apparmor-profile9
1 files changed, 7 insertions, 2 deletions
diff --git a/debian/local/apparmor-profile b/debian/local/apparmor-profile
index 460455ed5..9b8d0668d 100644
--- a/debian/local/apparmor-profile
+++ b/debian/local/apparmor-profile
@@ -200,8 +200,6 @@
/etc/papersize r,
/etc/cups/cups-pdf.conf r,
/etc/cups/ppd/*.ppd r,
- @{HOME}/PDF/ rw,
- @{HOME}/PDF/* rw,
/usr/bin/gs ixr,
/usr/lib/cups/backend/cups-pdf mr,
/usr/lib/ghostscript/** mr,
@@ -209,4 +207,11 @@
/var/log/cups/cups-pdf*_log w,
/var/spool/cups/** r,
/var/spool/cups-pdf/** rw,
+
+ # allow read and write on almost anything in @{HOME} (lenient, but
+ # private-files-strict is in effect), to support customized "Out"
+ # setting in cups-pdf.conf (Debian#940578)
+ #include <abstractions/private-files-strict>
+ @{HOME}/[^.]*/{,**/} rw,
+ @{HOME}/[^.]*/** rw,
}