1. 09 Nov, 2004 1 commit
    • Colin Walters's avatar
      2004-11-09 Colin Walters <walters@verbum.org> · 935a41a0
      Colin Walters authored
      	* dbus/dbus-string.c (_dbus_string_get_length): New
      	function, writes DBusString to C buffer.
      
      	* dbus/dbus-string.h: Prototype it.
      
      	* dbus/dbus-message.c (dbus_message_type_to_string): New
      	function, converts message type into C string.
      
      	* dbus/dbus-message.h: Prototype it.
      
      	* bus/selinux.c (bus_selinux_check): Take source pid,
      	target pid, and audit data.  Pass audit data to
      	avc_has_perm.
      	(log_audit_callback): New function, appends extra
      	audit information.
      	(bus_selinux_allows_acquire_service): Also take
      	service name, add it to audit data.
      	(bus_selinux_allows_send): Also take message
      	type, interface, method member, error name,
      	and destination, and add them to audit data.
      	(log_cb): Initialize func_audit.
      
      	* bus/selinux.h (bus_selinux_allows_acquire_service)
      	(bus_selinux_allows_send): Update prototypes
      
      	* bus/services.c (bus_registry_acquire_service): Pass
      	service name to bus_selinux_allows_acquire_service.
      
      	* bus/bus.c (bus_context_check_security_policy): Pass
      	additional audit data.  Move assignment of dest
      	to its own line.
      935a41a0
  2. 07 Nov, 2004 2 commits
    • Colin Walters's avatar
      2004-11-07 Colin Walters <walters@verbum.org> · 2f5e9498
      Colin Walters authored
      	* dbus/dbus-transport-unix.c (do_authentication): Always
      	initialize auth_completed.
      2f5e9498
    • Colin Walters's avatar
      2004-11-07 Colin Walters <walters@verbum.org> · cdac3e05
      Colin Walters authored
      	* 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.
      cdac3e05
  3. 04 Nov, 2004 2 commits
  4. 03 Nov, 2004 1 commit
  5. 02 Nov, 2004 3 commits
  6. 29 Oct, 2004 8 commits
  7. 27 Oct, 2004 1 commit
    • Joe Shaw's avatar
      2004-10-27 Joe Shaw <joeshaw@novell.com> · d8c8992b
      Joe Shaw authored
      	* 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.
      d8c8992b
  8. 25 Oct, 2004 1 commit
    • John Palmieri's avatar
      John (J5) Palmieri <johnp@redhat.com> · 4612de01
      John Palmieri authored
              * 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
      4612de01
  9. 22 Oct, 2004 2 commits
    • Colin Walters's avatar
      2004-10-21 Colin Walters <walters@verbum.org> · 41a9bdeb
      Colin Walters authored
      	* AUTHORS: Fix my email address, the @gnu.org one
      	has been bouncing for some time.  Also add J5.
      41a9bdeb
    • Colin Walters's avatar
      2004-10-21 Colin Walters <walters@verbum.org> · 08162943
      Colin Walters authored
      	* 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.
      08162943
  10. 18 Oct, 2004 3 commits
    • Colin Walters's avatar
      2004-10-18 Colin Walters <walters@verbum.org> · f79e96fc
      Colin Walters authored
      	* bus/selinux.c (bus_selinux_enabled): Handle
      	--disable-selinux case.
      f79e96fc
    • Colin Walters's avatar
      2004-10-18 Colin Walters <walters@verbum.org> · 736fa825
      Colin Walters authored
      	* 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.
      736fa825
    • Colin Walters's avatar
      2004-10-17 Colin Walters <walters@verbum.org> · ca293924
      Colin Walters authored
      	* dbus/dbus-memory.c (_dbus_initialize_malloc_debug, check_guards)
      	(dbus_malloc, dbus_malloc0, dbus_realloc): Fix up printf
      	format specifier mismatches.
      ca293924
  11. 07 Oct, 2004 1 commit
  12. 29 Sep, 2004 1 commit
    • Jon Trowbridge's avatar
      2004-09-28 Jon Trowbridge <trow@ximian.com> · 0c168e3e
      Jon Trowbridge authored
      	    * 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.
      0c168e3e
  13. 27 Sep, 2004 1 commit
  14. 24 Sep, 2004 1 commit
  15. 20 Sep, 2004 1 commit
    • Jon Trowbridge's avatar
      2004-09-20 Jon Trowbridge <trow@ximian.com> · 64b63e84
      Jon Trowbridge authored
      	    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.
      64b63e84
  16. 17 Sep, 2004 1 commit
    • Olivier Andrieu's avatar
      * dbus/dbus-sysdeps.c (_dbus_user_at_console): fix memleak in OOM. · 1658c8af
      Olivier Andrieu authored
      * 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.
      1658c8af
  17. 16 Sep, 2004 1 commit
  18. 12 Sep, 2004 1 commit
    • David Zeuthen's avatar
      2004-09-12 David Zeuthen <david@fubar.dk> · a24270a4
      David Zeuthen authored
      	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.
      a24270a4
  19. 09 Sep, 2004 1 commit
  20. 04 Sep, 2004 2 commits
  21. 31 Aug, 2004 1 commit
    • Jon Trowbridge's avatar
      2004-08-30 Jon Trowbridge <trow@ximian.com> · 4a77a2dd
      Jon Trowbridge authored
      	    * 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.
      4a77a2dd
  22. 29 Aug, 2004 2 commits
  23. 26 Aug, 2004 1 commit
  24. 25 Aug, 2004 1 commit
    • John Palmieri's avatar
      Console user security policy · b78d2220
      John Palmieri authored
      * 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
      b78d2220