summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-05-06Release 1.2.6permissivedbus-1.2.4.6permissivedbus-1.2.4permissiveColin Walters1-1/+1
2009-04-27Bug 17803 - Fix both test case and validation logicColin Walters2-7/+8
The previous commit had errors in both the test case and the validation logic. The test case was missing a trailing comma before the previous one, so we weren't testing the signature we thought we were. The validation logic was wrong because if the type was not valid, we'd drop through the entire if clause, and thus skip returning an error code, and accept the signature.
2009-01-07Release 1.2.4.4permissivedbus-1.2.4.4permissiveColin Walters1-1/+1
2009-01-06Add Scott to HACKINGColin Walters1-2/+1
2009-01-06Bug 17060: Explicitly hard fail if expat is not availableColin Walters1-11/+8
* configure.in: Tweak libxml/expat detection and handling.
2009-01-06Bug 17969: Don't test for abstract sockets if explicitly disabledLionel Landwerlin1-0/+2
Signed-off-by: Colin Walters <walters@verbum.org>
2009-01-06Bug 18064 - more efficient validation for fixed-size type arraysJon Gosting1-11/+60
* dbus/dbus-marshal-validate.c: If an array is fixed size, skip validation Signed-off-by: Colin Walters <walters@verbum.org>
2009-01-06Initialize AVC earlier so we can look up service security contextsJames Carter1-5/+5
* bus/bus.c: Initialize AVC earlier: http://lists.freedesktop.org/archives/dbus/2008-October/010493.html Signed-off-by: Colin Walters <walters@verbum.org>
2009-01-06Print serial in dbus-monitorMichael Meeks1-1/+2
* tools/dbus-print-message.c: Print serial too. Signed-off-by: Colin Walters <walters@verbum.org>
2009-01-06[win32] Protect usage of SIGHUP with #ifdefTor Lillqvist2-9/+16
Signed-off-by: Colin Walters <walters@verbum.org>
2009-01-06Bug 15412: Add --address option to dbus-sendLawrence R. Steeger1-6/+45
Signed-off-by: Colin Walters <walters@verbum.org>
2009-01-06Bug 18446: Keep umask for session busMatt McCutchen11-10/+72
Signed-off-by: Colin Walters <walters@verbum.org>
2009-01-06Fix cross-compiling with autotools.Diego E. 'Flameeyes' Pettenò1-4/+4
The AC_CANONICAL_TARGET macro and the $target_os variables are used for the target of compilers and other code-generation tools, and should not be used during cross-compile of generic software. Replace them with AC_CANONICAL_HOST and $host_os instead, as they should have been from the start. For a breakdown of what host, build and target machines are, please see http://blog.flameeyes.eu/s/canonical-target .
2009-01-06Avoid possible use of uninitialized variablePeter Breitenlohner1-1/+1
Signed-off-by: Colin Walters <walters@verbum.org>
2009-01-06Enable -Werror by default with --enable-maintainer-mode, and change warningsColin Walters1-6/+42
Important compiler warnings were being lost in the noise from warnings we know about but aren't problems, and moreover made using -Werror difficult. Now we expect *all* developers and testers to be using -Werror.
2009-01-06Various compiler warning fixesColin Walters6-6/+8
2008-12-18Release 1.2.4.2permissive.dbus-1.2.4.2permissiveColin Walters1-1/+1
2008-12-18Add requested_reply to send denials, and connection loginfo to "would deny"Colin 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.
2008-12-18Add uid, pid, and command to security logsColin Walters5-21/+228
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.
2008-12-18Change configure to reflect branchColin Walters1-2/+6
We are creating a new stream off of the 1.2.4 release.
2008-12-16Revert to default permissiveColin Walters1-1/+1
This branch is intended to keep the old default-permissive.
2008-12-16Merge commit '3d6abf64d0abb2718e082e120f14f8f923a4af59' into dbus-1.2Colin Walters2-47/+46
2008-12-16Add 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.
2008-12-12Add message type to security syslog entriesColin Walters1-2/+6
It's part of the security check, we should have it in the log.
2008-12-12Add syslog of security denials and configuration file reloadsColin Walters13-23/+170
We need to start logging denials so that they become more easily trackable and debuggable.
2008-12-12Clean up and clarify default system policyColin Walters2-47/+46
The former was too reliant on old bugs and was generally unclear. This one makes explicit exactly what is allowed and not.
2008-12-09Bump version for unstable cycleColin Walters1-1/+1
2008-12-09Release 1.2.8dbus-1.2.8Colin Walters1-1/+1
2008-12-09Another manpage update explicitly mentioning bare send_interfaceColin Walters1-2/+6
We need to fix all of the bare send_interface rules; see: https://bugs.freedesktop.org/show_bug.cgi?id=18961
2008-12-09Add at_console docs to manpage, as well as brief <policy> forewardColin Walters1-2/+17
We need some sort of general advice here.
2008-12-09Bug 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.
2008-12-05Release 1.2.6dbus-1.2.6Colin Walters1-1/+1
2008-12-05Bug 18229 - Change system.conf to correctly deny non-reply sends by defaultTomas Hoger1-2/+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>
2008-12-05Infrastructure 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.
2008-10-06Bump configure again for gitColin Walters1-1/+1
2008-10-06Release 1.2.4dbus-1.2.4Colin Walters1-1/+1
2008-10-012008-08-24 Peter McCurdy <pmccurdy@skeptopotamus>Peter McCurdy1-1/+1
* dbus/dbus-marshal-recursive.c: A stray comma between two string literals caused incorrect output and a compiler warning. Signed-off-by: Colin Walters <walters@verbum.org>
2008-10-01Bug 17280: Add a prototype for _dbus_credentials_add_adt_audit_data()Peter McCurdy1-0/+3
* dbus/dbus-credentials.h: Add a prototype for _dbus_credentials_add_adt_audit_data() Signed-off-by: Colin Walters <walters@verbum.org>
2008-10-01Bug 17803: Panic from dbus_signature_validateColin Walters2-0/+2
* dbus/dbus-marshal-validate.c: Ensure we validate a basic type before calling is_basic on it. * dbus-marshal-validate-util.c: Test.
2008-10-01Bug 17061: Handle error return from sysconf correctlyJoe Marcus Clarke2-2/+10
* dbus/dbus-sysdeps-unix.c: * dbus/dbus-sysdeps-util-unix.c: Cast return from sysconf temporarily so we actually see -1. Signed-off-by: Colin Walters <walters@verbum.org>
2008-10-01Bug 13387: Fix compilation failure with AI_ADDRCONFIGJens Granseuer1-2/+2
Signed-off-by: Colin Walters <walters@verbum.org>
2008-10-01Bug 17352: synchronize the file before renamingArtem Bityutskiy1-0/+9
Dbus is doing atomic file updates by copying them, changing the copy, and re-naming them. However, it does not synchronize the file before re-naming, which results in corruption in case of unclean reboots. The reason for this is that file-systems have write-back cache and they postpone writing data to the media. This patch adds the missed fsync() for the Unix part. I do not have windows so cannot provide a windows port fix. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: Colin Walters <walters@verbum.org>
2008-08-06Correctly dist 1.2.3 tarball with docs enableddbus-1.2.3Colin Walters1-1/+1
2008-08-06Bump configure.ac to 1.2.2Colin Walters1-2/+2
2008-07-28Bug 15646: Remove spurious debugging fprintf(stderrColin Walters1-1/+0
2008-07-28Bug 16727: Handle ERANGE for getgr; fixes user in many groupsMarc Brockschmidt2-27/+96
Patch originally from Noèl Köthe. Modified by Colin Walters <walters@verbum.org> * dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-unix-utils.c: Use a while() loop to reallocate buffer if we get ERANGE return. This fixes the case where a user is in a large number of groups.
2008-07-28Bug 16294: Don't lose inotify watch when config fails to parseColin Walters1-9/+12
* bus/dir-watch-inotify.c: Always drop the watch in handle_inotify_watch; this ensures we always readd it correctly in bus_drop_all_directory_watches.
2008-07-24Bug 16838: Use bash instead of sh to avoid breaking on UbuntuColin Walters1-1/+1
2008-07-24Merge branch 'master' of ssh://walters@git.freedesktop.org/git/dbus/dbusColin Walters12-20/+531
2008-07-24Bug 16839: Fix bus names in test case so it actually works.Scott James Remnant2-7/+7
* test/name-test/test-privserver.c (filter_session_message, main), * test/name-test/test-privserver-client.c (open_shutdown_private_connection): Replace TestServer with PrivServer to match the service definition files.