cargo / zbus_polkit
zbus_polkit
What changed in zbus_polkit 5 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-12.
10 breaking1 security2 new APIs and options1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initzbus_polkit 610 changes
Breaking changes 10
AuthorityFeatures is now a bitflags type, changing how developers represent and use its flags.
The options argument changes type because zbus::zvariant::Value is now zbus::Variant.
AuthorityProxyBlocking is dropped because zbus 6 has no blocking API.
The blocking-api feature is dropped because zbus 6 has no blocking API.
CheckAuthorizationFlags is now a bitflags type, changing how developers represent and use its flags.
Identity::identity_details changes type because zbus::zvariant::Value is now zbus::Variant.
The minimum supported Rust version is raised to 1.89.
Subject fields are hidden; its kind is available through Subject::kind.
Subject::new_for_owner now passes a pidfd.
The PID-based Subject::new_for_owner is renamed to Subject::new_for_pid.
zbus_polkit 54 changes
Security 1
zbus_polkit: authorization bypass via PID reuse
New APIs and options 2
Implements serde::Serialize for TemporaryAuthorization, allowing it to be serialized.
Adds a Cargo feature that mostly proxies the corresponding zbus feature.
Fixes and other changes 1
Uses the correct type for sending UID to polkit.