1. 21 Dec, 2005 1 commit
    • Brian Cameron's avatar
      Add new priority configuration option for setting xserver priority. · 3d36e449
      Brian Cameron authored
      2005-12-21  Brian Cameron  <brian.cameron@sun.com>
      
              * daemon/gdm.[ch], daemon/gdmconfig.c, daemon/server.c:  Add new
                priority configuration option for setting xserver priority.
              * config/gdm.conf.in, docs/C/gdm.xml: Updated docs with information
                about the new priority [server-foo] configuration option.
              * configure.ac, gdm.spec.in: Fix gtk dependency so 2.6.0
                is listed as the requirement.
              * gui/Makefile.am: Add X_LIBS when building GUI programs.
              * gui/misc.c: Add needed stdio.h include.
      3d36e449
  2. 10 Dec, 2003 1 commit
    • Wanker who should set his $CHANGELOGNAME's avatar
      Add possibility to request logout action to happen when the display dies · 9a27803b
      
      Wed Dec 10 13:08:13 2003  Wanker who should set his $CHANGELOGNAME <wanker@wankers.com>
      
      	* daemon/gdm.[ch], daemon/display.c, daemon/gdm-net.[ch],
      	  daemon/server.c, daemon/xdmcp.c:  Add possibility to request
      	  logout action to happen when the display dies using the SUP socket
      	  protocol.  Very loosely based on a patch from Jarno Gassenbauer,
      	  but simplified and not having a DoS and/or authentication leak
      	  as the original patches do.  The commands are named different to
      	  avoid naming conflict.
      
      	* daemon/gdm.h, config/gdm.conf.in, docs/C/gdm.xml,
      	  config/Makefile.am, gdm.spec.in: move the built in sessions to
      	  a more appropriate place (datadir)
      
      	* gui/gdmcommon.[ch], gui/gdmlogin.c, gui/greeter/greeter.[ch],
      	  gui/greeter/greeter*.c: move some common utility functions to
      	  a common sublibrary (renamed the language lib to libgdmcommon),
      	  should cut down a little on the code duplication.  Needs more.
      
      	* gui/gdmcommon.[ch], gui/gdmlogin.c, gui/greeter/greeter.c,
      	  docs/C/gdm.xml, daemon/gdm.h, config/gdm.conf.in: Apply a patch
      	  from Anton Altaparmakov to add an optional info message to the
      	  greeters
      
      	* gui/gdmsetup.c: fix RH 97716 by putting up a dialog when user
      	  tries to input root for the first time
      
      	* docs/C/gdm.xml: minor updates.
      
      	* daemon/gdm.c: GdmStandardXServer can now have arguments (we used
      	  to parse them, but if there were arguments, sanity checks would
      	  fail making it not work), so no real change in how it works, it
      	  just accepts more inputs
      9a27803b
  3. 22 Sep, 2003 1 commit
    • Jiri (George) Lebl's avatar
      use $datadir/xsessions instead of hardcoding /usr/share/xsessions · fc62f724
      Jiri (George) Lebl authored
      
      Mon Sep 22 15:01:41 2003  George Lebl <jirka@5z.com>
      
      	* daemon/gdm.h, config/gdm.conf.in: use $datadir/xsessions instead of
      	  hardcoding /usr/share/xsessions
      
      	* config/Makefile.am: install gnome.desktop and CDE.desktop into the
      	  datadir location as they're not config and this way we share them
      	  with KDM, yay.  They should be installed by respective owner
      	  packages at some point though ...
      
      	* docs/C/gdm.xml: update a bit.
      fc62f724
  4. 27 Aug, 2003 1 commit
  5. 26 Aug, 2003 1 commit
  6. 24 Jul, 2003 1 commit
    • Jiri (George) Lebl's avatar
      change some g_strconcat's to g_build_filename's to address #118040. still · 405013a3
      Jiri (George) Lebl authored
      
      Thu Jul 24 14:58:23 2003  George Lebl <jirka@5z.com>
      
      	* daemon/gdm.c, daemon/slave.c, daemon/auth.c: change some
      	  g_strconcat's to g_build_filename's to address #118040.
      	  still more need to be converted
      
      	* gdm.spec.in, daemon/gdm.h, config/gdm.conf.in, config/Makefile.am,
      	  configure.in: By default use logdir of /var/log/gdm just
      	  like redhat does it
      
      	* daemon/gdm.c: check logdir to exist and if not set it to
      	  ServAuthDir
      
      	* gdm.spec.in, daemon/gdm.c, config/Makefile.am:  Make the
      	  ServAuthDir permissions to be 1770 with owenership root.gdm.
      	  That makes it impossible for the gdm user to run DoS attacks
      	  against the gdm daemon (though without any process limits set
      	  it can still somewhat do that)
      
      	* daemon/slave.c, daemon/display.c, daemon/gdm.c, daemon/misc.c,
      	  daemon/server.c: Hunt more races and hangs.  Make sure we really
      	  don't do anything bad in signal handlers by making a setjmp
      	  at the beginning of the slave_start function and returning
      	  there from signal handlers to do final cleanup kind of stuff.
      	  Also when we are receiving TERM signals while waiting on stuff
      	  to die, be very un-nice to things and SIGKILL them.  Also stop
      	  using sleep if we might be using alarm at the same time.
      
      	* daemon/display.c: whack non-useful signal block push on unmanage,
      	  and if we get a TERM signal while waiting on the slave, then send
      	  a TERM signal to the slave again.
      
      	* daemon/errorgui.c: set USER, USERNAME and LOGNAME to "gdm" so that
      	  they don't end up root by some mistake
      
      	* daemon/slave.c: Use home of root rather then /root for the home
      	  directory of gdmsetup.  Also if we can't change to the home
      	  directory chdir to / instead of leaving it at servauthdir.
      	  Be anal about COOKIEs in the logfile.  Also when things go
      	  just a bit wrong and not completely whacko, don't ABORT but
      	  just REMANAGE, the toplevel loop of death will handle things
      	  for us correctly.  And setsid a very close to the start of
      	  the session to avoid a race ABORTing a display by mistake.
      
      	* daemon/slave.c: make the PostLogin behave just like PostSession
      	  with respect to the return value
      
      	* daemon/verify-pam.c: avoid races on termination with the
      	  verify_cleanup and handle some cases where crashes may (but
      	  should not) occur.
      
      	* daemon/gdm.c: whack unneeded signal blockers (the main daemon
      	  is all async with a nice mainloop)
      
      	* gui/gdmchooser.c: handle HUP gracefully, when one of the
      	  config options we care about changes just restart self
      	  instead of
      
      	* gui/gdmlogin.c, gui/greeter/greeter_item_ulist.c: make
      	  the username bold
      
      	* docs/C/gdm.xml: update the PostLogin behaviour and the permissions
      	  on the ServAuthDir
      405013a3
  7. 19 Jul, 2003 1 commit
    • Jiri (George) Lebl's avatar
      update the documentation a lot and install the docs. Yay! We have actual · 19e695b9
      Jiri (George) Lebl authored
      
      Sat Jul 19 16:33:19 2003  George Lebl <jirka@5z.com>
      
      	* docs/C/gdm.xml, configure.in, docs/C/Makefile.am,
      	  docs/Makefile.am, xmldocs.make, omf.make: update the
      	  documentation a lot and install the docs.  Yay!  We
      	  have actual documentation now!!!
      
      	* daemon/misc.c: add sys/time.h and sys/resource.h includes
      	  (from looking at the FreeBSD patches)
      
      	* daemon/slave.c: pass LOGIN_SETENV as well to setusercontext
      	  (from looking at the FreeBSD patches)
      
      	* gui/gdmsetup.c: fix gccism, and look for the chown/chmod command
      	  (from looking at the FreeBSD patches)
      
      	* gui/gdmphotosetup.c: add signal.h include
      	  (from looking at the FreeBSD patches)
      
      	* configure.in, utils/Makefile.am:  When the security/pam_misc.h is
      	  available also test for where the misc_conv function is as it seems
      	  to be sometimes compiled into the main libpam (FreeBSD for example)
      	  (from looking at the FreeBSD patches)
      
      	* config/Default.in, config/Xsession.in, config/(Pre|Post)Session.in,
      	  config/XKeepsCrashing: don't use command -v and use which properly.
      	  And avoid stderr from which
      
      	* utils/gdmaskpass.c: use GETTEXT_PACKAGE here
      
      	* configure.in, utils/gdmtranslate.c, utils/Makefile.am,
      	  config/XKeepsCrashing, config/Xsession.in, config/Makefile.am:
      	  Add gdmtranslate libexec proggie since gettext command is not
      	  always installed apparently (non-developer machines) so we
      	  can't rely on it existing.  Also do translations from the
      	  Xsession script
      
      	* gui/gdmlogin.c, gui/greeter/greeter_system.c: Fix #117504 by
      	  changing the tooltip to be more informative
      
      	* gui/greeter/greeter_system.c: Fix warnings when not all
      	  system dialog possibilities are present
      
      	* Makefile.am, greeter.c, greeter.dtd, greeter_configuration.h,
      	  greeter_item.[ch], greeter_item_customlist.[ch],
      	  greeter_parser.[ch], greeter_system.c:  Add listitem (proposed
      	  as customitem to the release-team) tags that can be inside
      	  a list and thus create custom widgetry.  At this point all
      	  custom widgetry that can be done is a list to pick from but
      	  this should be possible to extend for some future releases.
      	  This custom info is then written to a per display file
      	  to use from login scripts or elsewhere.  While I was there
      	  I fixed leaks and crashes when the parser would find parse
      	  errors.
      
      	* docs/C/gdmconfig/*, docs/C/gdm.sgml, docs/C/gdm-manual.txt:
      	  remove everything here as it was old and unused and outdated.
      19e695b9
  8. 10 Jun, 2003 1 commit
    • Jiri (George) Lebl's avatar
      use $HOME/.face by default · 360ab4ae
      Jiri (George) Lebl authored
      Mon Jun 09 17:01:27 2003  George Lebl <jirka@5z.com>
      
      	* daemon/slave.c, gui/gdmphotosetup.c: use $HOME/.face by default
      
      	* daemon/slave.c: when no home dir, try /tmp as the home and not /
      
      	* config/*, daemon/gdm.[ch], gui/gdmlogin.c,
      	  gui/greeter/greeter.c, gui/greeter/greeter_action_language.c,
      	  gui/greeter/greeter_configuration.h,
      	  gui/greeter/greeter_session.[ch]:  Rework the session setup as
      	  discussed with Oswald Buddenhagen, the kdm maintainer.   Now the
      	  sessions are .desktop files and we have one happy Xsession file
      	  which parses that .desktop file and runs the appropriate command.
      	  Also store preferences such as last session and language in .dmrc.
      	  The session desktops are now in /etc/X11/dm/Sessions since they can
      	  be shared by kdm as well in the future.  The setup needs a bit
      	  more tuning I think and it's not all tested.
      360ab4ae
  9. 03 Jun, 2003 1 commit
    • Jiri (George) Lebl's avatar
      whack gdmmktemp since it wasn't being used, move gdmaskpass and gdmopen to · 5d162dd3
      Jiri (George) Lebl authored
      Tue Jun 03 13:37:31 2003  George Lebl <jirka@5z.com>
      
      	* gdm.spec.in, configure.in, utils/Makefile.am, daemon/server.c,
      	  daemon/misc.c, daemon/gdm.c, config/XkeepsCrashing:
      	  whack gdmmktemp since it wasn't being used, move gdmaskpass and
      	  gdmopen to libexec since that's where they really belong
      
      	* daemon/gdm.h, config/gdm.conf.in, gui/gdmchooser.(c|glade): add an
      	  "Add" entry and button so that, we can add random hosts by typing
      	  their name.  Add chooser/AllowAdd config key (default to true)
      	  that controls if this is available.  Also fix up the updating of
      	  the icon list.  it was incredibly evil and rebuilt the list each
      	  time a host packet came in, this compounded with the fact that
      	  we were pinging 3 times (at least the broadcast to which everyone
      	  answers).  Also make this run fairly sanely outside of GDM,
      	  so that you can really just run it from anywhere if you really
      	  wish (mostly for debugging, though I imagine some other uses might
      	  pop up).
      5d162dd3
  10. 05 May, 2003 1 commit
    • Jiri (George) Lebl's avatar
      fixup files list and lang stuff · 2aff37fd
      Jiri (George) Lebl authored
      Mon May 05 13:33:28 2003  George Lebl <jirka@5z.com>
      
      	* gdm.spec.in: fixup files list and lang stuff
      
      	* config/Makefile.am: fixup link creation (don't use absolute name)
      2aff37fd
  11. 26 Apr, 2002 1 commit
    • Jiri (George) Lebl's avatar
      Whack the gdmconfig again, gdmconfig is now really dead · 0b6ad30c
      Jiri (George) Lebl authored
      Thu Apr 25 17:20:52 2002  George Lebl <jirka@5z.com>
      
      	* Makefile.am, configure.in, gdm.spec.in, gdmsetup-security.in:
      	  Whack the gdmconfig again, gdmconfig is now really dead
      
      	* configure.in, docs/Makefile.am: don't build gdmconfig docs
      
      	* gui/greeter/greeter.c, gui/greeter/greeter_canvas_item.c,
      	  gui/greeter/greeter_events.c, gui/greeter/greeter_geometry.c,
      	  gui/greeter/greeter_item.c, gui/greeter/greeter_item.h,
      	  gui/greeter/greeter_item_capslock.c, gui/greeter/greeter_parser.c,
      	  gui/greeter/greeter_parser.h:  Handle multi-item buttons so that
      	  we can catch clicks on the labels next to the buttons in the
      	  circles theme.  Add 'show modes' since some items may not be shown
      	  depending on what the daemon tells us.  Reformat some code to be in
      	  the same style.  Fix a bunch of leaks and some other minor fixes.
      	  Also the text is now not taken from a "val" property but from the
      	  content since text in a property is just on crack.
      
      	* gui/greeter/greeter.dtd: update a tad but it's still out of date
      
      	* gui/greeter/themes/circles/circles.xml: update for the above
      	  changes
      0b6ad30c
  12. 16 Nov, 2001 1 commit
    • Gregory Leblanc's avatar
      some build fixes · 4fa37b58
      Gregory Leblanc authored
      Thu Nov 15 23:25:41 2001  George Lebl <jirka@5z.com>
      
      	* configure.in: some build fixes
      
      	* **/*.c: remove RCSid's as they are un-fun for merging
      
      	* Merge from gdm-2-2:
      
      	Thu Nov 15 21:18:48 2001  George Lebl <jirka@5z.com>
      
      	* daemon/gdm.[ch], daemon/slave.[ch], daemon/server.c, gui/gdmlogin.c:
      	  clean up a bit of the constants mess (though it's still an utter
      	  mess).  Implement a new SUP opcode so that the daemon knows
      	  when the server was started so that it can start local servers
      	  in order, so that things like complete machine lockups don't occur
      	  (I got one just testing this).  Also add a 3 second 'padding'
      	  between server starts to really be sure.
      
      	* config/gdm.conf.in:  add some comments, mostly for distributions
      
      	2001-11-06  Gregory Leblanc  <gleblanc@linuxweasel.com>
      
      	* gdm.spec.in: more minor updates, just to piss George off.  :-)
      	There's a ChangeLog in the file, if you care that much.
      4fa37b58
  13. 29 Aug, 2001 1 commit
  14. 22 Aug, 2001 1 commit
    • Jiri (George) Lebl's avatar
      Add two new small sbin utils. gdmopen is like open (based on it) but · 6addcb90
      Jiri (George) Lebl authored
      Wed Aug 22 23:01:59 2001  George Lebl <jirka@5z.com>
      
      	* configure.in, Makefile.am, utils/gdmopen.c, utils/gdmaskpass.c:
      	  Add two new small sbin utils.  gdmopen is like open (based on it)
      	  but better suited for gdm.  Exitcode is returned so no temp files
      	  are needed.  Process is cleaned up on a signal, the new vt is
      	  deallocated after use.  And unlike openvt this thing actually waits
      	  for the child.  Gdmaskpass just asks for the root password, for
      	  use in the XKeepsCrashing script.  Both of these things will only
      	  run as root as I'm too paranoid and it doesn't make sense for
      	  them to run otherwise for gdm anyway.
      
      	* configure.in: Fix sbin expansion.
      
      	* daemon/gdm.c, daemon/misc.[ch], daemon/slave.c, daemon/server.c:
      	  Use gdmopen to run dialog and add helper functions for doing this.
      
      	* daemon/gdm.h, daemon/slave.c, daemon/server.[ch]:  When a server is
      	  busy, ask the user if we want to run it on a new display number
      	  or retry.
      
      	* daemon/gdm.c, daemon/misc.c, daemon/slave.c: Make sure to whack
      	  any extra helper processes we launch when we are killed so that
      	  we don't leave things like 'dialog' processes around
      
      	* daemon/gdm.c, config/XKeepsCrashing:  Use gdmaskpass, ask if
      	  the user wants to view X logs if X is crashing.  And use gdmopen
      	  in the script and correctly abort with exit 32.  Also make it
      	  not use the ugly tempfile stuff (Though a tempfile is still given
      	  to the script for now)
      
      	* gdm.spec.in: raise epoch to 1, people abuse this field, and if they
      	  do abuse it again and raise it beyond 1, I'll just max it out since
      	  it makes package upgrading not work.
      
      	* daemon/slave.c, daemon/verify-(pam|crypt|shadow).c: add
      	  /sbin/nologin as a thing to test for for disabled logins in
      	  addition to /bin/false and /bin/true (it worked, but this adds a
      	  nicer message)
      
      	* daemon/xdmcp.c: fix a warning.
      
      	* gui/gdmflexiserver.desktop.in: kill TryExec here
      6addcb90
  15. 24 Jul, 2001 1 commit
  16. 06 Jul, 2001 1 commit
    • Jiri (George) Lebl's avatar
      remove the connection to RedHat's default init as that just does some · e5f8b2e2
      Jiri (George) Lebl authored
      Thu Jul 05 18:50:23 2001  George Lebl <jirka@5z.com>
      
      	* gdm.spec.in: remove the connection to RedHat's default init as that
      	  just does some background setting but we already set background
      	  ourselves in a nicer way and this just resulted in a slowdown and
      	  a flash
      
      	* daemon/server.c, daemon/slave.c: be more thorough in closing
      	  displays, never include an empty xioerror handler, and normally
      	  xio errors do a DISPLAY_REMANAGE and only on server startup do they
      	  do XFAILED.  Also before and after whacking clients grab/ungrab the
      	  server as xdm does.
      
      	* daemon/xdmcp.c: fix warnings
      e5f8b2e2
  17. 05 Jul, 2001 1 commit
    • Jiri (George) Lebl's avatar
      raise version to 2.2.3.1 · 77acdba9
      Jiri (George) Lebl authored
      Thu Jul 05 03:29:01 2001  George Lebl <jirka@5z.com>
      
      	* configure.in: raise version to 2.2.3.1
      
      	* gdm.spec.in: do a "soft restart" in %post
      
      	* gui/gdmchooser.c, gui/gdmlogin.c: warning fixes
      
      	* daemon/misc.h, daemon/slave.c, daemon/xdmcp.c, daemon/choose.c,
      	  daemon/display.c, daemon/gdm.c,saemon/server.c: fix printf style
      	  warnings
      
      	* daemon/choose.[ch], display/gdm.[ch], daemon/slave.c: change the
      	  fifo protocol to be text based so that we can also control from
      	  scripts like the .spec file.  Also store all the different pids
      	  in the daemon so that we can whack all the different processes
      	  the slave starts if it crashes.  Also add a soft restart opcode.
      77acdba9
  18. 03 Jul, 2001 1 commit
    • Jiri (George) Lebl's avatar
      Hosts,Broadcast were in the wrong section · c8e6129f
      Jiri (George) Lebl authored
      Tue Jul 03 02:14:41 2001  George Lebl <jirka@5z.com>
      
      	* daemon/gdm.h: Hosts,Broadcast were in the wrong section
      
      	* daemon/xdmcp.c: check for current displays BEFORE we check the
      	  number of pending and allocate a new display, this way we'll remove
      	  it if it itself has been pending, also don't just dispose, the
      	  display may be already managed, in which case we want to unmanage
      	  it to avoid a process leak.
      
      	* gdm.spec.in: fix pam prefix stuff and file listing
      
      	* config/Makefile.am: fix pam installation stuff
      c8e6129f
  19. 29 Jun, 2001 1 commit
  20. 23 Jun, 2001 1 commit
  21. 05 Jun, 2001 1 commit
    • Jiri (George) Lebl's avatar
      remove unused opcode (GDM_STOP) · ab1e1168
      Jiri (George) Lebl authored
      Sun Jun 03 04:55:49 2001  George Lebl <jirka@5z.com>
      
      	* daemon/gdm.h: remove unused opcode (GDM_STOP)
      
      	* daemon/slave.c, gui/gdmlogin.c: On GDM_QUIT the login will make
      	  sure to quickly quit and in the slave we no longer kill it to
      	  avoid a possible race, also try to avoid other races todo with
      	  killing things.  Also fclose the greeter channel to avoid a leak.
      
      	* daemon/gdm.h, daemon/slave.c: get the size of the screen from
      	  xinerama and center error dialog stuff.
      ab1e1168
  22. 24 May, 2001 1 commit
    • Jiri (George) Lebl's avatar
      a script to restart the gdm daemon, in sbin for root pleasure only · 381aed51
      Jiri (George) Lebl authored
      Thu May 24 15:32:54 2001  George Lebl <jirka@5z.com>
      
      	* configure.in, gdm-restart.in, Makefile.am: a script to restart
      	  the gdm daemon, in sbin for root pleasure only
      
      	* gdm.spec.in: redo the file list to be hopefully sane
      
      	* daemon/gdm.c: actually read in GdmConfigurator
      
      	* gui/gdmconfig.c: show help fromt he help button
      
      	* gui/gdmlogin.c, gui/gdmwm.[ch]: add some short-circuit functions
      	  for window moving, bypassing the window management foo.  This makes
      	  quiver nice again.
      381aed51
  23. 06 May, 2001 1 commit
  24. 08 Mar, 2001 3 commits
  25. 05 Mar, 2001 1 commit
  26. 28 Feb, 2001 1 commit
  27. 14 Feb, 2001 1 commit
  28. 03 Feb, 2001 4 commits