| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Properties are currently allowed to be arbitrary UTF-8 since this matches
dbus-glib's runtime behaviour, although ideally new interfaces should
use the more restrictive member naming rules (leading to names like
MyProperty) for interop with QtDBus.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=7909
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
|
|
|
|
|
|
|
| |
g_variant_new_string(NULL) is not accepted.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71811
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
| |
g_variant_new_strv(NULL, -1) is not accepted, but (NULL, 0) is good.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71811
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
|
|
| |
When valgrinding tests it's useful to avoid using the shared bus, which
cannot be closed. Move all the essential shared-bus use into a test which
can be treated specially.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
| |
This frees more of the memory.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
| |
This frees more of the memory.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, if we'd freed the GValues, it would have crashed, because
g_value_take_boxed on a value of type G_TYPE_VALUE requires that the inner
GValue was g_malloc'd individually, but we were allocating them as a
block. This only "worked" because *none* of them were freed...
The returned string was also leaked; free it too, but only on success.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
|
| |
Inspired by Sebastian Krahmer's 'darklena.c', which used
this bug to exploit pam_fprintd.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68603
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68602
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
|
|
| |
I'm the only one who does dbus-glib releases these days, and I find it
easier to track changes as we go along than to construct a change
list during the release process.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68602
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
| |
Most of the README was really about libdbus anyway.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68602
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Anything that links libdbus-gtool needs to pull in GLib/GObject,
and the order matters (things that libdbus-gtool depends on must
appear after libdbus-gtool itself). libtool understands this, but
only if you tell it the full dependencies.
This broke compilation of test-dbus-glib.exe when cross-compiling
for 32-bit Windows with mingw-w64 (GNU tuple: i686-w64-mingw32).
The linking order used here for dependencies is "lowest in the stack
first", as recommended by the GStreamer documentation.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68601
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
| |
The test for errors uses dbus_set_error() so it should link -ldbus-1.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68601
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|\
| |
| |
| |
| |
| |
| | |
dbus-glib_0.100.2
Conflicts:
configure.ac
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Automake-1.13 removed long obsolete AM_CONFIG_HEADER completely
<http://lists.gnu.org/archive/html/automake/2012-12/msg00038.html> and
errors out upon seeing it.
[commit message added -smcv]
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=59003
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
o.f.DBus
Anyone can hop on the bus and emit a signal whose interface is
o.f.DBus; it's expected at the moments that clients (and notably DBus
libraries) check the sender.
This could previously be used to trick a system service using dbus-glib
into thinking a malicious signal came from a privileged source, by
claiming that ownership of the privileged source's well-known name had
changed from the privileged source's real unique name to the attacker's
unique name.
[altered to be NULL-safe so it won't crash on peer connections -smcv]
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
| |
| |
| |
| |
| | |
[rebased and added to run-test.sh -dbcw]
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=23633
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We close the connection to ourselves, resulting in libdbus shooting us
in the head unless we ask it not to. Nice to see how thoroughly this
code has been tested...
For future reference, it can be tested like this:
DBUS_TOP_BUILDDIR=$(pwd) ./test/core/run-test.sh profile
(or substitute the real absolute top build directory, if out-of-tree).
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It's alarming how often the phrase "I'm amazed this ever worked" comes
up while maintaining dbus-glib.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
test-profile.c was its only use, and all it was used for was to listen
on an abstract or path-based socket, matching what D-Bus would do,
when obtaining comparative performance figures for D-Bus vs.
plain Unix sockets.
test-profile.c isn't normally run, only works on Unix, and
the check for abstract sockets was broken on current glibc (fd.o #29895),
leading to us using the non-abstract code path anyway, so this clearly
wasn't very important. I'm tempted to delete test-profile.c entirely,
but until then, let's just make it use path-based sockets.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If you're using two connections, say a shared connection and a private
connection that uses DBusServer, there's no way to figure out which
DBusConnection a method invocation originates from, and thus no way
to do access control based on that.
Private bus setup done with eg:
void new_conn_func(DBusServer *s, DBusConnection *conn, gpointer to_export)
{
DBusGConnection *gconn;
/* set access control, eg with dbus_connection_set_unix_user_function() */
dbus_connection_setup_with_g_main(conn, NULL);
gconn = dbus_connection_get_g_connection(conn);
dbus_g_connection_register_object(gconn, "/foo", G_OBJECT (to_export));
}
void start_server(GObject *to_export)
{
DBusServer *s;
s = dbus_server_listen("unix:path=/var/foo", NULL);
dbus_server_setup_with_g_main (s, NULL);
dbus_server_set_new_connection_function (s, new_conn_func, to_export);
}
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55729
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Like dbus_g_connection_open() but for private bus sockets, calling
dbus_connection_open_private() and ensuring the dbus-glib types are
initialized.
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55730
|
| |
| |
| |
| |
| | |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
It actually only tests _dbus_gtype_from_signature and related things,
and has nothing to do with main loop integration.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| | |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| |
| |
| | |
dbus_g_type_specialized_init should be, and is, sufficient.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| | |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| | |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
test-profile.c is not run by default anyway, and it hard-codes the use of Unix
sockets which isn't portable off Unix. If you have Unix sockets but not
/tmp, then your platform has worse problems than inability to run
all dbus-glib tests.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| |
| |
| | |
The command line is parsed early on anyway.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| | |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| | |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| | |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|
| |
| |
| |
| |
| | |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711
Reviewed-by: Dan Williams <dcbw@redhat.com>
|