Repository navigation
Conversation
To show users which application is requesting superuser access and also to show which action the caller is trying to invoke with those access rights we need the details of polkit authentication requests to be exposed to client applications.
This was referenced Dec 1, 2026
|
Hi @friedow, I opened #1579 for the same change before I noticed yours, and have closed it as a duplicate of this one. One part of mine might be useful here: an automated test for the details conversion (the polkit service has no tests yet). I tried it on top of your branch as it is and it builds and passes, also with ASan. It covers six cases: no details object, no keys, one key, several keys, an empty value, and non-ASCII text. It is three files under If you want it, either way works for me:
No problem at all if you or the maintainers would rather keep this PR as it is. For transparency: the test was written with the help of Claude. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
To show users which application is requesting superuser access and also to show which action the caller is trying to invoke with those access rights we need the details of polkit authentication requests to be exposed to client applications.
I've tried this patch locally and was able to build these neat little popups with it:
Details and descisions
I've introduced a new read-only AuthFlow.details property holding the key-value pairs polkit sends with each request.
Open concerns
I don't think so, its a pretty small and straight forward change.
Participation
Pretty sad that this is necessary. Of course I'll follow up on this :).