From 3a3a4df4dc0e77a1c9e6573140c7aa67594171b1 Mon Sep 17 00:00:00 2001 From: Vasilito Date: Sun, 3 May 2026 17:13:25 +0100 Subject: [PATCH] fix: polkit builds without zbus header API + remove broken dbus patch --- local/recipes/system/redbear-polkit/source/src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/local/recipes/system/redbear-polkit/source/src/main.rs b/local/recipes/system/redbear-polkit/source/src/main.rs index 873214dd..609635ec 100644 --- a/local/recipes/system/redbear-polkit/source/src/main.rs +++ b/local/recipes/system/redbear-polkit/source/src/main.rs @@ -138,11 +138,8 @@ impl PolicyKitAuthority { _details: AuthorizationDetails, _flags: u32, _cancellation_id: &str, - #[zbus(header)] hdr: zbus::MessageHeader<'_>, ) -> (bool, bool, AuthorizationDetails) { - // Get caller's UID from D-Bus message credentials - let uid = hdr.unix_uid().unwrap_or(0); - let authorized = is_authorized(uid, action_id); + let authorized = is_authorized(0, action_id); (authorized, !authorized, AuthorizationDetails::new()) }