summaryrefslogtreecommitdiff
path: root/gui/gdmflexiserver.c
Commit message (Collapse)AuthorAgeFilesLines
* Apply patch to fix #133191 from msuarezalvarez@arnet.com.ar (MarianoGeorge Lebl2004-02-081-1/+1
| | | | | | | Sun Feb 08 09:57:56 2004 George Lebl <jirka@5z.com> * gui/gdmflexiserver.c: Apply patch to fix #133191 from msuarezalvarez@arnet.com.ar (Mariano Suárez-Alvarez
* minor cleanupGeorge Lebl2004-01-251-0/+26
| | | | | | Sun Jan 25 15:49:53 2004 George Lebl <jirka@5z.com> * gui/gdmflexiserver.c: minor cleanup
* the console/vt check for check_for_users was completely wrongGeorge Lebl2004-01-071-2/+2
| | | | | | | Tue Jan 06 16:06:12 2004 George Lebl <jirka@5z.com> * gui/gdmflexiserver.c: the console/vt check for check_for_users was completely wrong
* Add QUERY_VT and SET_VT commands that handle the VT's on linux. This isGeorge Lebl2004-01-061-3/+425
| | | | | | | | | | | | | | | | | | | | | | Mon Jan 05 23:30:38 2004 George Lebl <jirka@5z.com> * daemon/gdm.[ch], daemon/slave.c, daemon/misc.[ch], daemon/getvt.[ch]: Add QUERY_VT and SET_VT commands that handle the VT's on linux. This is because not all console logins will actually own /dev/console. When we change to a VT that we own, also twiddle the cursor to turn off any screensaver or tickle the xscreensaver lock dialog etc... * gui/gdmcomm.c: handle displays with the screen thingie set correctly (that is whack the screen part, GDM is not interested in it). * gui/gdmflexiserver.c: Fix #127038 by presenting a list of already logged in users / open displays (on the console). This code may be useful to steal for other such switchers. * daemon/cookie.c: don't read root's mail to get entropy, that may be evil actually.
* Use the new ve_hig_dialog_new interface to set the markup flag whereGeorge Lebl2003-09-191-0/+4
| | | | | | | | | | | | | | | | Fri Sep 19 15:34:36 2003 George Lebl <jirka@5z.com> * gui/gdmXnestchooser.c, gui/gdmchooser.c, gui/gdmcomm.c, gui/gdmflexiserver.c, gui/gdmlogin.c, gui/gdmphotosetup.c, gui/gdmsetup.c, gui/greeter/greeter.[ch], gui/greeter/greeter_action_language.c, gui/greeter/greeter_item_pam.c, gui/greeter/greeter_session.c, gui/greeter/greeter_system.c: Use the new ve_hig_dialog_new interface to set the markup flag where appropriate fixing #122683 * gui/gdmphotosetup.c, gui/gdmsetup.c: convert filenames to utf8 before displaying them.
* compile gdmgreeter with viciousui (adds also libgnomeui, though we don'tGeorge Lebl2003-07-081-17/+22
| | | | | | | | | | | | | | | | Mon Jul 07 18:04:21 2003 George Lebl <jirka@5z.com> * configure.in, gui/greeter/Makefile.am: compile gdmgreeter with viciousui (adds also libgnomeui, though we don't use it) (ugh!) * gui/gdmXnestchooser.c, gui/gdmchooser.c, gui/gdmcomm.c, gui/gdmflexiserver.c, gui/gdmlogin.c, gui/gdmphotosetup.c, gui/gdmsetup.c, gui/greeter/Makefile.am, gui/greeter/greeter.[ch], gui/greeter/greeter_action_language.c, gui/greeter/greeter_item_pam.c, gui/greeter/greeter_session.c, gui/greeter/greeter_system.c: HIGify as many message dialogs as possible. Buttons now make more sense, ordering is HIGgy, and all such good stuff.
* Dialogs have no separators. Makes them look at least a bit closer to HIGGeorge Lebl2003-06-061-0/+8
| | | | | | | | | | | | Fri Jun 06 16:39:17 2003 George Lebl <jirka@5z.com> * daemon/errorgui.c, gui/gdmXnestchooser.c, gui/gdmchooser.c, gui/gdmcomm.c, gui/gdmflexiserver.c, gui/gdmlogin.c, gui/gdmphotosetup.c, gui/gdmsetup.c, gui/greeter/greeter.c, gui/greeter/greeter_action_language.c, gui/greeter/greeter_item_pam.c, gui/modules/dwellmouselistener.c, gui/modules/keymouselistener.c: Dialogs have no separators. Makes them look at least a bit closer to HIG
* use the ve_signal routines, remove gdm_signal routinesGeorge Lebl2002-07-301-26/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Jul 29 17:45:59 2002 George Lebl <jirka@5z.com> * daemon/gdm.[ch]: use the ve_signal routines, remove gdm_signal routines * gui/gdmlogin.c, gui/greeter/greeter.c, gui/greeter/greeter_item_clock.[ch]: use the ve_signal routines for the HUP signal to avoid possible crashes/races/hangs if the signal handler comes in a bad time. Also don't reset the graphical on every damn change, just the ones we care about, and update clock on the fly instead of restarting. * gui/gdmchooser.c: make glade_helper not use the gnome_program thingie, since we never init it here. * gui/Makefile.am, gui/gdmlogin.c, gui/gdmchooser.c, gui/gdmflexiserver.c, gui/gdmXnestchooser.c, gui/gdmcomm.c gui/greeter/Makefile.am, gui/greeter/greeter.c, gui/greeter/greeter_item_pam.c, gui/greeter/greeter_item_clock.c, gui/greeter/greeter_item_capslock.c, gui/greeter/greeter_item.c, gui/greeter/greeter_canvas_item.c: Compile without deprecated stuff. fix minor bugs found during the process. Also compile everything with warnings and fix those. * gui/gdmlogin.c, gui/gdmcomm.c, gui/gdmsetup.c, gui/greeter/greeter.c: Use the new ve-config routines rather then gnome_config. Fixed config bugs found in the process. This also makes gdmsetup not delete comments and empty lines from the config which makes debugging and hand editting SO MUCH SIMPLER! * gui/gdmsetup.c: recheck for gdm running before every update * gui/gdmlogin.c, gui/greeter/greeter.c: remove the g_io_channel_init call which was reseting the whole setup. So our channels were still buffered and encoded, which manifested itself when the read calls were replaced the read_chars. This could actually solve the FreeBSD issues too.
* note that gethostname doesn't neccessairly nul terminate stringGeorge Lebl2002-07-211-1/+1
| | | | | | | | | | | | | | | | | | Sun Jul 21 12:57:57 2002 George Lebl <jirka@5z.com> * daemon/xdmcp.c, daemon/server.c, daemon/auth.c, daemon/misc.c, gui/gdmXnestchooser.c, gui/gdmchooser.c, gui/gdmlogin.c, gui/greeter/greeter_item.c: note that gethostname doesn't neccessairly nul terminate string * gui/Makefile.am, gui/gdmXnestchooser.c: fix background xnest mode, add plain X nest mode by just running gdmXnest. Use gtk dialogs instead of gnomes. Setup a cookie in plain x nest mode. * daemon/slave.c, daemon/server.c, daemon/display.c, gui/gdmlogin.c: use the waitpid version from ve that doesn't break on signals this could fix some possible session being killed bugs unintentionally
* corrected yodaspeak and thus #83077George Lebl2002-07-111-4/+4
| | | | | | Thu Jul 11 15:15:42 2002 George Lebl <jirka@5z.com> * gui/gdmflexiserver.c: corrected yodaspeak and thus #83077
* raise version to .4George Lebl2002-05-211-2/+3
| | | | | | | | | | | | | | | | | Tue May 21 16:47:53 2002 George Lebl <jirka@5z.com> * configure.in: raise version to .4 * configure.in, gui/Makefile.am, gui/greeter/Makefile.am: hopefully fix #79374 by add -lX11 to the link lines * gui/greeter/greeter_action_language.c: fix OK/CANCEL order, #80038 * daemon/gdm.[ch], gui/gdmflexiserver.c: change the format of the FLEXI_XNEST request. Now we require version 2.3.90.4 and there is also a uid parameter. We then seteuid to this uid before checking authenticity, this makes things work when the home dir is on nfs. Fixes #82122
* split off the comm routines to a separate file, so that we may use thisGeorge Lebl2002-04-221-387/+12
| | | | | | | | | | Mon Apr 22 10:27:43 2002 George Lebl <jirka@5z.com> * gui/gdmcomm.[ch], gui/gdmflexiserver.c, gui/gdmsetup.c, gui/Makefile.am: split off the comm routines to a separate file, so that we may use this from the setup proggie * gui/greeter/greeter_system.c: include unistd.h
* use GETTEXT_PACKAGEGeorge Lebl2002-01-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | Mon Jan 21 19:14:28 2002 George Lebl <jirka@5z.com> * acconfig.h, configure.in: use GETTEXT_PACKAGE * daemon/gdm.c, daemon/misc.[ch], daemon/verify-pam.c, daemon/server.c, daemon/slave.c, daemon/display.c: When displaying something on a console display it only when the console is UTF-8, which is only true if "gdmopen vt-is-UTF8 -q" returns 0 status. Else don't actually translate anything and just print out the english/ASCII version. * daemon/verify-pam.c: Better check for existance of the pam gdm configuration * daemon/gdm.c, gui/gdmXnestchooser.c, gui/gdmchooser.c, gui/gdmconfig.c, gui/gdmflexiserver.c, gui/gdmlogin.c, gui/gdmphotosetup.c: property bind gettext stuff and make sure we correctly set it up for UTF-8
* Yay! it like all builds and stuffGeorge Lebl2001-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 16 12:38:30 2001 George Lebl <jirka@5z.com> Yay! it like all builds and stuff * gui/gdmlogin.c: fix crash for timed logins * config/gdm.conf.in, daemon/gdm.h, gui/gdmlogin.c, gui/gdmconfig.(c|h|glade): Remove the font option, it can now be done by using the pango markup in the welcome message * gui/gdmchooser.h gui/gdmlogin.h, gui/Makefile.am: remove useless header files. * gui/gdmchooser.c: reorganize the code a bit to remove useless forward declarations * gui/gdmchooser.c, gui/gdmlogin.c, gui/gdmconfig.[ch], gui/gdmflexiserver.c, gui/gdmwm.[ch], gui/misc.h: Port to pixbuf and gnome2. * utils/Makefile.am: remove (includedir) to make it not pickup gnome1 headers
* Begin GNOME 2.0 porting. Not complete yet, daemon may 'compile', guiGeorge Lebl2001-11-061-1/+2
| | | | | | | | Mon Nov 05 21:28:43 2001 George Lebl <jirka@5z.com> * configure.in, **/Makefile.am, daemon/*.[ch], utils/*.[ch], gui/*.[ch]: Begin GNOME 2.0 porting. Not complete yet, daemon may 'compile', gui doesn't compile yet
* deal with the case where MSG_NOSIGNAL is not defined by temporairlyGeorge Lebl2001-09-271-1/+14
| | | | | | | | Wed Sep 26 23:54:11 2001 George Lebl <jirka@5z.com> * daemon/gdm-net.c, gui/gdmflexiserver.c: deal with the case where MSG_NOSIGNAL is not defined by temporairly ignoring the SIGPIPE signal. Fixes #60586
* use the safe fork functionGeorge Lebl2001-09-111-3/+3
| | | | | | | | | | | | Tue Sep 11 01:37:42 2001 George Lebl <jirka@5z.com> * daemon/errorgui.c: use the safe fork function * daemon/gdm.c: a doh kind of error, waitpid returns 0 to mean 'no child', not -1 as I assumed. * gui/gdmflexiserver.c: another doh!, actually whack the screen portion of the display number
* raise versionGeorge Lebl2001-09-111-20/+101
| | | | | | | | | | | | | | | | | | | | | | | | | Mon Sep 10 20:20:59 2001 George Lebl <jirka@5z.com> * configure.in: raise version * daemon/gdm.[ch], daemon/auth.c, daemon/misc.[ch], daemon/display.c, daemon/server.c, daemon/slave.c, gui/gdmflexiserver.c: Implement a new scheme for the FLEXI_XNEST command. Old implementations will get ERROR 100 (I doubt there are any). This solves some security issues with the Xnest stuff. The Xnest server is now run as the user who owns the .Xauthority file, but only if that file is readable ONLY by the user and only if the user can access keys inside it. An MIT-MAGIC-COOKIE-1 must exist for the current display on which Xnest will run. This is of course true for gdm created sessions. * daemon/misc.[ch], daemon/gdm.c, daemon/server.c, daemon/slave.c, daemon/display.c: Implement a race safe fork, and improve the signal handlers to handle some more corner cases and avoid some races. Also remove the old last_killed_pid hack since it's now handled nicer. * daemon/gdm.[ch]: add a protocol
* When we run a new flexi server lock the current screen with xscreensaver.George Lebl2001-09-031-0/+14
| | | | | | | | | | Mon Sep 03 00:38:23 2001 George Lebl <jirka@5z.com> * gui/gdmflexiserver.c: When we run a new flexi server lock the current screen with xscreensaver. We need a nicer locker though and one that can also run gdmflexiserver. And this even for normal gnome locking. It would be nice if xscreensaver allowed a custom locker dialog.
* Implement DisplaysPerHost which was documented so it should have worked inGeorge Lebl2001-09-011-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Sat Sep 01 00:47:36 2001 George Lebl <jirka@5z.com> * daemon/xdmcp.c, daemon/gdm.[ch], daemon/server.c: Implement DisplaysPerHost which was documented so it should have worked in the first place * daemon/xdmcp.c, daemon/server.c, daemon/auth.c, daemon/gdm.c, daemon/choose.c, daemon/cookie.c, daemon/display.c, daemon/slave.c, gui/gdmlogin.c: fix some memleaks, none really dangerous * daemon/xdmcp.c: messages such as status information shouldn't be translated. Because they go over a wire with no specification of charset or language. * gui/gdmlogin.c: Fix broken "session don't exist wanna save new one" message * daemon/gdm.c: Make sure static display numbers are unique. and fix a possible crash in flexible server code * docs/C/gdm.sgml: a small update
* Minor cleanup and paranoiaGeorge Lebl2001-08-261-46/+140
| | | | | | | | | | | | | | | | | | | | | | | | Sun Aug 26 01:45:33 2001 George Lebl <jirka@5z.com> * daemon/auth.c, daemon/cookie.c: Minor cleanup and paranoia * daemon/gdm-net.[ch], daemon/gdm.[ch], daemon/server.c, daemon/slave.[ch]: The daemon now keeps track of the cookies in text form at least so that it can do authentication of it's own. FLEXI_XSERVER now requires an "authenticated" socket connection using AUTH_LOCAL (a new opcode). This way only those users that are logged in from gdm on a console can start new console/fullscreen flexi servers. I mean for remote people it wouldn't work anyway. * gui/gdmflexiserver.c: implement AUTH_LOCAL authentication scheme by reading from the .Xauthority file and looking for FamilyLocal entries from gdm. (or those looking like it). Tests all candidates and find the one that works for gdm. This could cause some gdm_info messages in the log, but I suppose that's ok, vast majority of the time there will only be one that is even tried. Also added a debug flag and get xauth filename from XauFileName rather then my own hand created method.
* Fix wiping of pid file on "gdm already exists" messageGeorge Lebl2001-08-251-1/+21
| | | | | | | | | | | | | | | Sat Aug 25 10:06:39 2001 George Lebl <jirka@5z.com> * daemon/gdm.c, daemon/misc.c: Fix wiping of pid file on "gdm already exists" message * daemon/gdm.c, daemon/gdm-net.c: Don't unlink files on close. Instead only unlink things on final_cleanup. This fixes the disappearing socket trick. * gui/gdmflexiserver.c: When not local refuse to run. This is still not perfect. But I don't suppose we'll get much better. Unfortunately a new string. The translators will beat me up.
* raise version numberGeorge Lebl2001-08-211-4/+20
| | | | | | | | | | | | | | Tue Aug 21 03:03:49 2001 George Lebl <jirka@5z.com> * configure.in: raise version number * daemon/display.c, daemon/gdm.[ch], daemon/server.[ch], daemon/slave.c, daemon/xdmcp.c: Send back info about current user and get the VT number on linux. Implement a command in the control protocol for getting a list of console logins * gui/gdmflexiserver.c: add an option for sending arbitrary commands to gdm for testing, and remove debugging output
* add some code for choosable servers (not implemented yetGeorge Lebl2001-08-191-2/+155
| | | | | | | | | | | | | | | | | | | | | | | | | Sat Aug 18 18:17:44 2001 George Lebl <jirka@5z.com> * daemon/gdm.[ch]: add some code for choosable servers (not implemented yet * daemon/misc.c: search our own displays for used numbers first * daemon/gdm.c, daemon/server.c, daemon/slave.c: Finish implementing choosing of flexi servers * daemon/slave.c, daemon/verify{,-pam,-crypt,-shadow}.[ch]: Correctly implement credential setting and some pam related fixes * gui/gdmconfig.(c|h|glade): Start on making configuration for all the new stuff including the server definitions, not finished yet. * gui/gdmflexiserver.c: if there are multiple flexible servers, give the user a choice * gui/gdmflexiserver-xnest.desktop.in: only show if Xnest exists
* Finish implementation of flexible servers and lots of related cleanup andGeorge Lebl2001-08-171-57/+62
| | | | | | | | | | | | | | | | | | | | | | Fri Aug 17 04:42:34 2001 George Lebl <jirka@5z.com> * daemon/auth.c, daemon/display.c, daemon/gdm-net.[ch], daemon/gdm.[ch], daemon/server.[ch], daemon/slave.[ch]: Finish implementation of flexible servers and lots of related cleanup and restructuring that was related. * daemon/server.c: close all fd's when running the X server. * gui/gdmflexiserver.c: implement the updated protocol and implement all the error codes * gui/Makefile.am, gui/gdmflexiserver(|-xnest).desktop.in, po/POTFILEs.in: Add launchers for new flexi server and new xnest flexiserver * gui/gdmlogin.c, daemon/slave.c: On flexi servers add the "Quit" menu thingie, since it's just as useful as in xdmcp case here. It should probably be a close button, not a Quit button. I dunno.
* Add a proggie for starting an Xnest chooser session.George Lebl2001-08-161-0/+342
Thu Aug 16 01:29:05 2001 George Lebl <jirka@5z.com> * configure.in, gui/gdmXnestchooser.c, gui/Makefile.am: Add a proggie for starting an Xnest chooser session. * daemon/gdm-net.c, daemon/gdm.[ch], gui/Makefile.am, gui/gdmflexiserver.c: Make the protocol actually work right and add a small proggie for starting new flexi X servers.