feat: Polkit authorization for linux-hello-polman (EPIC-17 gap) #29
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
elegos/linux-hello#29
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
docs/lld/polman.md:84,159: polkit authorization is deferred in the currentlinux-hello-polmanimplementation. Write operations currently require raw UID 0 — a directnix::unistd::getuid() == 0check.Impact
Non-root administrators cannot be delegated policy-editing rights. The polkit policy file (
polkit/name.giacomofurlan.linux_hello.policy) is present in the repo but not used for policy management authorization.Fix
linux-hello-polmanforsetandunsetsubcommands, using thename.giacomofurlan.linux_hello.set-trust-policypolkit action.set_trust_policyD-Bus handler.polkit/name.giacomofurlan.linux_hello.policywith appropriateallow_active/allow_admin_authsettings.