Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sandsmark/polkit-dumb-agent
a polkit agent in 145 lines of code, because polkit is dumb and none of the other agents worked
https://github.com/sandsmark/polkit-dumb-agent
authentication authorization cpp dbus desktop-environment linux linux-desktop policykit polkit polkit-agent qt xdg
Last synced: 3 months ago
JSON representation
a polkit agent in 145 lines of code, because polkit is dumb and none of the other agents worked
- Host: GitHub
- URL: https://github.com/sandsmark/polkit-dumb-agent
- Owner: sandsmark
- License: gpl-3.0
- Created: 2020-09-10T20:24:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-24T18:34:44.000Z (about 3 years ago)
- Last Synced: 2024-09-29T15:44:04.204Z (3 months ago)
- Topics: authentication, authorization, cpp, dbus, desktop-environment, linux, linux-desktop, policykit, polkit, polkit-agent, qt, xdg
- Language: C++
- Homepage:
- Size: 29.3 KB
- Stars: 102
- Watchers: 4
- Forks: 7
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
polkit-dumb-agent
-----------------polkit is dumb, and never works.
so here is probably the simplest version you can have (except the first one
that just ACKed every call), 97 lines of C++ and 45 lines of C, in total 142
lines of code.it just uses kdesu to call a helper as root to send the reply, so all requests
requires the user to enter the root password.TODO
----Write a simple replacement for polkit itself, it's a simple dbus API and
90% of what it provides is never used.Requirements
------------- C++ compiler
- Qt5 (dbus and widgets)
- kdesu