summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 2004-11-07 Colin Walters <walters@verbum.org>Colin Walters2004-11-072-1/+6
| | | | | * dbus/dbus-transport-unix.c (do_authentication): Always initialize auth_completed.
* 2004-11-07 Colin Walters <walters@verbum.org>Colin Walters2004-11-079-167/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bus/bus.c (load_config): Break into three separate functions: process_config_first_time_only, process_config_every_time, and process_config_postinit. (process_config_every_time): Move call of bus_registry_set_service_context_table into process_config_postinit. (process_config_postinit): New function, does any processing that needs to happen late in initialization (and also on reload). (bus_context_new): Instead of calling load_config, open config parser here and call process_config_first_time_only and process_config_every_time directly. Later, after we have forked but before changing UID, invoke bus_selinux_full_init, and then call process_config_postinit. (bus_context_reload_config): As in bus_context_new, load parse file inside here, and call process_config_every_time and process_config_postinit. * bus/services.h, bus/services.c (bus_registry_set_service_context_table): Rename from bus_registry_set_sid_table. Take string hash from config parser, and convert them here into SIDs. * bus/config-parser.c (struct BusConfigParser): Have config parser only store a mapping of service->context string. (merge_service_context_hash): New function. (merge_included): Merge context string hashes instead of using bus_selinux_id_table_union. (bus_config_parser_new): Don't use bus_selinux_id_table_new; simply create a new string hash. (bus_config_parser_unref): Unref it. (start_selinux_child): Simply insert strings into hash, don't call bus_selinux_id_table_copy_over. * bus/selinux.h, bus/selinux.c (bus_selinux_id_table_union) (bus_selinux_id_table_copy_over): Delete.
* *** empty log message ***Colin Walters2004-11-041-1/+1
|
* 2004-11-03 Colin Walters <walters@verbum.org>Colin Walters2004-11-042-3/+5
| | | | | * bus/selinux.c (bus_selinux_pre_init): Kill some unused variables.
* 2004-11-03 Colin Walters <walters@verbum.org>Colin Walters2004-11-032-2/+7
| | | | | * bus/test-main.c (test_pre_hook): Fix test logic, thanks Joerg Barfurth <Joerg.Barfurth@Sun.COM>.
* *** empty log message ***Colin Walters2004-11-021-1/+1
|
* 2004-11-02 Colin Walters <walters@verbum.org>Colin Walters2004-11-025-7/+48
| | | | | | | | | | | | | | | * bus/selinux.c (bus_selinux_init): Split into two functions, bus_selinux_pre_init and bus_selinux_post_init. (bus_selinux_pre_init): Just determine whether SELinux is enabled. (bus_selinux_post_init): Do everything else. * bus/main.c (main): Call bus_selinux_pre_init before parsing config file, and bus_selinux_post_init after. This ensures that we don't lose the policyreload notification thread that bus_selinux_init created before forking previously. * bus/test-main.c (test_pre_hook): Update for split.
* Patch from Johan Fischer to make mono doc install create the doc dir.Owen Fraser-Green2004-11-022-0/+8
|
* 2004-10-29 Colin Walters <walters@redhat.com>Colin Walters2004-10-294-1/+52
| | | | | | | | | | * dbus/dbus-sysdeps.h (_dbus_become_daemon): Also take parameter for fd to write pid to. * dbus/dbus-sysdeps.c (_dbus_become_daemon): Implement it. * bus/bus.c (bus_context_new): Pass print_pid_fd to _dbus_become_daemon (bug #1720)
* 2004-10-29 Colin Walters <walters@redhat.com>Colin Walters2004-10-292-3/+10
| | | | | | | Patch from Ed Catmur <ed@catmur.co.uk> * mono/doc/Makefile.am (install-data-local): Handle DESTDIR.
* 2004-10-29 Colin Walters <walters@redhat.com>Colin Walters2004-10-293-0/+6
| | | | * bus/.cvsignore, qt/.cvsignore: Update.
* 2004-10-29 Colin Walters <walters@redhat.com>Colin Walters2004-10-294-2/+107
| | | | | | | | Patch from Kristof Vansant <de_lupus@pandora.be> * configure.in: Detect Slackware. * bus/Makefile.am (SCRIPT_IN_FILES): Add rc.messagebus.in. * bus/rc.messagebus.in: New file.
* Add comment about workaround.Colin Walters2004-10-291-0/+4
|
* 2004-10-29 Colin Walters <walters@redhat.com>Colin Walters2004-10-292-1/+8
| | | | | | | * tools/dbus-monitor.c (filter_func): Return DBUS_HANDLER_RESULT_HANDLED in filter function for now. See: http://freedesktop.org/pipermail/dbus/2004-August/001433.html
* 2004-10-29 Colin Walters <walters@redhat.com>Colin Walters2004-10-292-3/+11
| | | | | | | | Patch from Matthew Rickard <mjricka@epoch.ncsc.mil> * bus/services.c (bus_registry_acquire_service): Correctly retrieve service name from DBusString for printing.
* 2004-10-29 Colin Walters <walters@redhat.com>Colin Walters2004-10-292-3/+8
| | | | | * dbus/dbus-glib.h: Update documentation to not refer to internal APIs.
* 2004-10-27 Joe Shaw <joeshaw@novell.com>Joe Shaw2004-10-272-1/+15
| | | | | | | * mono/Arguments.cs (GetDBusTypeConstructor): type.UnderlyingSystemType will return "System.Byte" if you do it on "byte[]", which is not what we want. So check the type.IsArray property and use System.Array instead.
* John (J5) Palmieri <johnp@redhat.com>John (J5) Palmieri2004-10-255-3/+18
| | | | | | | | | | | * dbus/dbus-sysdeps.c (fill_user_info): On errors do not free the DBusUserInfo structure since this is passed into the function. This would cause a double free when the function that allocated the structure would try to free it when an error occured. * (bus/session.conf.in, bus/Makefile.am, dbus/configure.in): use /usr/share/dbus-1/services instead of /usr/lib/dbus-1.0/services for service activation to avoid 32bit/64bit parallel install issues
* 2004-10-21 Colin Walters <walters@verbum.org>Colin Walters2004-10-222-1/+7
| | | | | * AUTHORS: Fix my email address, the @gnu.org one has been bouncing for some time. Also add J5.
* 2004-10-21 Colin Walters <walters@verbum.org>Colin Walters2004-10-222-10/+42
| | | | | | | | | | * dbus/dbus-transport-unix.c (do_authentication): Return authentication status to callers. (unix_handle_watch): If we completed authentication this round, don't do another read. Instead wait until the next iteration, after we've read any pending data in the auth buffer. (unix_do_iteration): Ditto. (unix_handle_watch): Updated for new do_authentication prototype.
* 2004-10-18 Colin Walters <walters@verbum.org>Colin Walters2004-10-182-0/+9
| | | | | * bus/selinux.c (bus_selinux_enabled): Handle --disable-selinux case.
* 2004-10-18 Colin Walters <walters@verbum.org>Colin Walters2004-10-189-0/+83
| | | | | | | | | | | | | | | | | | | | | | * bus/selinux.h: Add bus_selinux_enabled. * bus/selinux.c (bus_selinux_enabled): Implement it. * bus/config-parser.c (struct include): Add if_selinux_enabled member. (start_busconfig_child): Parse if_selinux_enabled attribute for include. (bus_config_parser_content): Handle it. * bus/session.conf.in, bus/system.conf.in: Add inclusion of context mapping to default config files; conditional on SELinux being enabled. * doc/busconfig.dtd: Add to if_selinux_enabled to default DTD. * test/data/invalid-config-files/badselinux-1.conf, test/data/invalid-config-files/badselinux-2.conf: Test files for bad syntax.
* 2004-10-17 Colin Walters <walters@verbum.org>Colin Walters2004-10-182-9/+15
| | | | | | * dbus/dbus-memory.c (_dbus_initialize_malloc_debug, check_guards) (dbus_malloc, dbus_malloc0, dbus_realloc): Fix up printf format specifier mismatches.
* * dbus/dbus-sysdeps.c (_dbus_file_get_contents): fix an incorrect format string.Olivier Andrieu2004-10-073-6/+13
| | | | | * glib/dbus-dbus-gmain.c (dbus_g_bus_get): do not mangle NULL pointer (bug #1540, Leonardo Boiko).
* 2004-09-28 Jon Trowbridge <trow@ximian.com>Jon Trowbridge2004-09-295-8/+68
| | | | | | | | | | | | | * mono/BusDriver.cs: Changed BusDriver struct to remove the ServiceCreated and ServiceDeleted events and replace them with the new ServiceOwnerChanged event. * mono/example/BusListener.cs: Added a new example program, which listens for and reports any ServiceOwnerChanged events on the bus driver. * mono/example/Makefile.am (DESTDIR): Build changes for the new BusListener.cs example.
* * bus/signals.c (bus_match_rule_parse): validate the components ofOlivier Andrieu2004-09-273-65/+79
| | | | | | match rules (bug #1439). * dbus/dbus-bus.c (dbus_bus_add_match): add a missing OOM test.
* * doc/dbus-specification.xml: document ServiceOwnerChanged signal.Olivier Andrieu2004-09-246-470/+485
| | | | | | | * bus/driver.c, bus/driver.h, bus/services.c: Use ServiceOwnerChanged signal instead of ServiceCreated and ServiceDeleted. * bus/dispatch.c: update testcase for the new signal.
* 2004-09-20 Jon Trowbridge <trow@ximian.com>Jon Trowbridge2004-09-205-43/+59
| | | | | | | | | | | | | | Patch from Nat Friedman <nat@novell.com> * mono/Makefile.am: A number of small build fixes to allow "make distcheck" to succeed. * mono/example/Makefile.am: "make distcheck" fixes. * mono/AssemblyInfo.cs.in: When signing the assembly, look for the key in @srcdir@. * test/Makefile.am: "make distcheck" fixes.
* * dbus/dbus-sysdeps.c (_dbus_user_at_console): fix memleak in OOM.Olivier Andrieu2004-09-175-7/+127
| | | | | | | | | | | * doc/busconfig.dtd: update the DTD for the at_console attribute. * bus/driver.c (bus_driver_handle_hello): correctly handle Hello messages after the first one (bug #1389). * bus/dispatch.c (check_double_hello_message): add a test case for the double hello message bug. (check_existent_service_activation): fix check of spawning error.
* 2004-09-16 David Zeuthen <david@fubar.dk>David Zeuthen2004-09-162-1/+69
| | | | * python/dbus_bindings.pyx.in: Add support for int64 and uint64
* 2004-09-12 David Zeuthen <david@fubar.dk>David Zeuthen2004-09-124-11/+31
| | | | | | | | | | | Patch from Kay Sievers <kay.sievers@vrfy.org> * bus/bus.c (bus_context_new): * bus/bus.h: * bus/main.c (usage) (main): Add commandline option --nofork to override configuration file setting.
* remove the ; after DBUS_(BEGIN|END)_DECLS (bug #974)Olivier Andrieu2004-09-0937-72/+77
|
* changelogHarald Fernengel2004-09-041-0/+6
|
* patch by Jérôme Lodewyck <lodewyck@clipper.ens.fr> to enable integrationHarald Fernengel2004-09-043-2/+15
| | | | of an existing connection into the Qt main loop
* 2004-08-30 Jon Trowbridge <trow@ximian.com>Jon Trowbridge2004-08-317-0/+114
| | | | | | | | | | | | | | | | | | | * mono/BusDriver.cs: Added. This is a class for interacting with the org.freedesktop.DBus service. * mono/Message.cs: Added a mechanism to expose the message that is currently being dispatched via the static Message.Current property. Added Message.Sender and Message.Destination properties. * mono/Handler.cs: Expose the dispatched message via Message.Current when handling method calls. * mono/Service.cs: Expose the dispatched message via Message.Current when handling signal emissions. * mono/Connection.cs: Bind dbus_bus_get_base_service via the Connection.BaseService property.
* Mapped CRLF -> LF for consistency.Jon Trowbridge2004-08-291-1/+8
|
* 2004-08-28 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-08-294-4/+18
| | | | | | | | | | | | * dbus/dbus-userdb.c (_dbus_is_console_user): remove unused variable More fixes from Steve Grubb * dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): fix fd leak (_dbus_listen_tcp_socket): fix fd leak * dbus/dbus-spawn.c (read_pid, read_ints): move the "again:" for EINTR to a bit lower in the code
* 2004-08-26 Jon Trowbridge <trow@ximian.com>Jon Trowbridge2004-08-262-4/+19
| | | | | | * bus/driver.c (bus_driver_handle_service_exists): Respond with TRUE if we are inquiring about the existence of the built-in org.freedesktop.DBus service.
* Console user security policyJohn (J5) Palmieri2004-08-258-21/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bus/config-parser.c: (struct PolicyType): Add POLICY_CONSOLE (struct Element.d.policy): s/gid_or_uid/gid_uid_or_at_console (start_busconfig_child): Sets up console element when <policy at_console=""> is encountered in a policy file (append_rule_from_element): Convert console elements to console rules. * bus/policy.c: (bus_policy_create_client_policy): Add console rules to the client policy based on if the client is at the console (bus_policy_append_console_rule): New function for adding a console rule to a policy (bus_policy_merge): Handle console rule merging * dbus/dbus-sysdeps.h: Added the DBUS_CONSOLE_DIR constant where we check for console user files * dbus/dbus-sysdeps.c: (_dbus_file_exists): New function which checks if the given file exists (_dbus_user_at_console): New function which does the system specific process of checking if the user is at the console * dbus/dbus-userdb.c: (_dbus_is_console_user): New function converts a UID to user name and then calls the system specific _dbus_user_at_console to see if the user is at the console and therefor a console user
* * bus/config-parser.c (set_limit):Olivier Andrieu2004-08-256-4/+23
| | | | | | | | | | * bus/dbus-daemon-1.1.in: * test/data/valid-config-files/many-rules.conf: set the max_match_rules_per_connection limt from the config file. * doc/busconfig.dtd: update the DTD. * bus/driver.c: remove some unused variables.
* 2004-08-24 Mikael Hallendal <micke@imendio.com>Mikael Hallendal2004-08-242-2/+5
| | | | | * dbus/dbus-glib-lowlevel.h: Removed dbus_bus_get_with_g_main since it's been replaced by dbus_g_bus_get
* *** empty log message ***Colin Walters2004-08-231-2/+0
|
* *** empty log message ***Colin Walters2004-08-231-0/+2
|
* 2004-08-23 Colin Walters <walters@redhat.com>Colin Walters2004-08-236-35/+258
| | | | | | | | | | | | | | | | | | | | | | | | | * bus/selinux.h: Prototype bus_selinux_get_policy_root. * bus/selinux.c: Create a thread for policy reload notification. (bus_selinux_get_policy_root): Implement. Updated SELinux support from Matthew Rickard <mjricka@epoch.ncsc.mil> * bus/config-parser.c (start_busconfig_child) (bus_config_parser_content): Support SELinux-root relative inclusion. * configure.in <HAVE_SELINUX>: Add -lpthread. * bus/test-main.c (test_pre_hook, test_post_hook): New. (test_post_hook): Move memory checking into here. (test_pre_hook, test_post_hook): Move SELinux checks in here, but conditional on a DBUS_TEST_SELINUX environment variable. Unfortunately we can't run the SELinux checks as a normal user, since they won't have any permissions for /selinux. So this will have to be tested manually for now, until we have virtualization for most of libselinux.
* might be nice if my patches compiled...Havoc Pennington2004-08-231-2/+2
|
* 2004-08-23 Havoc Pennington <hp@redhat.com>Havoc Pennington2004-08-232-0/+15
| | | | | * dbus/dbus-sysdeps.c (_dbus_change_identity): add setgroups() to drop supplementary groups, suggested by Steve Grubb
* 2004-08-20 Colin Walters <walters@redhat.com>Colin Walters2004-08-203-4/+9
| | | | | | | | * bus/config-parser.c (start_busconfig_child): Remove some unused variables. * bus/selinux.c (bus_selinux_id_table_insert): Avoid compiler warning.
* 2004-08-17 Joe Shaw <joeshaw@novell.com>Joe Shaw2004-08-173-19/+33
| | | | | | | | * configure.in: If --enable-mono is passed in, if we can't find mono error out. * mono/Makefile.am: Use /gacutil to install assemblies into the GAC and not /root.
* fix address to mail about releaseHavoc Pennington2004-08-121-1/+1
|
* 2004-08-12 Havoc Pennington <hp@redhat.com>dbus-0.22Havoc Pennington2004-08-123-1/+33
| | | | | | * NEWS: update for 0.22 * configure.in: release 0.22