Evince can't open .tif files - Permission denied

Bug #465192 reported by tdlrali
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
Fix Released
Undecided
Jamie Strandboge
Karmic
Fix Released
High
Jamie Strandboge
Lucid
Fix Released
Undecided
Jamie Strandboge

Bug Description

Binary package hint: evince

This is related to Evince/Document Viewer (2.28.1) on Karmic.

Trying to a open .tif file with Evince fails with the message "Unable to open document - Error opening file: Permission denied".
Relevant dmesg lines:
[ 1942.288959] type=1503 audit(1256922544.460:88): operation="open" pid=7119 parent=1 profile="/usr/bin/evince" requested_mask="r::" denied_mask="r::" fsuid=1000 ouid=1000 name=2F6D6E742F646174612F4D792044726F70626F782F556E692F45787068797320492F4578706879732D3039313033302D616C6C2E746966
[ 1942.289193] type=1503 audit(1256922544.460:89): operation="open" pid=7119 parent=1 profile="/usr/bin/evince" requested_mask="r::" denied_mask="r::" fsuid=1000 ouid=1000 name=2F6D6E742F646174612F4D792044726F70626F782F556E692F45787068797320492F4578706879732D3039313033302D616C6C2E746966

This seems to be caused by the evince apparmor profile, since both
a) renaming the file to .tiff and
b) adding the line "/**.[tT][iI][fF] rw," to /etc/apparmor.d/usr.bin.evince
solves the problem.

Since .tif is a common (valid?) extension for .tiff files, should the apparmor profiles be changed? Or is something else causing this?

Felix N.

tags: removed: apparmor evince tif tiff
tags: added: apparmor
Changed in evince (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
status: New → Triaged
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thank you for using Ubuntu and taking the time to report a bug. I'll get this fixed in an SRU for 9.10.

Changed in evince (Ubuntu Karmic):
importance: Undecided → High
milestone: none → karmic-updates
status: New → Triaged
assignee: nobody → Jamie Strandboge (jdstrand)
tdlrali (tdlrali)
description: updated
Revision history for this message
C de-Avillez (hggdh2) wrote :

Er. Just curious. I was looking at this, and I see my apparmour already has the entry for tiff.

Revision history for this message
C de-Avillez (hggdh2) wrote :

oh, forget. It's 'tiff, not 'tif'. Duh.

Revision history for this message
tdlrali (tdlrali) wrote :

Sorry, I originally posted the bug with the apparmor entry for .tiff, instead of .tif. I changed it in the description as soon as I noticed my mistake.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

SRU REQUEST

1. Users of evince are unable to access .tif files outside of $HOME. The fix is trivial

2. The fix is not in Lucid yet

3. The fix is to add the following to debian/apparmor-profile.abstraction:
  /**.[tT][iI][fF] r,

and to debian/apparmor-profile:
  /**.[tT][iI][fF] rw,

4. TEST CASE:
- obtain a tiff file, and copy it to /mnt/foo.tif
- open it in evince with 'evince /mnt/foo.tif'

5. The regression potential is very low. We only allow access to files that we didn't previously have access to.

Changed in evince (Ubuntu Lucid):
status: Triaged → Fix Committed
Changed in evince (Ubuntu Karmic):
status: Triaged → Fix Committed
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Uploaded 2.28.1-0ubuntu1.1 to karmic-proposed.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted evince into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Tried the test case provided by Jamie on comment #5, with previous package I got a "permission denied" message on evince ui. After installed the proposed version and tried the test case again it works ok, the tif document is opened works ok with .tiff as well. Marking this as verification-done, thanks all!.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package evince - 2.28.1-0ubuntu1.1

---------------
evince (2.28.1-0ubuntu1.1) karmic-proposed; urgency=low

  * debian/apparmor-profile*: adjust to allow opening of .tif files, not just
    .tiff (LP: #465192)

 -- Jamie Strandboge <email address hidden> Tue, 03 Nov 2009 16:25:24 -0600

Changed in evince (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Jamie, please commit the patch to lucid's bzr as well and upload. Thanks!

Changed in evince (Ubuntu Lucid):
status: Fix Committed → In Progress
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This was fixed in 2.29.1-0ubuntu1 on Lucid.

Changed in evince (Ubuntu Lucid):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.