From: Debian LibreOffice Maintainers Date: Mon, 29 Jan 2018 17:52:54 +0000 (+0000) Subject: apparmor-fixes X-Git-Tag: archive/raspbian/1%6.0.0-1+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=25d932a7f4d1f051d5e6d5f18b667d6bbdfe74f6;p=libreoffice.git apparmor-fixes Gbp-Pq: Name apparmor-fixes.diff --- diff --git a/sysui/desktop/apparmor/program.oosplash b/sysui/desktop/apparmor/program.oosplash index fef54b7ee38..bcc06914d11 100644 --- a/sysui/desktop/apparmor/program.oosplash +++ b/sysui/desktop/apparmor/program.oosplash @@ -1,12 +1,14 @@ # ------------------------------------------------------------------ # # Copyright (C) 2016 Canonical Ltd. +# Copyright (C) 2018 Software in the Public Interest, Inc. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # Author: Bryan Quigley +# Rene Engelhard # # ------------------------------------------------------------------ @@ -14,12 +16,14 @@ profile libreoffice-oopslash INSTDIR-program/oosplash { #include + #include /etc/libreoffice/ r, /etc/libreoffice/** r, /etc/passwd r, /etc/nsswitch.conf r, /run/nscd/passwd r, + /sys/devices/{virtual,pci[0-9]*}/**/queue/rotational r, # for isRotational() in desktop/unx/source/pagein.c /usr/lib{,32,64}/ure/bin/javaldx rmpux, /usr/share/libreoffice/program/* r, INSTDIR-program/** r, diff --git a/sysui/desktop/apparmor/program.soffice.bin b/sysui/desktop/apparmor/program.soffice.bin index ff2c4b08cd4..08091a03800 100644 --- a/sysui/desktop/apparmor/program.soffice.bin +++ b/sysui/desktop/apparmor/program.soffice.bin @@ -1,7 +1,7 @@ # ------------------------------------------------------------------ # # Copyright (C) 2016 Canonical Ltd. -# Copyright (C) 2017 Software in the Public Interest, Inc. +# Copyright (C) 2018 Software in the Public Interest, Inc. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this @@ -63,7 +63,7 @@ #include profile libreoffice-soffice INSTDIR-program/soffice.bin { - #include + #include #include #include @@ -123,6 +123,7 @@ profile libreoffice-soffice INSTDIR-program/soffice.bin { /usr/lib{,32,64}/jvm/ r, /usr/lib{,32,64}/jvm/** r, + /usr/lib{,32,64}/jvm/**/jre/bin/java mix, INSTDIR-** rw, INSTDIR-**.so m, INSTDIR-program/soffice.bin mix, @@ -152,6 +153,11 @@ profile libreoffice-soffice INSTDIR-program/soffice.bin { #Likely moving to abstractions in the future owner @{HOME}/.icons/*/cursors/* r, + /sys/devices/pci[0-9]*/**/{device,subsystem_device,subsystem_vendor,uevent,vendor} r, # for libdrm /usr/share/*-fonts/conf.avail/*.conf r, /usr/share/fonts-config/conf.avail/*.conf r, + + owner @{HOME}/.mozilla/firefox/profiles.ini r, + owner @{HOME}/.mozilla/firefox/*/secmod.db r, + owner @{HOME}/.mozilla/firefox/*/cert8.db r, }