Bug#883275: libreoffice-common: General IO Error with apparmor when opening a PDF file
Package: libreoffice-common
Version: 1:5.4.3-3
Severity: normal
Hi,
$ strace ... libreoffice /path/to/file.pdf
[pid 28359] execve("/usr/lib/libreoffice/program/../program/xpdfimport", ["/usr/lib/libreoffice/program/../"..., "/tmp/Cghm7K", "/usr/lib/libreoffice/program/../"...], 0x5632a0246780 /* 71 vars */) = -1 EACCES (Permission denied)
And libreoffice stops with a "General input/output error" dialog box.
It worked after changing the apparmor policy to complain,
$ sudo aa-complain /etc/apparmor.d/usr.lib.libreoffice.program.*
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libreoffice-common depends on:
ii libreoffice-style-tango 1:5.4.3-3
ii ure 5.4.3-3
Versions of packages libreoffice-common recommends:
ii fonts-liberation 1:1.07.4-5
ii libexttextcat-data 3.4.5-1
ii python3-uno 1:5.4.3-3
Versions of packages libreoffice-common suggests:
ii libreoffice-style-galaxy [libreoffice-style] 1:5.4.3-3
ii libreoffice-style-tango [libreoffice-style] 1:5.4.3-3
Versions of packages python3-uno depends on:
ii libc6 2.25-2
ii libgcc1 1:7.2.0-16
ii libpython3.6 3.6.3-1
ii libreoffice-core 1:5.4.3-3
ii libstdc++6 7.2.0-16
ii python3 3.6.3-2
ii python3.6 3.6.3-1
ii uno-libs3 5.4.3-3
ii ure 5.4.3-3
-- no debconf information
Reply to: