← Back to team overview

touch-packages team mailing list archive

[Bug 1459259] Re: Apps using OpenAL on the Ubuntu Phone appear to have direct hardware access despite apparmor constraints

 

As far as I know, it _can_ use pulseaudio but don't know if that is what
is happening here. I had been told on the IRC channel that the reason it
was not responding to the volume control was because it was not using
pulse, and suggested it was directly accessing the hardware. I have no
idea how to confirm that but am happy to do any suggested debugging.

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

Title:
  Apps using OpenAL on the Ubuntu Phone appear to have direct hardware
  access despite apparmor constraints

Status in apparmor package in Ubuntu:
  Incomplete

Bug description:
  I have been building some apps for the phone which use OpenAL. They
  will play audio if running under the "audio" policy group. However,
  the volume of audio is not controlled by the volume slider or "Silent
  mode" switch and audio can continue to play if the app is backgrounded
  or phone screen is switched off. After discussion on #ubuntu-touch it
  was suggested this may imply the apps have direct hardware access,
  despite apparmor constraints.

  I do not know if this is a security vulnerability, so I will report it
  as such to be safe.

  Attached is a .click package build for Ubuntu phones (armhf). It
  contains a small OpenAL example app borrowed from a blog site (source
  code included in click) and bundles the current OpenAL lib from the
  14.10 distribution. It runs under apparmor constraints, and is only
  granted access to the "audio" group. The app would be automatically
  accepted to the Ubuntu Store.

  The audio will continue to play until the app is killed by the user.
  It will play in silent mode, when in the background or when the screen
  is off. The app has been tested on BQ and meizu devices running RTM
  and vivid.

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


References