please provide gui for security manifest

Bug #1221407 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu
Fix Released
Critical
Juhapekka Piiroinen
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
Critical
Juhapekka Piiroinen

Bug Description

I know this is planned but wanted to file a bug to give additional information.

Currently Simple tab provides a text input field to add policy groups. It would be good if the sdk could enumerate the policy groups. The policy groups can be enumerated with:
$ aa-easyprof --list-policy-groups --policy-vendor=ubuntu --policy-version=1.0
accounts
audio
...

As of apparmor-easyprof-ubuntu 1.0.29, policy groups have two fields of metadata which the SDK can use. You can get the contents of the policy group with:
$ aa-easyprof --show-policy-group -p <group> --policy-vendor=ubuntu --policy-version=1.0

Eg:
$ aa-easyprof --show-policy-group -p networking --policy-vendor=ubuntu --policy-version=1.0
# Description: Can access the network
# Usage: common
#include <abstractions/nameservice>
#include <abstractions/openssl>

or:
$ aa-easyprof --show-policy-group -p music_files --policy-vendor=ubuntu --policy-version=1.0
# Description: Can read and write to music files. This policy group is
# reserved for certain applications, such as music players. Developers
# should typically use the content_exchange policy group and API to
# access music files instead.
# Usage: reserved
owner @{HOME}/Music/ r,
owner @{HOME}/Music/** rwk,

I'm not sure how you want to display all this to the user, but it is worth noting that the 'Usage' meta-information should be used by the SDK in some manner. Policy groups with 'Usage: common' are safe for all applications to use, but ones with 'Usage: reserved' will likely cause problems during the review process and may waste the developer's time if their app is rejected for using it. Perhaps if the meta information (Description and Usage for now) was display along with the policy group, developers would have enough information to decide. It may make sense for the reserved policy groups to be hidden or require a confirmation to add. We want to discourage their use in general. This should probably be generalized incase we add other Usage tags, like 'core-apps', etc.

See /usr/share/doc/apparmor-easyprof-ubuntu/README.Debian for more details.

Please also make sure that the SDK doesn't leave any empty policy groups. Currently it is very easy for it to do:
 "policy_groups": [
   "",
   "",
   ""
 }

If the app specifies no policy groups, then use:
 "policy_groups": []

in the json

tags: added: appstore
description: updated
tags: added: application-confinement
affects: qtcreator (Ubuntu) → qtcreator-plugin-ubuntu (Ubuntu)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in qtcreator-plugin-ubuntu:
importance: Undecided → High
status: New → Confirmed
Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu:
assignee: nobody → Juhapekka Piiroinen (juhapekka-piiroinen)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
assignee: nobody → Juhapekka Piiroinen (juhapekka-piiroinen)
Changed in qtcreator-plugin-ubuntu:
importance: High → Critical
Changed in qtcreator-plugin-ubuntu (Ubuntu):
importance: High → Critical
description: updated
Changed in qtcreator-plugin-ubuntu:
status: Confirmed → Fix Committed
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 2.7.2-0ubuntu3

---------------
qtcreator-plugin-ubuntu (2.7.2-0ubuntu3) saucy; urgency=low

  * USB Device connection / disconnection detection.
  * Refactored Menus.
  * Can't set version number in Packaging form (LP: #1212326)
  * QtC cuts folder names when building on the device (LP: #1212937)
  * Click packages need to exclude the .bzr dir (LP: #1214628)
  * Force lower case click package name (LP: #1219877)
  * Packaging resets package name, other attributes to default every
    time it's opened (LP: #1219948)
  * please provide gui for security manifest (LP: #1221407)
  * Cannot enable developer mode on read-only image (LP: #1223301)
  * Cannot launch application through qtcreator (LP: #1225178)
  * Application installation script problems (LP: #1213902)
  * Comment field in .desktop file should be generated on the fly
    (LP: #1223388)
  * SDK should set applicationName to "name" value in the click manifest
    (LP: #1227085)
 -- Juhapekka Piiroinen <email address hidden> Wed, 18 Sep 2013 15:36:58 +0300

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