Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polkit setup crashing on Fedora 39 #156

Open
Lcchy opened this issue Apr 13, 2024 · 5 comments
Open

Polkit setup crashing on Fedora 39 #156

Lcchy opened this issue Apr 13, 2024 · 5 comments
Assignees
Labels
bug Something isn't working needs triage

Comments

@Lcchy
Copy link

Lcchy commented Apr 13, 2024

Hello, thanks so much for this great software! I appreciate the security focused approach.

On Fedora 39, when installing via the rpm, I am somehow unable to setup Polkit properly:

$ goldwarden setup polkit
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
Authentication is needed to run `/usr/bin/mv /tmp/goldwarden-policy /us ... actions/com.quexten.goldwarden.policy' as the super user
Authenticating as: lcchy
Password: 
==== AUTHENTICATION FAILED ====
panic: exit status 127

goroutine 1 [running]:
github.com/quexten/goldwarden/cmd.setupPolkit()
	/home/runner/work/goldwarden/goldwarden/cmd/setup_linux.go:48 +0x496
github.com/quexten/goldwarden/cmd.glob..func24(0xc96aa0?, {0x92c989?, 0x0?, 0x0?})
	/home/runner/work/goldwarden/goldwarden/cmd/setup_linux.go:80 +0x17
github.com/spf13/cobra.(*Command).execute(0xc96aa0, {0xd062b0, 0x0, 0x0})
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:987 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0xc953a0)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1115 +0x425
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1039
github.com/quexten/goldwarden/cmd.Execute({{0x0, 0x0}, 0x0, {0xc000030a80, 0x2e}, 0x0, 0x0, {0x0, 0x0}, {0x0, ...}, ...})
	/home/runner/work/goldwarden/goldwarden/cmd/root.go:29 +0xea
main.main()
	/home/runner/work/goldwarden/goldwarden/main.go:52 +0x5f8

Any help would be very appreciated.

@quexten quexten added the bug Something isn't working label Apr 13, 2024
@sandboiii
Copy link

Hey, I had the same problem on Arch. I tried to run setup in Hyprland session and encountered this error. Then I opened X11 Cinnamon session and run setup again without any errors. Looks like there is a problem with Wayland.

@quexten
Copy link
Owner

quexten commented Apr 28, 2024

@sandboiii, @Lcchy do you have a polkit agent set up? I.e what does pkexec whoami output?

@quexten
Copy link
Owner

quexten commented Apr 28, 2024

For hyprland this should help: https://wiki.archlinux.org/title/Hyprland#Polkit_authentication

@quexten
Copy link
Owner

quexten commented Apr 29, 2024

If that's not it, also try again on 0.2.15 please.

@sandboiii
Copy link

@quexten yeah, I haven't setup polkit agent and thus got this error. Now, I get this output after running setup:

failed setting selinux context
exit status 1
Polkit setup successfully

Is it acceptable to fail setting selinux context? My auth agent is /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

3 participants