Bug 99621 - Let dbus-daemon return allowed auth mechanisms in case of rejected auth.
Summary: Let dbus-daemon return allowed auth mechanisms in case of rejected auth.
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: D-Bus Maintainers
QA Contact: D-Bus Maintainers
URL:
Whiteboard: review+
Keywords: patch
Depends on:
Blocks: 99512
  Show dependency treegraph
 
Reported: 2017-01-31 21:12 UTC by Ralf Habacker
Modified: 2017-02-02 11:43 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Let dbus-daemon return allowed auth mechanisms in case of rejected auth. (1.49 KB, patch)
2017-01-31 21:12 UTC, Ralf Habacker
Details | Splinter Review
Do not mention disallowed auth mechanisms in REJECTED message (1.51 KB, patch)
2017-02-01 21:12 UTC, Ralf Habacker
Details | Splinter Review

Description Ralf Habacker 2017-01-31 21:12:45 UTC
Allowed auth mechanisms are the ones that are implemented and configured
in bus config file.

https://bugs.freedesktop.org/show_bug.cgi?id=96577
Comment 1 Ralf Habacker 2017-01-31 21:12:47 UTC
Created attachment 129262 [details] [review]
Let dbus-daemon return allowed auth mechanisms in case of rejected auth.
Comment 2 Ralf Habacker 2017-01-31 21:14:41 UTC
Moved from https://bugs.freedesktop.org/show_bug.cgi?id=96577#c59. Changes from partial review there has been fixed.
Comment 3 Simon McVittie 2017-02-01 19:08:36 UTC
Comment on attachment 129262 [details] [review]
Let dbus-daemon return allowed auth mechanisms in case of rejected auth.

Review of attachment 129262 [details] [review]:
-----------------------------------------------------------------

The code looks good, but coming back to this without context I found the commit message confusing. It says

> Let dbus-daemon return allowed auth mechanisms in case of rejected auth

but that isn't really the important/interesting part of the change - the dbus-daemon already returns a list of mechanisms. What is important here is that previously it returned all *implemented* mechanisms, whereas now you are only returning the *allowed* ones.

So I think it would be clearer with a commit message more like:

> Do not mention disallowed auth mechanisms in REJECTED message
>
> Previously, all implemented mechanisms were included, even if the
> sysadmin had configured them not to be allowed.

The leftover reference to Bug #96577 is also a bit confusing and should probably be removed.
Comment 4 Simon McVittie 2017-02-01 19:09:30 UTC
I think this looks good to land with a clearer commit message though.
Comment 5 Ralf Habacker 2017-02-01 21:12:52 UTC
Created attachment 129280 [details] [review]
Do not mention disallowed auth mechanisms in REJECTED message

- commit message fix
Comment 6 Ralf Habacker 2017-02-02 11:30:34 UTC
committed to git master
Comment 7 Simon McVittie 2017-02-02 11:43:47 UTC
(This will be in 1.11.10)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.