auth: add fd passing negotiation support
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Apr 2009 02:38:27 +0000 (04:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 May 2009 00:09:31 +0000 (02:09 +0200)
commitc200e0304d6f53a0fd47f524386b02b27c0c45f6
tree2d78c7bb46d1ce81538c7c36cce948f170d933b1
parent89318bbeb4076d8d9de9831d69621fc1411760d3
auth: add fd passing negotiation support

This adds two new directives to the auth protocol:

NEGOTIATE_UNIX_FD is sent by the client after the authentication was
sucessful, i.e. OK was received.

AGREE_UNIX_FD is then sent by the server if it can do unix fd passing as
well.

ERROR is returned when the server cannot or is unwilling to do unix fd
passing.

This should be compatible with existing D-Bus implementations which will
naturally return ERROR on NEGOTIATE_UNIX_FD.
bus/dispatch.c
dbus/dbus-auth.c
dbus/dbus-auth.h
dbus/dbus-transport-protected.h
dbus/dbus-transport-socket.c
dbus/dbus-transport.c