summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-01-21Add requested_reply to send denials, and connection loginfo to "would deny"dbus-1.0-branchColin Walters1-31/+38
The requested_reply field is necessary in send denials too because it's used in the policy language. The connection loginfo lack in "would deny" was just an oversight.
2009-01-21Add uid, pid, and command to security logsColin Walters5-19/+220
Extend the current security logs with even more relevant information than just the message content. This requires some utility code to look up and cache (as a string) the data such as the uid/pid/command when a connection is authenticated. Conflicts: bus/connection.c
2009-01-21Add optional logging on allow rulesColin Walters4-16/+34
This lets us have a backwards compatibility allow rule but still easily see when that rule is being used. Conflicts: bus/config-parser.c
2009-01-21Add message type to security syslog entriesColin Walters1-2/+6
It's part of the security check, we should have it in the log.
2009-01-21Add syslog of security denials and configuration file reloadsColin Walters11-22/+168
We need to start logging denials so that they become more easily trackable and debuggable. Conflicts: bus/bus.c bus/config-parser-common.c bus/config-parser-common.h bus/config-parser.c test/name-test/tmp-session-like-system.conf
2009-01-21Clean up and clarify default system policyColin Walters2-46/+45
The former was too reliant on old bugs and was generally unclear. This one makes explicit exactly what is allowed and not. Conflicts: bus/system.conf.in
2009-01-21Bug 18229: Allow signalsColin Walters5-1/+60
Our previous fix went too far towards lockdown; many things rely on signals to work, and there's no really good reason to restrict which signals can be emitted on the bus because we can't tie them to a particular sender.
2009-01-21Bug 18229 - Change system.conf to correctly deny non-reply sends by defaultColin Walters2-6/+12
The previous rule <allow send_requested_reply="true"/> was actually applied to all messages, even if they weren't a reply. This meant that in fact the default DBus policy was effectively allow, rather than deny as claimed. This fix ensures that the above rule only applies to actual reply messages. Signed-off-by: Colin Walters <walters@verbum.org> Conflicts: bus/system.conf.in
2009-01-21Infrastructure for testing a "system like" bus in test suiteColin Walters4-2/+125
The tmp-session-like-system.conf bus configuration has a security policy intended to mirror that of the system bus. This allows testing policy rules.
2009-01-21Add session.d to build structure, corresponding with commit a579e3b0Colin Walters1-0/+1
2009-01-21Fix build on recent glibcColin Walters1-0/+3
Extracted from trunk commit be875094.
2008-02-27bump version after releaseJohn (J5) Palmieri1-1/+1
2008-02-26Released 1.0.3DBUS_1_0_3John (J5) Palmieri2-0/+22
2008-02-26CVE-2008-0595 dbus security policy circumventionJohn (J5) Palmieri2-6/+38
* CVE-2008-0595 - security policy of the type <allow send_interface= "some.interface.WithMethods"/> work as an implicit allow for messages sent without an interface bypassing the default deny rules and potentially allowing restricted methods exported on the bus to be executed by unauthorized users. This patch fixes the issue. * bus/policy.c (bus_client_policy_check_can_send, bus_client_policy_check_can_receive): skip messages without an interface when evaluating an allow rule
2008-02-26correctly unref connections without guids during shutdownJohn (J5) Palmieri2-13/+56
* dbus/dbus-connection.c (close_connection_on_shutdown): new method split out from shared_connections_shutdown (shared_connections_shutdown): shutdown all shared connections without guids (_dbus_connection_ref_unlocked): handle OOM when prepending no guid connections to the shared_connections_no_guid list * Patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>
2007-07-182007-07-18 Havoc Pennington <hp@redhat.com>Havoc Pennington2-4/+11
* dbus/dbus-message.c (dbus_message_get_cached) (dbus_message_cache_or_finalize): don't mess with message from message cache outside of the cache lock. Bug #9164 from Jonathan Matthew.
2007-07-102007-07-10 Havoc Pennington <hp@redhat.com>Havoc Pennington2-3/+14
* dbus/dbus-connection.c (struct DBusConnection): Fix from Olivier Hochreutiner to avoid trying to protect individual bits in a word with different locks (make dispatch_acquired and io_path_acquired dbus_bool_t rather than bitfields)
2007-06-082007-06-08 Havoc Pennington <hp@redhat.com>Havoc Pennington5-10/+33
* backport fix to allow a server to use port=0 or omit port so the port can be auto-selected by the OS
2007-05-232007-05-23 Havoc Pennington <hp@redhat.com>Havoc Pennington3-0/+12
* bus/Makefile.am (install-data-hook): create session.d * bus/session.conf.in: add session.d for the session bus, so security policy can be extended
2007-04-272007-04-27 Havoc Pennington <hp@redhat.com>Havoc Pennington2-3/+9
* dbus/dbus-sysdeps-unix.c (_dbus_open_socket): fix #10781 from Tobias Nygren, checking pointer to fd vs. 0 rather than checking the fd itself
2007-03-03Backport from MAIN:Thiago Macieira4-3/+87
* dbus/dbus-sysdeps-unix.c: capture the dbus-launch stderr output and add it to the DBusError message we return. * tools/dbus-launch.1: * tools/dbus-launch.c: Add option --close-stderr to, well, close stderr before starting dbus-daemon. I hope adding an option to dbus-launch in the 1.0.x series was ok.
2007-02-012007-01-31 Havoc Pennington <hp@redhat.com>Havoc Pennington2-0/+58
* bus/dbus-daemon.1.in: write a section in the man page on running a test daemon for debugging purposes
2007-01-262007-01-26 Havoc Pennington <hp@redhat.com>Havoc Pennington3-8/+45
* bus/session.conf.in: override all the default limits with much higher limits on the session bus, there is no reason the session bus should have low limits * bus/config-parser.c (bus_config_parser_new): increase default limits so they are less likely to be hit; in particular the max replies per connection was way too low
2006-12-12* bump releaseJohn (J5) Palmieri1-1/+1
2006-12-12* Released 1.0.2John (J5) Palmieri2-0/+10
2006-12-12* bus/signal.c: Fix match_rule_equal errataJohn (J5) Palmieri2-0/+9
(CVE-2006-6107 - Patch from Kimmo Hämäläinen <kimmo.hamalainen@nokia.com>)
2006-11-22Backporting from HEAD:Thiago Macieira2-1/+13
* dbus/dbus-sysdeps-pthread.c (_dbus_pthread_mutex_lock, _dbus_pthread_condvar_wait, _dbus_pthread_condvar_wait_timeout): set pmutex->holder to pthread_self() after coming back from a conditional variable wait as well as in one codepath where it was forgotten. Approved by: Havoc Pennington.
2006-11-182006-11-17 Havoc Pennington <hp@redhat.com>Havoc Pennington2-4/+19
* update-dbus-docs.sh: allow setting fd.org username via env variable. Make it run autogen with --enable-xml-docs=yes --enable-doxygen-docs=yes so configure will fail if the required tools are missing.
2006-11-182006-11-17 Havoc Pennington <hp@redhat.com>Havoc Pennington2-5/+18
* doc/dbus-faq.xml: minor FAQ tweaks
2006-11-17* bump for next releaseJohn (J5) Palmieri1-1/+1
2006-11-17* Released 1.0.1John (J5) Palmieri2-0/+10
2006-11-152006-11-14 Havoc Pennington <hp@redhat.com>Havoc Pennington9-59/+174
* dbus/dbus-misc.c, dbus/dbus-misc.h: Move dbus_get_local_machine_id() to its own file, no substantive changes. There are a couple other things we might want to add that are "misc" so moving out of dbus-connection.[hc] which is big enough already.
2006-11-152006-11-14 Havoc Pennington <hp@redhat.com>Havoc Pennington6-38/+94
* dbus/dbus-internals.c (_dbus_generate_uuid): The spec said the UUID had the timestamp last, but the implementation had it first; move it to last since I think it's a tiny bit nicer (easier to compare at a glance, faster to sort, less code), and will not cause any practical compatibility problems. Also, always convert the timestamp to big endian. * doc/dbus-specification.xml: Clean up the docs on the UUID. * tools/dbus-uuidgen.1: more prominently say it is not suitable as a replacement for regular uuidgen/RFC4122.
2006-11-14* configure.in: Bump version to 1.0.1 for next stable releaseJohn (J5) Palmieri4-3/+14
* dbus/dbus-threads.h: fix DBUS_THREAD_FUNCTIONS_ALL_MASK to have the correct value so we don't assert when initalizing recursive threads * test/name-test/test-thread-init.c: call dbus_threads_init_default instead of _dbus_threads_init_debug since it is more of a real world test
2006-11-10This commit was manufactured by cvs2svn to create branch 'dbus-1.0'.Ryan Lortie0-0/+0
2006-11-10* really release 1.0.0dbus-1.0.0John (J5) Palmieri2-1/+7
* AUTHORS: added Peter and Tor of windows porting fame
2006-11-092006-11-08 Havoc Pennington <hp@redhat.com>Havoc Pennington3-2/+35
* doc/dbus-specification.xml: add a note about protocol stability * doc/TODO: Remove "important for 1.0" section, replace with "important for 1.2" section
2006-11-08* Released 1.0.0John (J5) Palmieri3-1/+13
2006-11-08* README: remove some of the out of date flagsJohn (J5) Palmieri3-9/+6
* doc/TODO: Remove todo items which are done
2006-11-08* tools/dbus-monitor.c: Handle sigint so we flush stdoutJohn (J5) Palmieri2-1/+21
(Patch from Olli Salli <olli dot salli at collabora dot co dot uk>)
2006-11-08* tools/dbus-monitor.1: update the manpage for dbus-monitorJohn (J5) Palmieri2-1/+21
(Patch from Olli Salli <olli dot salli at collabora dot co dot uk>)
2006-11-08* AUTHORS: Update with all people listed in the ChangeLogJohn (J5) Palmieri2-1/+46
2006-11-08* tools/dbus-monitor.c: add profiling tools to dbus-monitorJohn (J5) Palmieri2-4/+127
(Patch from Olli Salli <olli dot salli at collabora dot co dot uk>)
2006-11-071-char changeHavoc Pennington1-1/+1
2006-11-072006-11-07 Havoc Pennington <hp@redhat.com>Havoc Pennington2-2/+43
* HACKING: Update release instructions to include stuff about stable releases, branching, etc. May not be totally correct, please fix if needed, but keep instructions up-to-date so we do each stable release consistently in the future.
2006-11-072006-11-07 Havoc Pennington <hp@redhat.com>Havoc Pennington6-48/+144
* doc/dbus-specification.xml, doc/dbus-faq.xml, README: various documentation updates. Bump faq/spec versions (not to 1.0; I don't think the spec will be "finished"/1.0 when we ship the 1.0 library).
2006-11-06* bus/bus.c: Missed patch - pass in the context to the directory watchJohn (J5) Palmieri2-1/+5
2006-11-03* bump releaseJohn (J5) Palmieri2-4/+4
2006-11-03* Released D-Bus 1.0 RC 3(0.95)dbus-0.95John (J5) Palmieri2-0/+30
2006-11-03* bus/activation.c (bus_activation_new): don't fail if we can not readJohn (J5) Palmieri2-2/+13
the directory as it may not exist