-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
polkit: explicitly restrict setting D-Bus property to root
Unlike sd-bus in libsystemd, gdbus in glib does not automatically restrict changing properties to the root user. Check the credential of the caller manually so that changes are restricted as expected. Also add more user-friendly error messages to other error conditions for a better user experience.
- Loading branch information
Showing
1 changed file
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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