fix: polkit builds without zbus header API + remove broken dbus patch

This commit is contained in:
2026-05-03 17:13:25 +01:00
parent 29617421cc
commit 3a3a4df4dc
@@ -138,11 +138,8 @@ impl PolicyKitAuthority {
_details: AuthorizationDetails, _details: AuthorizationDetails,
_flags: u32, _flags: u32,
_cancellation_id: &str, _cancellation_id: &str,
#[zbus(header)] hdr: zbus::MessageHeader<'_>,
) -> (bool, bool, AuthorizationDetails) { ) -> (bool, bool, AuthorizationDetails) {
// Get caller's UID from D-Bus message credentials let authorized = is_authorized(0, action_id);
let uid = hdr.unix_uid().unwrap_or(0);
let authorized = is_authorized(uid, action_id);
(authorized, !authorized, AuthorizationDetails::new()) (authorized, !authorized, AuthorizationDetails::new())
} }