Evince can't open plaintext attachments.

Bug #837549 reported by pascal germroth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
Fix Released
Low
Jamie Strandboge

Bug Description

PDF allows attaching arbitrary files to PDF files.
Right-clicking onto an attachment's icon and saving the file, opening it manually works, but left-clicking doesn't work because evince will save the file to /tmp and start the preferred application automatically, this doesn't work:
  apparmor="DENIED" operation="exec" parent=1 profile="/usr/bin/evince" name="/usr/bin/gedit" pid=9128 comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0

A workaround is (as root)
  # echo "/usr/bin/gedit ixr," >> /etc/apparmor.d/local/usr.bin.evince
  # service apparmor reload
But of course image attachments still don't work etc.

Maybe the list of allowed applications evince can start to show attachments should include a useful list of other audited applications.

(Or should this be an evince bug?)

Tags: evince gedit

Related branches

Revision history for this message
pascal germroth (pascal-ensieve) wrote :
Revision history for this message
pascal germroth (pascal-ensieve) wrote :
affects: apparmor (Ubuntu) → evince (Ubuntu)
Changed in evince (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
status: New → Triaged
Changed in evince (Ubuntu):
importance: Undecided → Low
milestone: none → precise-alpha-2
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package evince - 3.2.1-1ubuntu5

---------------
evince (3.2.1-1ubuntu5) precise; urgency=low

  * debian/apparmor-profile*:
    - allow owner read of @{PROC}/[0-9]*/auxv
    - use PUx for yelp instead of Ux
    - explicitly deny reads to /run/udev/data/** (LP: #883045)
    - allow PUx for nautilus for evince (LP: #864992)
    - allow ixr of gedit for text attachments (LP: #837549)
 -- Jamie Strandboge <email address hidden> Wed, 04 Jan 2012 11:01:38 -0600

Changed in evince (Ubuntu):
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.