Skip to content

Drop deprecated calls to GetConnectionAppArmorSecurityContext

Around 10 years ago, we introduced GetConnectionAppArmorSecurityContext() in DBus in Ubuntu. Upstream pushed back and instead exposed the AppArmor's context in org.freedesktop.DBus.GetConnectionCredentials().

So far, we have maintained GetconnectionAppArmorSecurityContext() as a delta in Ubuntu so that existing software do not break. However, the recommended way (and the only portable way) is to use GetConnectionCredentials() instead. Furthermore, it is about time we drop support for the former in Ubuntu.

The patch is inspired from 4c4d7961261b41ac41f24c8ce75563ab12f6b74c from the https://gitlab.com/ubports/development/core/lomiri-thumbnailer/ repository.

Signed-off-by: Olivier Gayot olivier.gayot@canonical.com

Merge request reports