← Back to team overview

touch-packages team mailing list archive

[Bug 1443693] Re: AppArmor parser error for /etc/apparmor.d/usr.bin.mediascanner-service-2.0

 

mediascanner should create these directories as part of its install. It
could alternatively Depends on apparmor-easyprof-ubuntu, but on a
traditional desktop system that policy is not needed so I suggest just
creating the files in the mediascanner2 package itself.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mediascanner2 in Ubuntu.
https://bugs.launchpad.net/bugs/1443693

Title:
  AppArmor parser error for /etc/apparmor.d/usr.bin.mediascanner-
  service-2.0

Status in mediascanner2 package in Ubuntu:
  New

Bug description:
  1. Start with a fresh Utopic machine - I used a cloud image.
  2. Install mediascanner2.0

  Expected results: no errors

  Actual results:

  Setting up mediascanner2.0 (0.105+14.10.20141001-0ubuntu1) ...
  AppArmor parser error for /etc/apparmor.d/usr.bin.mediascanner-service-2.0 in /etc/apparmor.d/usr.bin.mediascanner-service-2.0 at line 14: Could not open '/usr/share/apparmor/hardware/audio.d'

  Further, "sudo start apparmor" now fails with the following when it
  previously completed without error:

  start: Job failed to start

  I see that /usr/share/apparmor/hardware/audio.d exists on my phone and
  is provided by lxc-android-config and apparmor-easyprof-ubuntu. As the
  apparmor profile shipped relies on these directories to exist, there
  is either a dependency missing or the profile needs to be tweaked to
  ignore missing directories (not sure if that's possible?) or perhaps
  ship empty directories.

  I presume the solution will need to cover graphics.d and video.d also.

  Perhaps the package is not useful on a desktop machine, but even then
  it shouldn't fail like this.

  Workaround: sudo mkdir -p
  /usr/share/apparmor/hardware/{audio,graphics,video}.d

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: mediascanner2.0 0.105+14.10.20141001-0ubuntu1
  ProcVersionSignature: User Name 3.16.0-30.40-generic 3.16.7-ckt3
  Uname: Linux 3.16.0-30-generic x86_64
  ApportVersion: 2.14.7-0ubuntu8.1
  Architecture: amd64
  Date: Mon Apr 13 23:29:50 2015
  SourcePackage: mediascanner2
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1443693/+subscriptions


References