← Back to team overview

touch-packages team mailing list archive

[Bug 1357348] Re: Cannot play sound files due to apparmor permission issue

 

This bug was fixed in the package media-hub -
1.0.0+14.10.20140813-0ubuntu2

---------------
media-hub (1.0.0+14.10.20140813-0ubuntu2) utopic; urgency=medium

  * debian/usr.bin.media-hub-server: remove 'audit deny owner /** m,' since it
    is overriding the rule to allow mmap of /tmp/orcexec files (AppArmor will
    still deny other mmap access)
    - LP: #1357348
 -- Jamie Strandboge <jamie@xxxxxxxxxx>   Fri, 15 Aug 2014 07:22:05 -0500

** Changed in: media-hub (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
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/1357348

Title:
  Cannot play sound files due to apparmor permission issue

Status in Media Hub:
  New
Status in Media Scanner v2:
  New
Status in “media-hub” package in Ubuntu:
  Fix Released
Status in “mediascanner2” package in Ubuntu:
  Triaged

Bug description:
  In the clock app we read /usr/share/sounds/ubuntu/ringtones and when
  trying to use MediaPlayer{} or Audio{}, it works on the desktop but
  fails on the device. Doing a quick grep DEN /var/log/syslog reveals
  the following apparmor denials,

  Aug 15 11:16:58 ubuntu-phablet kernel: [ 3968.875354] type=1400 audit(1408094218.079:104): apparmor="DENIED" operation="file_mmap" profile="/usr/bin/media-hub-server" name="/tmp/orcexec.CLp5yf" pid=5825 comm="aqueue:src" requested_mask="m" denied_mask="m" fsuid=32011 ouid=32011
  Aug 15 11:16:58 ubuntu-phablet kernel: [ 3968.875506] type=1400 audit(1408094218.079:105): apparmor="DENIED" operation="mknod" profile="/usr/bin/media-hub-server" name="/run/user/32011/orcexec.cntnWk" pid=5825 comm="aqueue:src" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011

  On talking to jdstrand,
  2:09 PM <jdstrand> ah
  2:10 PM <jdstrand> we have this rule:owner /tmp/orcexec* m,
  2:10 PM <jdstrand> but it is overriden by this: audit deny owner /** m,
  2:10 PM <jdstrand> nik90: can you file a bug against media-hub?

  Original summary: in /usr/share/sound/** folder

To manage notifications about this bug go to:
https://bugs.launchpad.net/media-hub/+bug/1357348/+subscriptions