File descriptor is not added to the dbus message
The unix file descriptor argument (gvariable 'h') of a method call using gdbus call
is wrongly attached to the bus message.
Problem
The fd_list
of the message should contain the file descriptor argument(s), but it arrives empty to the called dbus method.
Possible solution
The gdbus-tool.c/handle-call is calling the function gdbusconnection.c/g_dbus_connection_call_sync
what does not pass the file descriptor to the gdbusconnection.c/g_dbus_connection_call_sync_internal
so it does not get into the message as fd.
Perhaps gdbus-tool.c/handle-call
should detect when a file descriptor argument comes and call the gdbusconnection.c/g_dbus_connection_call_with_unix_fd_list_sync
function.
Other info
- glibc version: 2.30
- linux version: fedora 31