Skip to content

Commit

Permalink
fix: pkexec fails with "GDBus.Error:org.freedesktop.PolicyKit1.Error.…
Browse files Browse the repository at this point in the history
…Failed: No session for cookie" (#423)

bug:https://gitlab.freedesktop.org/polkit/polkit/-/issues/17

Co-authored-by: huxd1532 <[email protected]>
  • Loading branch information
jrybar-rh and huxd1532 authored Feb 9, 2024
1 parent 282132b commit f93c746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/polkitbackend/polkitbackendinteractiveauthority.c
Original file line number Diff line number Diff line change
Expand Up @@ -2611,7 +2611,8 @@ polkit_backend_interactive_authority_register_authentication_agent (PolkitBacken
priv->agent_serial++;
agent = authentication_agent_new (priv->agent_serial,
subject,
user_of_caller,
user_of_subject,/*fix pkexec fails with No session for cookie,
upstream issue:https://gitlab.freedesktop.org/polkit/polkit/issues/17*/
polkit_system_bus_name_get_name (POLKIT_SYSTEM_BUS_NAME (caller)),
locale,
object_path,
Expand Down

0 comments on commit f93c746

Please sign in to comment.