← Back to team overview

touch-packages team mailing list archive

[Bug 1519378] Re: Add access to download manager's new getUncollectedDownloads method in the networking profile

 

I'll mention that if the the download manager triggered off the payload
for a member rule or added a member to a more generic rule, the profile
would not have to change. I don't know the download manager API, but
looking at an existing rule:

dbus (receive, send)
     bus=session
     path=/com/canonical/applications/download/@{APP_ID_DBUS}/**
     interface=com.canonical.applications.Download
     peer=(label=unconfined),

If you created a method in this path and under this interface, then it would just work.  Alternatively, consider this rule:
dbus (send)
     bus=session
     path=/
     interface=com.canonical.applications.DownloadManager
     member=getAllDownloads
     peer=(label=unconfined),

If getAllDownloads() took an argument of some sort (ie, the message data
changes) then the policy also would not have to change.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor-easyprof-ubuntu
in Ubuntu.
https://bugs.launchpad.net/bugs/1519378

Title:
  Add access to download manager's new getUncollectedDownloads method in
  the networking profile

Status in Canonical System Image:
  Incomplete
Status in apparmor-easyprof-ubuntu package in Ubuntu:
  Incomplete

Bug description:
  We're introducing a new method to download manager's dbus api in this
  branch: https://code.launchpad.net/~michael-sheldon/ubuntu-download-
  manager/persistent-download-model

  This allows the client side bindings to automatically request a list
  of downloads that have finished while the application was closed, so
  downloads are no longer lost if the app is closed or restarted before
  they finish.

  e.g.

  dbus (send)
       bus=session
       path=/
       interface=com.canonical.applications.DownloadManager
       member=getUncollectedDownloads
       peer=(label=unconfined),

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1519378/+subscriptions


References