Comment 3 for bug 1392368

Jamie Strandboge (jdstrand) wrote :

apparmor-easyprof-ubuntu needs another change due to this denial:
Jan 8 17:53:58 ubuntu-phablet kernel: [99908.971037]type=1400 audit(1420746838.140:316): apparmor="DENIED" operation="open" profile="com.ubuntu.camera_camera_3.0.0.latest" name="/media/phablet/" pid=26014 comm="camera-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0

The media is in /media/<user>/<label>/Pictures|Music|Video. There is supposed to be a way for an app like the camera to find out the 'label', but that doesn't exist right now so the camera has to list the directory contents of /media/user to get it. As such, apparmor-easyprof-ubuntu needs to (temporarily) add this rule:
  /media/*/ r,