[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#962903: libreoffice: Fails to open any PDF ("This PDF file is encrypted and can't be opened.")



tag 962903 + moreinfo

tag 962903 + unreproducible

thanks

Am 15.06.20 um 19:49 schrieb Andreas Metzler:
> trying to open any PDF file in libreoffices yields the generic
> PDF error page "This PDF file is encrypted and can't be opened.")

Fresh testing VM.


Plain Text doc just containing "Test".


Exported to PDF.


Opening just works. Both in LO and by command line.


Did you do any special config? Something apparmor-related? Some specific
TMPDIR or so?


Because:

> 2575  19:27:45.464196 openat(AT_FDCWD, "/tmp/test-tmp-ametzler/Qqf3SE", O_RDONLY) = -1 EACCES (Permission denied)

I wonder about that /tmp/test-tmp-ametzler.


The apparmor rules might just allow /tmp/*, not /tmp/something/*.


Ah, yes:

Indeed, if I set TMPDIR=/tmp/test I get that

"This PDF file is encrypted and can't be opened".


dmesg shows e.g.:

"[  692.0171072] audit: type=1400 audit(159265461.660:88): apparmor="DENIED" opereation="open" profile="libreoffice-xpdfimport" name="/tmp/test/4DyliY" pid=2661 comm="xpdfimport" requested_mask="r" denied_masj="r" fsuid=1000 ouid=1000"

And indeed, if I set that profile to complain only it works.

If *you* change stuff *you* have the responsibility to change stuff so that it works with it. This is not a bug here.

Regards,


Rene


Reply to: