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().
When upstream D-Bus merged the AppArmor mediation patches, they did not like the GetConnectionAp pArmorSecurityC ontext( ) bus method. Instead, they decided to expose a peer's AppArmor context using the org.freedesktop .DBus.GetConnec tionCredentials () bus method. All users of the GetConnectionAp pArmorSecurityC ontext( ) method should switch to the GetConnectionCr edentials( ) method as soon as possible so that Ubuntu can drop the patch that implements GetConnectionAp pArmorSecurityC ontext( ) 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 GetConnectionAp pArmorSecurityC ontext( ) to GetConnectionCr edentials( ).