summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-sysdeps-win.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fd-passing'Thiago Macieira2009-07-161-2/+2
|\ | | | | | | | | | | | | Conflicts: dbus/dbus-connection.c dbus/dbus-message-util.c dbus/dbus-sysdeps-unix.c
| * memset: replace memset() by _DBUS_ZERO where applicableLennart Poettering2009-05-201-2/+2
| |
* | Bug 14259 - Make session address lookup system-dependentColin Walters2009-07-131-1/+12
| | | | | | | | | | | | | | On some platforms such as MacOS X and Windows, we can't depend on an environment variable to determine the address of the session bus. Create a sysdep function dbus_lookup_session_address which can be filled in with platform-specific code.
* | Bug 21161 - Update the FSF addressTobias Mueller2009-07-101-3/+3
|/ | | | | | No comment. Signed-off-by: Colin Walters <walters@verbum.org>
* add _dbus_geteuid to fix EXTERNAL authentication in setuid applicationsJohn (J5) Palmieri2008-01-141-1/+10
| | | | | | | | | | | | | | | | | | | | | | 2008-01-14 John (J5) Palmieri <johnp@redhat.com> * Patch by Andrea Luzzardi <scox at sig11 dot org>: creates a _dbus_geteuid function to fix EXTERNAL authentication in setuid applications * dbus/dbus-sysdeps-unix.c (_dbus_geteuid): used to get the effective uid of the running program (_dbus_credentials_add_from_current_process): use geteuid instead of getuid (_dbus_append_user_from_current_process): use geteuid instead of getuid * dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user): use geteuid instead of getuid (_dbus_unix_user_is_at_console): use geteuid instead of getuid * dbus/dbus-sysdeps-win.c (_dbus_geteuid): add a windows equivilant that returns DBUS_UID_UNSET
* 2007-07-24 Richard Hughes <richard@hughsie.com>Richard Hughes2007-07-241-1/+1
| | | | | | | | | | | * dbus/dbus-sysdeps-unix.c: (_dbus_get_standard_system_servicedirs): * dbus/dbus-sysdeps-win.c: Provide a way to get the standard system servicedirs, just like we do for the session service dirs. These should be seporate, as there may be a security issue starting up some session stuff as root. The use-case for the same binary starting up per-system _and_ per-session is also not valid.
* 2007-07-13 Havoc Pennington <hp@redhat.com>Havoc Pennington2007-07-141-2/+2
| | | | * Add indent-tabs-mode: nil to all file headers.
* * ↵Ralf Habacker2007-07-091-1914/+117
| | | | dbus/dbus-sysdeps-win.c,dbus-sysdeps-win.h,dbus-sysdeps-win-util.c,dbus-sysdeps-spawn-win.c: synced with windbus sources
* * dbus/dbus-sysdeps-win.cRalf Habacker2007-07-071-48/+14
| | | | | | (_dbus_getsid): remove unused jump label (_dbus_read_credentials_socket): _dbus_string_init could fail, check initialisation (_dbus_get_working_dir, _dbus_init_working_dir): remove unused functions
* * dbus/dbus-sysdeps-win.c,dbus/dbus-sysdeps-win.h: removed obsolate ↵Ralf Habacker2007-06-301-542/+0
| | | | DBusUserInfo code
* * dbus/dbus-sysdeps-win.c (_dbus_daemon_init): reduced compiler warningsRalf Habacker2007-06-301-3/+3
|
* * dbus/dbus-sysdeps-win.c: deleted local DBusCredentials structureRalf Habacker2007-06-211-101/+90
| | | | | | | (_dbus_getsid): new function (_dbus_read_credentials_socket): fixed (_dbus_append_user_from_current_process, _dbus_credentials_add_from_current_process): added real sid reading (_dbus_credentials_parse_and_add_desired,_dbus_parse_uid): deleted
* * dbus/dbus-sysdeps-win.c (_dbus_homedir_from_username, ↵Ralf Habacker2007-06-211-49/+0
| | | | _dbus_homedir_from_current_process, _dbus_append_desired_identity): removed obsolate functions
* * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-spawn-win.c, ↵Ralf Habacker2007-06-211-2/+15
| | | | dbus/dbus-sysdeps-win.h: disabled DBusSocket implementation by Peter Kuemmel
* * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-spawn-win.c, ↵Ralf Habacker2007-06-191-1/+485
| | | | dbus/dbus-sysdeps-win.h: disabled DBusSocket implementation Patch by Peter Kuemmel
* * cmake/CMakeLists.txt: use local include header firstRalf Habacker2007-06-161-2/+2
| | | | * dbus/dbus-sysdeps-win.c: mingw compile fix of DBusCredential struct
* * cmake/ConfigureChecks.cmake,cmake/config.h.cmake: added check for HAVE_ERRNO_HRalf Habacker2007-06-151-223/+341
| | | | | | | | | * cmake/dbus/CMakeLists.txt: added missing files * dbus/dbus-transport-win.c/.h: new files * dbus/dbus-sysdeps-win.c,.h: added required _unix functions to make dbus compilable on win32 * dbus/dbus-sysdeps-win-utils.c,.h: moved some functions to dbus-sysdeps-win.c * dbus-win.patch: removed applied or obsolate patches Note: dbus-win32 is now compilable, no guarantee that it runs without any problems
* * dbus/dbus-sysdeps-win.c: disabled DBusUserInfo related codeRalf Habacker2007-06-141-71/+81
| | | | | | | | (_dbus_append_desired_identity,_dbus_windows_user_is_process_owner): new win32 functions as counterpart of unix related (_dbus_send_credentials_socket,_dbus_read_credentials_socket): renamed from ..._unix_socket (_dbus_send_credentials_unix_socket): removed obsolate function * dbus/dbus-sysdeps-win-util.c: disabled DBusGroupInfo related code (_dbus_verify_daemon_user,_dbus_change_to_daemon_user): new win32 functions as counterpart of unix related
* * dbus/dbus-sysdeps-win.c (_dbus_pid_for_log,_dbus_flush_caches): new win32 ↵Ralf Habacker2007-06-141-13/+40
| | | | functions as counterpart of unix related
* 2007-06-09 Havoc Pennington <hp@redhat.com>Havoc Pennington2007-06-091-1/+0
| | | | | | | | | | | | | | | | | | | * bus/dispatch.c (check_get_connection_unix_process_id): adapt since sysdeps-unix.h stuff isn't included anymore * bus/bus.c (bus_context_new): use more abstract functions to change user, so they can be no-ops on Windows * dbus/dbus-credentials.c, dbus/dbus-credentials.h, dbus/dbus-credentials-util.c: new files containing a fully opaque DBusCredentials data type to replace the old not opaque one. * configure.in (DBUS_UNIX): define DBUS_UNIX to match DBUS_WIN on windows * dbus/dbus-userdb.h: prohibit on Windows, next step is to clean up the uses of it in bus/*.c and factor out the parts of cookie auth that depend on it
* * dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir): not getting user ↵Ralf Habacker2007-05-241-1/+1
| | | | info from a domain controller isn't an error, the computer may run in a non domain context.
* * dbus/dbus-sysdeps-win.c (_dbus_full_duplex_pipe): fixed assertation.Ralf Habacker2007-05-241-2/+1
|
* * dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir): not reaching domain ↵Ralf Habacker2007-05-201-1/+1
| | | | controller isn't an error, converted error message to verbose message.
* * dbus/dbus-sysdeps-win.c (_dbus_printf_string_upper_bound): compile fix for ↵Ralf Habacker2007-05-141-2/+2
| | | | MS Platform SDK 6 patch from Michael Luschas <mluschas@gmail.com>
* * cmake: added debug postfixes to debug exe's for easier debugging.Ralf Habacker2007-04-261-1/+1
| | | | * dbus\dbus-sysdeps-win.c (_dbus_win_set_error_from_win_error): print error code in case no string message is available.
* * dbus/dbus-sysdeps.h (_dbus_split_paths_and_append): new prototyp ↵Ralf Habacker2007-03-161-122/+3
| | | | | | (_DBUS_PATH_SEPARATOR): new macro. * dbus/dbus-sysdeps.c (_dbus_split_paths_and_append): merged from dbus/dbus-sysdeps-unix.c and dbus/dbus-sysdeps-win.c.
* * dbus/dbus-sysdeps-win.c: fixed broken DBusPipe on win32.Ralf Habacker2007-03-131-66/+29
| | | | * dbus/dbus-sysdeps-win.c, dbus/dbus-sysdeps-unix.c: moved platform independent DBusPipe function to dbus-sysdeps.c.
* * dbus/dbus-sysdeps-win.c: added zero byte sending and receiving after ↵Ralf Habacker2007-03-131-23/+65
| | | | connection start up
* * dbus/dbus-sysdeps-win.h, dbus/dbus-sysdeps-win.c, ↵Ralf Habacker2007-03-121-21/+21
| | | | dbus/dbus-sysdeps-util-win.c: renamed functions _dbus_xxx_file() to _dbus_file_xxx() to reflect struct name DBusFile.
* * bus/bus.c, bus/bus.h, bus/main.c, bus/test.c, dbus/dbus-sysdeps-unix.c, ↵Ralf Habacker2007-03-101-4/+74
| | | | dbus/dbus-sysdeps-util-unix.c, dbus/dbus-sysdeps-util-win.c, bus/dbus-sysdeps-win.c,dbus/dbus-sysdeps.h: renamed _dbus_xxx_pipe to _dbus_pipe_xxx, completed _dbus_pipe support.
* * dbus/dbus-sysdeps.h (_dbus_listen_tcp_socket): changed type or port to ↵Ralf Habacker2007-03-101-8/+10
| | | | | | | | pointer, because the port is given back. * dbus/dbus-server-socket.c (_dbus_server_new_for_tcp_socket): implemented returning tcp port. Skipping port parameter and non integer port values in config <listen> statement needs more effort. * dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-win.c (_dbus_listen_tcp_socket): return the real used tcp port. * bus/dbus-daemon.1.in: added <listen> tcp examples
* * dbus-win.patch: dbus-connection.c (dbus_connection_get_unix_user,Ralf Habacker2007-03-081-1/+3
| | | | | | dbus_connection_get_unix_process_id): Let return them valid user id's, otherwise bus-test fails. How to replace on win32 ?. * dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir): fix memory leak.
* * dbus/dbus-sysdeps-win.c (_dbus_win_set_error_from_win_error): use dbus ↵Ralf Habacker2007-03-081-3/+3
| | | | | | friendly error name ((fill_win_user_info_homedir): print user name in error case too.
* * dbus/*-win.*,bus/*-win.*: added win32 platform relatedRalf Habacker2007-03-031-0/+5178
files. These files are only added to the cmake build system. The missing dbus-win32.patch file will be added later.