https://bugs.kde.org/show_bug.cgi?id=524072

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|REPORTED                    |RESOLVED

--- Comment #14 from Méven <[email protected]> ---
(In reply to Brook Mena from comment #13)
> Created attachment 198035 [details]
> dolphin-tests-nov3.txt
> 
> Hi Méven,
> 
> I ran all the requested tests. The output is attached.
> 
>    1.
> 
>    Ghostscript fails on the file on Disk B, reporting “Last OS error:
>    Permission denied.”
>    2.
> 
>    The same command succeeds on the fresh copy in Downloads, processing
>    Page 1. Dolphin also shows its preview.
>    3.
> 
>    The kernel log contains AppArmor DENIED messages for profile="gs", with
>    denied_mask="r", including the tested file on Disk B. The aa-status
> command
>    returns gs.
> 
> I have not changed any AppArmor settings. Could you advise on the next step?
> 
> Thank you,
> Brook

Thanks, that settles it. The kernel log shows AppArmor denying gs read access
to the PDFs on Disk B. Ubuntu ships an AppArmor
profile for Ghostscript that blocks it from reading files outside your home
folder. The PDF thumbnailer runs gs, so it cannot
read PDFs on Disk B, while the copy in Downloads works. Dolphin and the split
view are not involved.

This is the same issue as bug 513562, so I am marking this report as a
duplicate of it.

To get the previews back, you can give gs read access to that disk. Run as
root:

  echo '/run/media/brook/** r,' >> /etc/apparmor.d/local/gs
  apparmor_parser -r /etc/apparmor.d/gs

Check first that /etc/apparmor.d/gs contains a line that includes local/gs. If
it doesn't, add the rule to /etc/apparmor.d/gs
itself, inside the profile block. A package upgrade can overwrite
/etc/apparmor.d/gs, but it leaves the file in local/ alone.

This is a workaround, the profile itself belongs to Ubuntu, so if you would
like it to allow removable media by default, please report it to Ubuntu on
Launchpad against the ghostscript package.

*** This bug has been marked as a duplicate of bug 513562 ***

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to