summaryrefslogtreecommitdiff
path: root/sysui
diff options
context:
space:
mode:
authorVincas Dargis <vindrg@gmail.com>2018-08-07 12:23:48 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-08-07 13:41:21 +0200
commit8ca83479ab1f921a14a366432a513a904af0dd20 (patch)
treef6a8b21f9c685df9545b6d9b57cd8ae23dd2e7a5 /sysui
parentf96ba2d948deb4a14dd686d74c758e1429c239a4 (diff)
deb#905442 apparmor: fix saving files in enforced mode
Add rule to allow creating temporary files like `lu6924jgpjkq.tmp`, because without it files cannot be saved. Change-Id: I640897df5d325e2d01da16840034abbd095fb276 Reviewed-on: https://gerrit.libreoffice.org/58672 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sysui')
-rw-r--r--sysui/desktop/apparmor/program.soffice.bin1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysui/desktop/apparmor/program.soffice.bin b/sysui/desktop/apparmor/program.soffice.bin
index 2fc7fd6b5735..a6802609dcfa 100644
--- a/sysui/desktop/apparmor/program.soffice.bin
+++ b/sysui/desktop/apparmor/program.soffice.bin
@@ -97,6 +97,7 @@ profile libreoffice-soffice INSTDIR-program/soffice.bin {
owner @{libo_user_dirs}/**/ rw, #allow creating directories that we own
owner @{libo_user_dirs}/**~lock.* rw, #lock file support
owner @{libo_user_dirs}/**.@{libreoffice_ext} rwk, #Open files rw with the right exts
+ owner @{libo_user_dirs}/{,**/}lu??????????{,?}.tmp rwk, #Temporary file used when saving
# Settings
/etc/libreoffice/ r,