Apparmor profile does not recognize plugins in .mozilla

Bug #428071 reported by Jonathan Davies
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
firefox-3.5 (Ubuntu)
Fix Released
Low
Jamie Strandboge

Bug Description

Binary package hint: firefox-3.5

The Apparmor profile for Firefox shipped in Karmic does not allow plugins from ~/.mozilla/plugins/* to be loaded.

This is where I keep my 64-bit Flash plugin for example:

[35665.136769] type=1503 audit(1252697241.188:405): operation="file_mmap" pid=7032 parent=1 profile="/usr/lib/firefox-3.5.*/firefox" requested_mask="mr::" denied_mask="m::" fsuid=1000 ouid=1000 name="~/.mozilla/plugins/libflashplayer.so"

Adding a:

    @{HOME}/.mozilla/plugins/** rm,

...line to the profile ought to do it.

Jonathan Davies (jpds)
Changed in firefox-3.5 (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Jonathan,

You said this 'ought to do it'. Does adding the line to /etc/apparmor.d/usr.bin.firefox-3.5 and doing 'apparmor_parser -r /etc/apparmor.d/usr.bin.firefox-3.5' fix it for you?

Alexander,

Can the plugins directory also be under a profile? I'm wondering if it would be best to add both:
  @{HOME}/.mozilla/plugins/** rm,
  @{HOME}/.mozilla/**/plugins/** rm,

Changed in firefox-3.5 (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Jonathan Davies (jpds) wrote :

Yes, that's what I did, and Flash sites are working fine now.

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

Thanks Jonathan. strace shows that firefox will also look in the profile directory.

Changed in firefox-3.5 (Ubuntu):
status: Incomplete → In Progress
Changed in firefox-3.5 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package firefox-3.5 - 3.5.3+build1+nobinonly-0ubuntu4

---------------
firefox-3.5 (3.5.3+build1+nobinonly-0ubuntu4) karmic; urgency=low

  [ Fabien Tassin <email address hidden> ]
  * Bump requirement for system sqlite to >= 3.6.16 (bmo 508104)
    - update debian/rules

  [ Alexander Sack <email address hidden> ]
  * fix LP: #423610 - daily build failures after landing of mozilla-nss.pc droppage
    (bug 422829); we drop our previously used nspr pkgconfig patch and fix
    configure.in to not require in-source nspr if libxul-sdk is used
    - delete debian/patches/nspr_flags_by_pkg_config_hack.patch
    - add debian/patches/bzXXX_libxul_sdk_nspr.patch
    - update debian/patches/series
  * now that we always use libxul-sdk for getting the nspr flags we
    can use --without-system-nspr and --without-system-nss all the time
    - update debian/rules
  * rework localized search engine patch to use ChromeRegistry locale
    information rather than a char pref; also change plugin dir order to allow
    locale specific searchplugins to overlay the ones shipped in
    "searchplugins/common"
    - add debian/patches/bz515232_att399338_distro_locale_searchplugins.patch
    - update debian/patches/series
  * adjust packaging to support localized searchplugins
    + ship default searchplugins in /usr/lib/firefox-addons/searchplugins/en-US/
      and link that directory to $(DEBIAN_FF3_DIR)/distribution/searchplugins instead
      of the main firefox APP_DIR
      - update debian/rules
    + set default searchplugin locale pref to en-US - which is used as a
      fallback if no matching searchplugins/LOCALE directory exists for the
      current locale directory
      - update debian/firefox.js
    + do not install upstream searchplugins through debhelper file and
      install "debsearch" to the new distribution/.../en-US location
      - update debian/firefox-3.0.install
    + ship "common" searchplugins link that points to the old default
      searchplugins location '/usr/lib/firefox-addons/searchplugins/
      - update debian/rules

  [ Jamie Strandboge <email address hidden> ]
  * fix bugs surrounding apparmor profile
    + allow ixr access to gnash (LP: #429061)
    + allow ixr access to pulseaudio (LP: #432702)
    + allow access to plugins directory (LP: #428071)
    + allow access to mounted media (LP: #433362)
    + allow access to abstractions/ubuntu-console-email,
      abstractions/ubuntu-email and abstractions/ubuntu-gnome-terminal
      for mailto:. Add commented section for using xterm and konsole
      - update debian/usr.bin.firefox-3.5
    + allow access to extensions directory (LP: #433128)
    + allow 'k' access to @{HOME}/.mozilla/**/*.sqlite* (LP: #449286)
    + allow Ux access to apport-bug (LP: #449423)
    + allow access to /etc/mplayerplug-in.conf (LP: #439484)

 -- Alexander Sack <email address hidden> Thu, 15 Oct 2009 02:30:48 +0200

Changed in firefox-3.5 (Ubuntu):
status: Fix Committed → Fix Released
hiroy (hiroy71)
Changed in firefox-3.5 (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

hiroy, this bug is fixed for the user who reported it. Please file a new bug.

Changed in firefox-3.5 (Ubuntu):
status: Fix Committed → 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.