vmihalko / t2_polkit

Other
0 stars 0 forks source link

fix: pkexec fails with "GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie" - [opened] #268

Open vmihalko opened 4 years ago

vmihalko commented 4 years ago

In GitLab by @huxiaodong on Jul 15, 2020, 09:37

_Merges uos/fix/issues17 -> master

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

vmihalko commented 4 years ago

In GitLab by @mliszcz on Aug 27, 2020, 16:44

Are there any plans to review and merge this change? I confirm it solved #17 for me (tested on Arch which comes with polkit 0.117-1) although I'm seeing another issue now when starting sway wm (see below) but maybe I just messed something up during configuration or installation.

00:00:00.007 [ERROR] [backend/session/logind.c:218] Failed to activate session: Action org.freedesktop.login1.chvt is not registered
00:00:00.007 [ERROR] [backend/session/direct-ipc.c:30] Do not have root privileges; cannot become DRM master
00:00:00.007 [ERROR] [backend/session/session.c:96] Failed to load session backend
00:00:00.007 [ERROR] [backend/backend.c:286] Failed to start a DRM session
vmihalko commented 3 years ago

In GitLab by @postovalovya on May 19, 2021, 12:55

I'm very looking forward to this.

vmihalko commented 3 years ago

In GitLab by @soloturn on Jul 18, 2021, 22:22

hi @mikhailnov , what you think about this one?

vmihalko commented 3 years ago

In GitLab by @mikhailnov on Jul 18, 2021, 23:39

@soloturn I ahve no idea what it is, why are you asking me o_O ?

vmihalko commented 2 years ago

In GitLab by @Artturin on Nov 5, 2021, 21:43

Ping. i've applied this patch to polkit and now pkexec works properly https://github.com/NixOS/nixpkgs/issues/18012#issuecomment-962206634

vmihalko commented 11 months ago

In GitLab by @emanuel0xb on Sep 25, 2023, 22:54

Hi, @jrybar. I noticed the same referenced issue with the Fedora i3 Spin, as Anaconda switched from consolehelper to polkit and the live CD doesn't use another polkit agent. Is there any chance you could have a look at this merge request? From what I understand NixOS successfully has been running polkit with this patch for a while, see the linked issue from @Artturin. I'm happy to verify if it worked or not. A simple example would include running pkexec true without any other polkit agent. Thanks a lot for your effors working on polkit!

vmihalko commented 11 months ago

In GitLab by @Artturin on Sep 26, 2023, 02:10

@emanuel0xb We ended up not merging the patch with the reasoning that we couldn't review it properly

it is a random patch of a security-critical component. I worry that it might compromise security.f