Age | Commit message (Collapse) | Author | Files | Lines |
|
Use xdm_LIBS instead. Tested on Solaris.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Based on patch suggested by Bjoern A. Zeeb <bzeeb+patch@zabbadoz.net>
to fix http://bugs.freedesktop.org/show_bug.cgi?id=10522
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Sessreg saves the pid of the calling process in utmp.
If this process is terminated the session is implicitly deleted.
Xstartup is called and the process id is gone right when
the script is done so the session is closed right away.
Using "exec" will save the pid of the master process of this login.
Signed-off-by: Johannes Dewender <xorg@JonnyJD.net>
Tested-by: Johannes Dewender <xorg@JonnyJD.net>
Acked-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Georgy A. Shepelev <shepelev.georgy@googlemail.com>
|
|
The behaviour can be controlled via 'xlogin*echoPasswd' option
in Xresource file. The default option value is 'false'.
Signed-off-by: Georgy A. Shepelev <shepelev.georgy@googlemail.com>
Tested-by: Georgy A. Shepelev <shepelev.georgy@googlemail.com>
[Reformatted to match existing code style by Alan Coopersmith]
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
When PAM rejects a login attempt, the "username" variable remains
uninitialized, which results to garbage being syslogged instead of
login name. Explicit initialization helps to avoid this issue.
Fixes FreeDesktop Bug #26015 <https://bugs.freedesktop.org/show_bug.cgi?id=26015>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Needed since the changes in a4a8f7b83afc9a46bc989c0eeb528a46b3a1db5d
depend on the INSTALL file delivered in xorg-macros 1.4
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
The comment promised 'compatibility until at least R4', so we're 20 years
past due for removing this.
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
|
|
Update StorePid() function to use Matthieu Herrb's changes that refuse
to open an existing pid file, and take more care with the size of the
Pid_t type.
Matthieu Herrb rewrote the StorePid() function based on my changes; he
made it more careful with the size of Pid_t, and treats an existing pid
file as a failure. I then made some more changes: use _SysErrorMsg()
instead of strerror(), and don't assume that the process id we write to
the pidFile is 5 digits.
Forward-ported by David Nusinow, Eugene Konev and Julien Cristau.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
|
|
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>
|
|
* 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>
|
|
Make several LogError() and Debug() messages more informative.
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 Julien Cristau <jcristau@debian.org>.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
|
|
Actually attempt to write data to the auth file in SaveServerAuthorizations();
that way we detect problems like ENOSPC (full filesystem, user over quota)
early enough to do something about it. (See Debian #217505, #253480)
Forward-ported by Julien Cristau <jcristau@debian.org>.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
|
|
Forward-ported by Julien Cristau <jcristau@debian.org>.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
|
|
During normal xdm shutdown, killed local X servers
can be zombies; this is not an error.
Forward-ported by David Nusinow, Eugene Konev and Julien Cristau
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
|
|
Before this change, openlog(3) used to be called by greeter which could
be built as a dynamically loadable plugin. In the latter case, the
ident string passed to openlog(3) resides in a dynamically mapped
memory region that is unmapped later when the plugin is unloaded.
This can cause fatal problems in some environments. For example, in
any GNU/Linux system with PAM support enabled an implicit syslog(3)
call made by a PAM module after plugin unload causes attempt to access
already unmapped memory, followed by instant crash.
It is a common practice to call openlog(3) before the first syslog(3)
call, including implicit calls that could be made e.g. by PAM.
Also, openlog(3) LOG_ODELAY flag is redundant.
Fixes ALT Linux Bug #22362 <https://bugzilla.altlinux.org/show_bug.cgi?id=22362>
Fixes FreeDesktop Bug #24589 <https://bugs.freedesktop.org/show_bug.cgi?id=24589>
Reported-by: Martin Mokrejš <mmokrejs@ribosome.natur.cuni.cz>
Reported-by: Denis Kirienko <dk@altlinux.org>
Patch-by: Oleg Zenin <tt@compas.ihep.su>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Use "$PKG_CONFIG" rather than hard coded "pkg-config"
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
If a client sends an ipv4 address to a dual-stacked xdm that is bound to a ipv6
socket in a forward request, then the packet was silently discarded. Now the
address is encapsulated as a ipv4-mapped address and a response is send back.
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
It must be following AC_USE_SYSTEM_EXTENSION
|
|
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
|
|
Add missing INSTALL file. Use standard GNU file on building tarball
README may have been updated
Remove AUTHORS file as it is empty and no content available yet.
Remove NEWS file as it is empty and no content available yet.
|
|
This macro aggregate a number of existing macros that sets commmon
X.Org components configuration options. It shields the configuration file from
future changes.
|
|
ChangeLog filename is known to Automake and requires no further
coding in the makefile.
|
|
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525596
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Georgy A. Shepelev <shepelev.georgy@googlemail.com>
Tested-by: Georgy A. Shepelev <shepelev.georgy@googlemail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Allows setting authdir to /var/run/xdm
Also refactor directory creation code for less duplication
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Allows setting piddir to /var/run/xdm/
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Add LogAppend function to append to previous LogError/LogInfo without
repeating the xdm error message header.
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Acked-by: Julien Cristau <jcristau@debian.org>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Also move CWARNFLAGS addition to CFLAGS from configure.ac to Makefile.am's
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Similar fix to http://bugs.freedesktop.org/show_bug.cgi?id=23329
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Prevents trailing garbage in the file if the new pid has fewer digits
than the previous pid.
(Originally reported against Solaris dtlogin as Sun bug 6627150)
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
If there is an unresolvable host entry in Xaccess file, XDMCP access from
the hosts whose entries are specified after the unresolvable host in Xaccess
were rejected.
(Originally reported against dtlogin as Solaris bug 6259901.)
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Check to see if username is filled in before calling FailedError, and
fill it in if it's not.
Call FailedError before calling pam_end, so we don't reference a username
that may have been freed already.
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
xdm no longer compiles due to recent commit
56a14b8a1f4d3aa883485b794c818581b8f07cd8 that changed to use asprintf().
There is an additional right-bracket that causes the problem.
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Debian bug#213076
Forward-ported by David Nusinow, Eugene Konev and Julien Cristau.
|
|
|