polkit-org / polkit

polkit (formerly PolicyKit) is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.
Other
58 stars 29 forks source link

fix: pkexec fails with "GDBus.Error:org.freedesktop.PolicyKit1.Error.… #423

Closed jrybar-rh closed 7 months ago

jrybar-rh commented 7 months ago

…Failed: No session for cookie"

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

Jrybar: It makes sense that an agent is created against the UID of subject, because we want to authenticate THAT user. Using EUID 'root' doesn't seem necessary here and also causes the issue.

Resolves #269 Resolves #238 Resolves #18