Apps don't start if click packages update without version number bump

Bug #1291549 reported by Alan Pope 🍺🐧🐱 πŸ¦„
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
click-apparmor (Ubuntu)
Fix Released
High
Jamie Strandboge

Bug Description

Have some apps installed which are pre-installed and updated via the store.
Update phone with new software which includes the same version as the latest version in the store.
Note that said apps no longer start.
You may see the following in "dmesg -t | grep DEN"

[Wed Mar 12 18:02:23 2014] type=1400 audit(1394647344.351:243): apparmor="DENIED" operation="open" parent=1917 profile="com.ubuntu.calendar_calendar_0.4.201" name="/opt/click.ubuntu.com/com.ubuntu.calendar/0.4.201/calendar.qml" pid=2982 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=104

The work around is to run:-

sudo aa-clickhook -f

Steps to reproduce:-

# Wipe phone and install clean
ubuntu-device-flash --channel=trusty-proposed --wipe --revision=226
# Grab a the click package (attached to this bug) which matches the version in the above rev of the phone
wget http://popey.mooo.com/mirror/clicks/2014-03-09-100001/com.ubuntu.calendar_0.4.201_all.click
# Install it
pkcon install-local com.ubuntu.calendar_0.4.201_all.click
# Note versions installed match:-
/usr/share/click/preinstalled/com.ubuntu.calendar/0.4.201
matches
/opt/click.ubuntu.com/com.ubuntu.calendar/0.4.201
# Start the app via the dash
# Observe white screen and above error in dmesg.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: click-apparmor 0.1.14
Uname: Linux 3.4.0-5-mako armv7l
ApportVersion: 2.13.2-0ubuntu5
Architecture: armhf
Date: Wed Mar 12 18:29:58 2014
InstallationDate: Installed on 2014-03-07 (5 days ago)
InstallationMedia: Ubuntu Trusty Tahr (development branch) - armhf (20140307.2)
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 SHELL=/bin/bash
SourcePackage: click-apparmor
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :
Changed in click-apparmor (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Jamie Strandboge (jdstrand)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Made it through CI Train to trusty-proposed.

Changed in click-apparmor (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click-apparmor - 0.1.15.3

---------------
click-apparmor (0.1.15.3) trusty; urgency=low

  [ Jamie Strandboge ]
  * regenerate policy if hook symlink is newer than the profile (LP: #1291549)
  * debian/control: update for CI Train
    - Set X-Auto-Uploader to no-rewrite-version
    - Set Vcs-Bzr to the new target branch
 -- Ubuntu daily release <email address hidden> Thu, 13 Mar 2014 02:18:35 +0000

Changed in click-apparmor (Ubuntu):
status: Fix Committed → Fix Released
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.