Polkit agent
- Vorherrschende Sprache
- Go
- Sterne
- 5
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Polkit is often used to gather elevated privileges in GUI applications. Since our goal is to be able to replace all password prompts in the system - we want to replace polkit prompt too.
"Prompt" in Polkit is represented by user-space process called "agent". It talks with main polkit daemon using D-Bus, asks for passwords using some form of UI and validates input using setuid helper.
### Possible solutions
#### Our own implementation of libpolkit-agent-1
Use go-dbus and some other crap to interact with PAM.
Less C code (less memory vulnerabilities) but also more our own untested code (more bugs).
#### Bindings for libpolkit-agent-1
It's hard to map GObject interface to Go.
Well-tested (I hope) library but many dependencies from C world.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit dem Vergleich der beiden beschriebenen Ansätze: libpolkit-agent-1 mit go-dbus und PAM zu implementieren oder Bindings für libpolkit-agent-1 zu erstellen. Da im Issue keine Dateien oder Tests genannt werden, ermittle zuerst den Einstiegspunkt des Projekts und wie ein polkit-Agent über D-Bus kommuniziert. Als abgeschlossen gilt die Aufgabe, wenn der ausgewählte Ansatz die Passwortabfrage von polkit ersetzt; das Issue definiert jedoch keine Details zur Abnahme.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, linux
- Bereich
- authentication, security
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100