[Bug 1227681] Re: dangling symlinks in /var/lib/apparmor/clicks

Launchpad Bug Tracker 1227681 at bugs.launchpad.net
Fri Sep 20 17:33:40 UTC 2013


This bug was fixed in the package click - 0.4.7

---------------
click (0.4.7) saucy; urgency=low

  * Run system hooks when removing a package from the file system
    (LP: #1227681).
  * If a hook symlink is already correct, don't unnecessarily remove and
    recreate it.
  * Improve "click hook install-system" and "click hook install-user" to
    remove any stale symlinks they find, and to run Exec commands only once
    per hook.  This significantly speeds up system and session startup when
    lots of applications are installed (LP: #1227604).
  * Rename "click hook install-system" and "click hook install-user" to
    "click hook run-system" and "click hook run-user" respectively, to
    better fit their semantics.  (I expect these commands only to have been
    used internally by click's own Upstart jobs.)
  * Filter version control metadata and editor backup files out of binary
    packages in "click build" (LP: #1223640).
 -- Colin Watson <cjwatson at ubuntu.com>   Fri, 20 Sep 2013 18:07:13 +0100

** Changed in: click (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1227681

Title:
  dangling symlinks in /var/lib/apparmor/clicks

Status in “click” package in Ubuntu:
  Fix Released

Bug description:
  People have reported dangling symlinks in /var/lib/apparmor/clicks.
  click-apparmor will just skip them so this isn't a problem users will
  see, but should be fixed nonetheless. This definitely happens on
  upgrades.

  Eg:

  When ubuntu-sdk-1310-api-demos 0.2 is installed I have:
  $ ls -l /var/lib/apparmor/clicks/net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos_ubuntu-sdk-1310-api-demos_0.2.json
  lrwxrwxrwx 1 root root 112 Sep 18 15:29 /var/lib/apparmor/clicks/net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos_ubuntu-sdk-1310-api-demos_0.2.json -> /opt/click.ubuntu.com/net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos/0.2/ubuntu-sdk-1310-api-demos.json
  $ grep policy_version /var/lib/apparmor/clicks/net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos_ubuntu-sdk-1310-api-demos_0.2.json 
    "policy_version": 1.0

  
  then I run:
  $ sudo click install --user=$USER --force-missing-framework ./net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos_0.3_all.click
  $ ls -l /var/lib/apparmor/clicks/net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos_ubuntu-sdk-1310-api-demos_0.2.json
  lrwxrwxrwx 1 root root 112 Sep 18 15:29 /var/lib/apparmor/clicks/net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos_ubuntu-sdk-1310-api-demos_0.2.json -> /opt/click.ubuntu.com/net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos/0.2/ubuntu-sdk-1310-api-demos.json
  $ grep policy_version /var/lib/apparmor/clicks/net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos_ubuntu-sdk-1310-api-demos_0.2.json 
  grep: /var/lib/apparmor/clicks/net.launchpad.ubuntu-security.ubuntu-sdk-1310-api-demos_ubuntu-sdk-1310-api-demos_0.2.json: No such file or directory

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



More information about the foundations-bugs mailing list