summaryrefslogtreecommitdiff
path: root/session.c
AgeCommit message (Collapse)AuthorFilesLines
2010-01-12xdm: add SELinux supportManoj Srivastava1-0/+56
Initial patch submitted in Debian bug#233551. Forward-ported to modular X by Eugene Konev (changes: remove Imakefile hunks, add --with-selinux flag to configure.ac). Updated to latest SE Linux code by Russell Coker 3rd Aug 2008, with bugfix from Julien Cristau (Debian bug#493524). Signed-off-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com> Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
2010-01-12Improve logging of xdm's script handlingBranden Robinson1-13/+20
* Make execution of the session program an informational log message (with LogInfo()), not a Debug() message. * Ensure that source()d scripts (Xreset, Xsetup, Xstartup) can be fopen()ed before invoking runAndWait() on them. If they can, LogInfo() the fact. If they cannot, LogInfo() that, too, and use _SysErrorMsg() to report why fopen() failed. * Make source() complain using Debug() when it is given a null pointer in its file argument. * For clarity, make source() return from only one location. Also see Debian bug #219311. Forward ported by Eugene Konev. Signed-off-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com> Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
2009-07-17Use _SysErrorMsg() in the log message in various error conditions.Branden Robinson1-15/+18
Change LogError() invocations to use _SysErrorMsg() where errno might be set (and not clobbered by intermediate calls). Also make LogError() the first thing we do after an error condition in those cases. Forward-ported by David Nusinow, Eugene Konev and Julien Cristau. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-07-17Use xdm's _SysErrorMsg() function instead of merely printing errnoBranden Robinson1-3/+4
2009-07-17session.c: Add more debugging to execute()Branden Robinson1-1/+6
[jcristau@debian.org: save errno before calling Debug() in one place]
2009-07-17Remove #ifdef Lynx blocksAlan Coopersmith1-7/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-07-17Use imdent to show cpp macro nesting more clearlyAlan Coopersmith1-25/+25
Also strip trailing whitespace to make git happier. While many lines are changes, "git diff -w" shows no changes other than pure whitespace. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-07-16Remove RCS IdsAlan Coopersmith1-3/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2008-05-06Bug 10145: xdm passes file descriptors to childrenSamuel Thibault1-0/+4
X.Org Bugzilla #10145 <https://bugs.freedesktop.org/show_bug.cgi?id=10145> Patch #14644 <https://bugs.freedesktop.org/attachment.cgi?id=14644> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2007-05-24Bug #11020: xdm doesn't set SSH_AUTH_SOCK even though using with pam_sshAlan Coopersmith1-0/+4
Wasn't calling pam_setcred()/pam_getenvlist() if setusercontext() was present X.Org Bugzilla #11020: <https://bugs.freedesktop.org/show_bug.cgi?id=11020>
2007-02-01Bug 8014: xdm should set the WINDOWPATH environment variableSamuel Thibault1-0/+6
X.Org Bug #8014: <https://bugs.freedesktop.org/show_bug.cgi?id=8014> Patch #6702: <https://bugs.freedesktop.org/attachment.cgi?id=6702>
2006-07-14Use pid_t instead of int when working with fork/wait/etc. (clear more lint ↵Alan Coopersmith1-8/+8
warnings)
2006-07-14Fix many sparse warnings of: Using plain integer as NULL pointerAlan Coopersmith1-6/+6
Also fixes Login.c:1329:5: warning: mixing declarations and code from extra ;
2006-06-20Check setuid() return value. Bugzilla #7116.Matthieu Herrb1-3/+9
2006-06-03Convert PAM code to use full PAM conversation. Modify greeter to allow PAMAlan Coopersmith1-8/+16
to prompt for more than just username and password. Rely on PAM to initialize Secure RPC & Kerberos credentials when it is being used. (Based on work begun for Sun bug #6398796 "Solaris-10: Unable to login thru xdm once password is aged")
2006-04-08Xorg bug #4765 <https://bugs.freedesktop.org/show_bug.cgi?id=4765> PatchAlan Coopersmith1-12/+11
#3555 <https://bugs.freedesktop.org/attachment.cgi?id=3555> xdm doesn't work with the pam_krb5 module (call pam_getenvlist after pam_setcred) (Constantine Sapuntzakis)
2006-03-16Convert checks for <grp.h>, daemon(), and setpgrp arguments to autoconfAlan Coopersmith1-2/+2
tests instead of checking OS name #ifdefs.
2006-02-25Bug #6036 <https://bugs.freedesktop.org/show_bug.cgi?id=6036> Check forAlan Coopersmith1-1/+3
key_setnet declaration before defining it to avoid compiler error of conflicting types on DragonFly BSD
2005-11-08See ChangeLog entry 2005-11-07 for details.XORG-6_8_99_903XORG-6_8_99_902Kean Johnson1-3/+41
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich1-1/+2
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich1-1/+1
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich1-1/+1
2004-01-29Importing vendor version xf86-012804-2330 on Thu Jan 29 00:06:33 PST 2004xf86-4_3_99_903_specialxf86-012804-2330Egbert Eich1-2/+2
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16Kaleb Keithley1-108/+94
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley1-104/+158
2003-11-14R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley1-0/+878