Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix org.freedesktop.DBus.Error.ServiceUnknown errors without polkitd #4

Merged
merged 1 commit into from May 16, 2017

Conversation

t-woerner
Copy link
Contributor

The exception handling for getting the org.freedesktop.PolicyKit1.Authority
interface needs to be done in the _interface property method otherwise this
could lead into unexpected behaviour where self._interface in
_polkit_present is not None if polkit is not present.

If polkit is not present self._interface.CheckAuthorization should not be
called in IsSystemBusNameAuthorizedAsync.

This fixes RHBZ#1393488

The exception handling for getting the org.freedesktop.PolicyKit1.Authority
interface needs to be done in the _interface property method otherwise this
could lead into unexpected behaviour where self._interface in
_polkit_present is not None if polkit is not present.

If polkit is not present self._interface.CheckAuthorization should not be
called in IsSystemBusNameAuthorizedAsync.

This fixes RHBZ#1393488
@nphilipp nphilipp merged commit fed1b05 into nphilipp:master May 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants