[Bug 1489489] Re: The org.freedesktop.DBus.GetConnectionAppArmorSecurityContext() method is deprecated
Launchpad Bug Tracker
1489489 at bugs.launchpad.net
Wed Sep 14 10:33:03 UTC 2016
This bug was fixed in the package mediascanner2 -
0.112+16.10.20160909-0ubuntu1
---------------
mediascanner2 (0.112+16.10.20160909-0ubuntu1) yakkety; urgency=medium
[ James Henstridge ]
* When multiple volumes are mounted in quick succession, scan them
serially to avoid reentrancy problems in the initial scan. (LP:
#1489656)
* Add apparmor-easyprof hardware directories to package so AppArmor
profile can compile when apparmor-easyprof-ubuntu isn't installed.
(LP: #1443693)
* Disable optimisation when compiling dbus-codec.cc to avoid gcc 6
compilation bug. (LP: #1621002)
* Replace deprecated use of GetConnectionAppArmorSecurityContext
method with GetConnectionCredentials. (LP: #1489489)
[ You-Sheng Yang ]
* Update mediascanner-extractor apparmor profile to cover Android
library locations on 64-bit systems.
-- James Henstridge <james.henstridge at canonical.com> Fri, 09 Sep 2016
13:46:43 +0000
** Changed in: mediascanner2 (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dbus in Ubuntu.
https://bugs.launchpad.net/bugs/1489489
Title:
The org.freedesktop.DBus.GetConnectionAppArmorSecurityContext() method
is deprecated
Status in Ubuntu Online Accounts API:
Confirmed
Status in apparmor package in Ubuntu:
In Progress
Status in content-hub package in Ubuntu:
Confirmed
Status in dbus package in Ubuntu:
Triaged
Status in media-hub package in Ubuntu:
Confirmed
Status in mediascanner2 package in Ubuntu:
Fix Released
Status in signon-apparmor-extension package in Ubuntu:
Confirmed
Status in ubuntu-download-manager package in Ubuntu:
Confirmed
Status in ubuntu-system-settings-online-accounts package in Ubuntu:
Confirmed
Bug description:
When upstream D-Bus merged the AppArmor mediation patches, they did
not like the GetConnectionAppArmorSecurityContext() bus method.
Instead, they decided to expose a peer's AppArmor context using the
org.freedesktop.DBus.GetConnectionCredentials() bus method. All users
of the GetConnectionAppArmorSecurityContext() method should switch to
the GetConnectionCredentials() method as soon as possible so that
Ubuntu can drop the patch that implements
GetConnectionAppArmorSecurityContext() by the time 16.04 LTS is
released.
In order to switch to the new method, you'll need to depend on
libapparmor 2.10 or newer.
I'll be adding example code that illustrates how to switch from
GetConnectionAppArmorSecurityContext() to GetConnectionCredentials().
content-hub, media-hub, mediascanner2, signon-apparmor-extension,
ubuntu-download-manager, and ubuntu-system-settings-online-accounts
all need to transition to the new method of obtaining the AppArmor
label.
The apparmor package should be updated to drop the libapparmor-
mention-dbus-method-in-getcon-man.patch patch and the dbus package
should be updated to drop the aa-get-connection-apparmor-security-
context.patch patch.
To manage notifications about this bug go to:
https://bugs.launchpad.net/online-accounts-api/+bug/1489489/+subscriptions
More information about the foundations-bugs
mailing list