qtcreator should use the click-apparmor query API to obtain the policy version

Bug #1293586 reported by Jamie Strandboge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
Medium
Benjamin Zeller

Bug Description

Currently qtcreator hard codes the apparmor policy_version in the security manifest to be 1.0. With the new 14.04 framework definitions, the policy_version should be 1.1 for 14.04 and 1.0 for 13.10. In order to prevent this mapping being stored in multiple places, click-apparmor 0.2 now provides a python API and a CLI tool for querying the profile version and you may query for the policy_version for the specified framework (https://wiki.ubuntu.com/Click/Frameworks). Eg:

$ aa-clickquery --click-framework=<framework> -q policy_version

Specific examples:
$ aa-clickquery --click-framework=ubuntu-sdk-13.10 -q policy_version
1.0

Supported 14.04 frameworks as of ubuntu-touch-meta (1.115):
$ aa-clickquery --click-framework=ubuntu-sdk-14.04-qml-dev1 -q policy_version
1.1
$ aa-clickquery --click-framework=ubuntu-sdk-14.04-papi-dev1 -q policy_version
1.1
$ aa-clickquery --click-framework=ubuntu-sdk-14.04-html-dev1 -q policy_version
1.1

Future 14.04 frameworks:
$ aa-clickquery --click-framework=ubuntu-sdk-14.04-qml -q policy_version
1.1
$ aa-clickquery --click-framework=ubuntu-sdk-14.04-papi -q policy_version
1.1
$ aa-clickquery --click-framework=ubuntu-sdk-14.04-html -q policy_version
1.1

Ie, this change will allow you to dynamically discover the policy_version based on the click framework that is installed on the system and you shouldn't have to do anything special when 14.10, 15.04, 15.10, etc are added.

IMPORTANT: click-apparmor does not currently use libclick but it is planned to do so this cycle. When it does use libclick, qtcreator may need to run aa-clickquery in a chroot that contains the installed framework, since libclick can only look at installed framework definitions for the API click-apparmor will use.

Tags: 1293586
Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
assignee: nobody → Zoltan Balogh (bzoltan)
importance: Undecided → Critical
status: New → Confirmed
Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
assignee: Zoltan Balogh (bzoltan) → zbenjamin (zeller-benjamin)
importance: Critical → Medium
Revision history for this message
Colin Watson (cjwatson) wrote :

Jamie: I'm sure we could allow libclick to look at a chroot. Get in touch with me when you're doing that work and I'll see what we can do.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 3.1.1+14.10.20140704-0ubuntu1

---------------
qtcreator-plugin-ubuntu (3.1.1+14.10.20140704-0ubuntu1) utopic; urgency=low

  [ Zoltán Balogh ]
  * Migrate the device check script from the obsolate project

  [ Benjamin Zeller ]
  * Merge the Ubuntu and QtC welcome page into one.
  * Use aa-clickquery to get correct policy version (LP: #1293586) (LP:
    #1293586)
  * Support SDK launcher for cmake based projects. Autocreate now can
    create a ToolChain directly if none is available .

  [ Michael Vogt ]
  * Fix for the webapps app.desktop template.

  [ Ubuntu daily release ]
  * New rebuild forced
 -- Ubuntu daily release <email address hidden> Fri, 04 Jul 2014 14:23:20 +0000

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Confirmed → Fix Released
hari (prahmana)
tags: added: 1293586
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.