head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.16 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.14 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.12 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.10 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.8 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.6 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.4 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.2 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.3.0.4 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.2 pkgsrc-2008Q1:1.1.0.2 pkgsrc-2008Q1-base:1.1; locks; strict; comment @# @; 1.4 date 2008.08.15.12.15.17; author wiz; state dead; branches; next 1.3; 1.3 date 2008.06.19.01.56.44; author bjs; state Exp; branches; next 1.2; 1.2 date 2008.06.13.11.28.35; author drochner; state dead; branches; next 1.1; 1.1 date 2008.03.02.13.21.07; author drochner; state Exp; branches; next ; desc @@ 1.4 log @Update to 1.2.3: 1.2.3: * New UpdateActivationEnvironment bus API (#16669) * Solaris Auditing (ADT) support (#15740) * Various notable bug fixes: #16727, #16294, #15947 #15588 * Other more minor bugs @ text @$NetBSD: patch-ah,v 1.3 2008/06/19 01:56:44 bjs Exp $ Fix to match config.h.in. --- dbus/dbus-userdb-util.c.orig 2008-04-04 11:24:08.000000000 -0400 +++ dbus/dbus-userdb-util.c @@@@ -223,7 +223,7 @@@@ _dbus_user_database_lookup_group (DBusUs gid = n; } -#ifdef DBUS_ENABLE_USER_CACHE +#ifdef DBUS_ENABLE_USERDB_CACHE if (gid != DBUS_GID_UNSET) info = _dbus_hash_table_lookup_ulong (db->groups, gid); else @ 1.3 log @ - Fix support for NetBSD's atomic ops. - Fix up some inconsistent handing of CONFIGURE_ARGS (mostly related to the debug option). - Add test target (commented out, see Makefile). - Add some patches from freedesktop.org git (see comments atop new patches). - Remove trailing comma from an enum in tools/dbus-monitor.c. Passes all tests on NetBSD/amd64 4.99.65, save for spawn test, which seems to hang (?). I'm also running GNOME now and everything seems to be in order. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @update to 1.2.1, mostly from Blair Sadewitz There is some stuff in the pkg which is not completed or doesn't work yet, as support for NetBSD's new atomic increment ops, but this is not essential. It is a good moment to do the update right now because gtk2 was just updated, and there is just enough time before the next branch. This is a major update, too many changes to list here. @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.1 2008/03/02 13:21:07 drochner Exp $ d3 13 a15 48 --- bus/policy.c.orig 2006-12-11 20:21:22.000000000 +0100 +++ bus/policy.c @@@@ -931,9 +931,19 @@@@ bus_client_policy_check_can_send (BusCli if (rule->d.send.interface != NULL) { - if (dbus_message_get_interface (message) != NULL && - strcmp (dbus_message_get_interface (message), - rule->d.send.interface) != 0) + /* The interface is optional in messages. For allow rules, if the message + * has no interface we want to skip the rule (and thus not allow); + * for deny rules, if the message has no interface we want to use the + * rule (and thus deny). + */ + dbus_bool_t no_interface; + + no_interface = dbus_message_get_interface (message) == NULL; + + if ((no_interface && rule->allow) || + (!no_interface && + strcmp (dbus_message_get_interface (message), + rule->d.send.interface) != 0)) { _dbus_verbose (" (policy) skipping rule for different interface\n"); continue; @@@@ -1117,9 +1127,19 @@@@ bus_client_policy_check_can_receive (Bus if (rule->d.receive.interface != NULL) { - if (dbus_message_get_interface (message) != NULL && - strcmp (dbus_message_get_interface (message), - rule->d.receive.interface) != 0) + /* The interface is optional in messages. For allow rules, if the message + * has no interface we want to skip the rule (and thus not allow); + * for deny rules, if the message has no interface we want to use the + * rule (and thus deny). + */ + dbus_bool_t no_interface; + + no_interface = dbus_message_get_interface (message) == NULL; + + if ((no_interface && rule->allow) || + (!no_interface && + strcmp (dbus_message_get_interface (message), + rule->d.receive.interface) != 0)) { _dbus_verbose (" (policy) skipping rule for different interface\n"); continue; @ 1.1 log @add a patch from upstream to fix a possible security bypass (CVE-2008-0595), bump PKGREVISION @ text @d1 1 a1 1 $NetBSD$ @