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

Shutdown cancel may not be available to non-root users #17325

Open
martinpitt opened this issue May 9, 2022 · 1 comment
Open

Shutdown cancel may not be available to non-root users #17325

martinpitt opened this issue May 9, 2022 · 1 comment

Comments

@martinpitt
Copy link
Member

Explain what happens

In PR #17302 we quick-fixed the "cancel pending shutdown" functionality for systemd 251. However, tthis is an incomplete fix: We should not even show the cancel action if the session is not root and not allowed via a polkit rule. This is rather intrusive, as we don't routinely query polkit so far, only in pkg/networkmanager/firewall-client.js. Generalize this, and use it for this functionality.

Also see issues #11033, #16345

Version of Cockpit

268.1

Where is the problem in Cockpit?

Overview

Server operating system

No response

Server operating system version

No response

What browsers are you using?

No response

System log

No response

@jelly
Copy link
Member

jelly commented May 9, 2022

See pkcheck usage in cockpit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants