Thunderbird profile should transition to Evince/Totem profiles when running them to open attachments

Bug #1727993 reported by intrigeri
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
AppArmor Profiles
New
Undecided
Unassigned

Bug Description

With the current Thunderbird profile Evince & Totem are run under sanitized_helper, while some distros ship stricter dedicated profiles for them. This feels wrong.

As written on https://code.launchpad.net/~talkless/apparmor-profiles/+git/apparmor-profiles/+merge/332870/comments/871711:

IMO we need these rules somewhere on distros that ship the Evince and Totem profiles:

  /usr/bin/evince Px,
  /usr/bin/totem Px,

I see two ways to do it:

1. Adjust the existing Evince rule in abstractions/ubuntu-browsers.d/productivity + the existing Totem rule in abstractions/ubuntu-media-players, and then we include these abstractions in the Thunderbird profile.

2. Add these rules to the Thunderbird profile.

At first glance it feels like (1) is the cleanest way forward *but* it has a big drawback: it won't work as intended on distros that don't ship Evince/Totem profiles, which feels super wrong in abstractions that are part of the upstream AppArmor tarball. I think that's yet another reason to sit down, take a deep breath, and rethink how & where we're maintaining+shipping policy, but IMO we shouldn't block on this here. So I think (2) is the way to go.

The main drawback of (2) is that any distro that starts shipping the Thunderbird profile will need to either also ship the Evince and Totem profiles, or drop these two lines In Debian that's a mere matter of adding a dependency on apparmor-profiles-extra. Are there other distros around that already ship the Thunderbird profile *and* would have a problem with this? I see that Ubuntu does not ship the Thunderbird profile, but what about openSUSE or Ubuntu future plans?

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

I commented in the other bug, but will repeat myself here: "Note that this is rather tricky. If the user disabled the evince profile, using Px means that the exec will fail with 'profile not found'. There is no way to specify 'use P if it exists, otherwise C'."

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.