apparmor profile tries to import non existing directories

Bug #1532530 reported by Jean-Philippe Guérard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediascanner2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Apparmor fails to start when mediascanner2.0 is installed:

janv. 10 09:52:26 tigreraye.nulle.part systemd[1]: Starting LSB: AppArmor initialization...
janv. 10 09:52:26 tigreraye.nulle.part apparmor[12761]: * Starting AppArmor profiles
janv. 10 09:52:27 tigreraye.nulle.part apparmor[12761]: Erreur de l'analyseur AppArmor pour /etc/apparmor.d/usr.bin.mediascanner-service-2.0 in /etc/apparmor.d/usr.bin.mediascanner-service-2.0 ? la ligne 14 : Impossible d'ouvrir << /usr/share/apparmor/hardware/audio.d >>
janv. 10 09:52:27 tigreraye.nulle.part apparmor[12761]: Erreur de l'analyseur AppArmor pour /etc/apparmor.d/usr.bin.mediascanner-service-2.0 in /etc/apparmor.d/usr.bin.mediascanner-service-2.0 ? la ligne 14 : Impossible d'ouvrir << /usr/share/apparmor/hardware/audio.d >>
janv. 10 09:52:27 tigreraye.nulle.part apparmor[12761]: ...fail!
janv. 10 09:52:27 tigreraye.nulle.part systemd[1]: apparmor.service: Control process exited, code=exited status=123
janv. 10 09:52:27 tigreraye.nulle.part systemd[1]: Failed to start LSB: AppArmor initialization.
janv. 10 09:52:27 tigreraye.nulle.part systemd[1]: apparmor.service: Unit entered failed state.
janv. 10 09:52:27 tigreraye.nulle.part systemd[1]: apparmor.service: Failed with result 'exit-code'.

(The error message says: "unable to open /usr/share/apparmor/hardware/audio.d".)

The mediascanner2.0 apparmor profile contains the following 3 lines :

  #include "/usr/share/apparmor/hardware/audio.d"
  #include "/usr/share/apparmor/hardware/graphics.d"
  #include "/usr/share/apparmor/hardware/video.d"

The directory /usr/share/apparmor exists but is empty.

Commenting out these 3 lines fixes the problem.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: mediascanner2.0 0.107+15.10.20150922.1-0ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-23.28-generic 4.2.6
Uname: Linux 4.2.0-23-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Jan 10 09:58:23 2016
SourcePackage: mediascanner2
UpgradeStatus: Upgraded to wily on 2015-10-23 (79 days ago)
mtime.conffile..etc.apparmor.d.usr.bin.mediascanner.service.2.0: 2016-01-10T09:54:25.918889

Revision history for this message
Jean-Philippe Guérard (fevrier) wrote :
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.