History log of /freebsd-10.1-release/libexec/rshd/
Revision Date Author Comments
272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


262435 24-Feb-2014 brueffer

MFC: r262136

Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.

Reviewed by: imp


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


236892 11-Jun-2012 des

None of these programs actually use auth.conf.

MFC after: 1 week


229780 07-Jan-2012 uqs

Spelling fixes for libexec/


226937 30-Oct-2011 brueffer

Fix a misplaced parenthesis.

PR: 162164
Submitted by: Henning Petersen <henning.petersen@t-online.de>
MFC after: 1 week


201380 02-Jan-2010 ed

Make WARNS=6 the default for libexec/.

Just like bin/ and sbin/, I think setting WARNS to the highest value
possible will make it more attractive for people to fix warnings.

- The WARNS variable is set in the Makefile in the directory of the
application itself, making it more likely that it will be removed out
of curiosity to see what happens.
- New applications will most likely build with WARNS=6 out of the box,
because the author would more likely fix the warnings during
development than lower WARNS.

Unfortunately almost all apps in libexec require a lowered value of
WARNS.


146074 11-May-2005 jmallett

Spell SHUT_RDWR as SHUT_RDWR not 1+1 as the how argument to shutdown(2).


143907 21-Mar-2005 das

Use sysconf(_SC_ARG_MAX) instead of NCARGS.


141918 14-Feb-2005 stefanf

Fix most cases where the address of an int is passed to a function expecting a
socklen_t * argument.


141846 13-Feb-2005 ru

Expand *n't contractions.


141589 09-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


140941 28-Jan-2005 ru

Let bsd.prog.mk set SRCS and MAN to their default values.


140414 18-Jan-2005 ru

Sort sections.


131487 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


129307 16-May-2004 ru

Markup fixes.


127864 04-Apr-2004 mux

Cast the terminating NULL to char * in the execl() call.

Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>


125337 02-Feb-2004 ru

Removed duplicate -lutil.


123616 17-Dec-2003 obrien

Document what the PAM believers failed to do (and should have),
which is how to rsh as root into a machine.


116033 08-Jun-2003 charnier

The .Xr utility


99500 06-Jul-2002 charnier

The .Nm utility


98885 26-Jun-2002 markm

Gut out (by default unused) cruft, and tidy up warnings.


96195 08-May-2002 des

PAMify.

Sponsored by: DARPA, NAI Labs


91749 06-Mar-2002 des

YA patch I forgot to commit last night.


90335 07-Feb-2002 imp

o const poison a few prototypes to avoid gcc3 warnings
o s/err/error/ in a couple places to avoid shadowing warnings


90334 07-Feb-2002 imp

o __P removal
o new style definitions/declarations
o declare null_conv static and its arguments __unused


90164 04-Feb-2002 kris

Lock down with WFORMAT?=1, with overrides in the subdirectories which
are not yet warning-clean. Tested on i386 and alpha.


90161 04-Feb-2002 kris

Mark a function as __printf0like(). This exposes a warning which requires
some code changes to fix but should be possible.

MFC after: 1 week


79754 15-Jul-2001 dd

Remove whitespace at EOL.


79529 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


79452 09-Jul-2001 brian

Fix the type of the NULL arg to execl()

Idea from: Theo de Raadt <deraadt@openbsd.org>


79366 06-Jul-2001 ru

mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).


76134 29-Apr-2001 markm

Replacement of the old error() routine with errx(3) was premature.
There are protocol issues to deal with.

Bring back this routine (renamed to avoid a library conflict in libssh)
and overhaul it for more 21st Century style coding.

Pointed out by: bde


76125 29-Apr-2001 markm

Grrr. Fix a line that was fatfingered out during the cleanup.
Submitted by: bde
Pointy hat: markm


76106 28-Apr-2001 markm

Cleaner method of making PAMable apps static (in the optional case of
wanting static apps).


76095 28-Apr-2001 markm

Allow static linking.
Asked for by: BDE


76094 28-Apr-2001 markm

Clean up the error handling code a bit. There is no need to "roll our
own" error() routine when errx() is available. This resolves a conflict
when linking statically.


75162 04-Apr-2001 ru

mdoc(7) police: cosmetics.


74874 27-Mar-2001 markm

Add full PAM support for account management and sessions.

The PAM_FAIL_CHECK and PAM_END macros in su.c came from the util-linux
package's PAM patches to the BSD login.c

Submitted by: "David J. MacKenzie" <djm@web.us.uu.net>


74814 26-Mar-2001 ru

- Backout botched attempt to intoduce MANSECT feature.
- MAN[1-9] -> MAN.


74529 20-Mar-2001 ru

Set the default manual section for libexec/ to 8.


72093 06-Feb-2001 asmodai

Fix typo: compatability -> compatibility.

Compatability is not an existing english word.


71918 02-Feb-2001 nik

Structure the options listing to be more standard.

The PR also included documentation for other options, but upon
inspection of the source these options aren't used.

PR: docs/24149
Submitted by: Jesse Monroy, Jr. <opentrax@email.com>


71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


69707 07-Dec-2000 ru

Whitespace-only to sync with -stable.


68949 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68756 15-Nov-2000 ben

remove trailing periods from SEE ALSO.


67001 12-Oct-2000 ru

Removed broken PAM support from rshd(8) and rlogind(8). rshd does
not allocate a pty(4) so it is not suitable at all for interactive
PAM modules. rlogind calls login(1) which is already PAM enabled.

Approved by: markm


62643 05-Jul-2000 bsd

Plug the hole where rshd would bypass a proper .rhosts check if the
password was empty.

Reviewed by: Warner Losh <imp@freebsd.org>


59748 29-Apr-2000 asmodai

Remove dead debug code.
This also removes a dependency/reference on COMPAT_43.


57453 24-Feb-2000 markm

Use libcrypto instead of libdes.


56939 01-Feb-2000 shin

sync iruserok() extension API with other BSDs

Some of rcmd related function is need to be updated to
support IPv6. Some of them are already updated as standard
document. But there is also several de-facto functions and
they are not listed in standard documents.
They are,

iruserok() (used by rlogind, rshd)
ruserok() (used by kerberos, etc)

KAME package updated those functions in original way.

iruserok_af()
ruserok_af()

But recently there was discussion on IETF IPng mailing
list about how to sync those API, and it is decided,

-Those function is not standard and not documented.
-But let BSDs sync their API as de-facto.

And after some discussion, it is announced that

-add update to iruserok() as iruserok_sa()
-no ruserok() API change(it is only updated internaly)

So I sync those API before 4.0 is released.
The changes are,
-prototype changes
-ruserok() internal update (use iruserok_sa() inside)
-removal of ruserok_af()
-change iruserok_af() as static functioin, and also prefix the name with __.
-add iruserok_sa() (Just call __iruserok_af() inside)
-adding flag AI_ALL to getipnodebyaddr() called from __icheckhost().
This is necessary to support IPv4 communication via AF_INET6 socket
could be correctly authenticated via iruserok_sa()
-irusreok_af() call is replaced to iruserok_sa() call
in rlogind, and rshd.

Approved by: jkh


56758 28-Jan-2000 shin

Fix rshd coredump when AF_INET socket is used.

Confirmed by: F. Heinrichmeyer <fritz.heinrichmeyer@fernuni-hagen.de>


56590 25-Jan-2000 shin

several tcp apps IPv6 update
-inetd
-rshd
-rlogind
-telnetd
-rsh
-rlogin

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project


55562 07-Jan-2000 phantom

. mdoc(7)'fy
. add Xrs to hosts.equiv(5), auth.conf(5), services(5) to some pages
. sort Xrs in SEE ALSO sections

Patches based on PR: docs/15680
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>


51433 19-Sep-1999 markm

Fix for new Kerberos4. Make a fist cut at PAM-ising while I'm here.


51036 06-Sep-1999 markm

Fix more Common Error brokenness.


50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


45422 07-Apr-1999 brian

Ensure that things returned by gethostname() and
friends are terminated and allow for a maximum
host name length of MAXHOSTNAMELEN - 1.
Put parenthesis around sizeof args.
Make some variables static.
Fix telnetd -u (broken by my last commit)

Prompted by: bde


45393 06-Apr-1999 brian

Use realhostname() rather than various combinations of
gethostbyaddr() & gethostbyname().

Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.


42587 12-Jan-1999 asami

Oops, I missed a few more /etc/nologin references yesterday. It appears
my check of the tree was incomplete. Sorry guys.

Reported by: Ben Smithurst <ben@scientia.demon.co.uk>


41860 16-Dec-1998 peter

As previously threatened, clean up the rshd -a option and make it default
on rshd and rlogind. However, note that:
1: rshd used to drop a connection with -a if the hostname != ip address.
This is unneeded, because iruserok() does it's own checking.
It was also wrong if .rhosts had an explicit IP address in it,
connections would be dropped from that host solely because the DNS was
mismatched even though it was explicitly intended to work by IP address.
2: rlogind and rshd check the hostname mappings by default now because that
is what goes into the utmp/wtmp and logs. If the hostname != ip address,
then it uses the IP address for logging/utmp/wtmp purposes. There isn't
much point logging ficticious hostnames.
3: rshd -a is now accepted (but ignored) for compatability. If you really
want to make life miserable for people with bad reverse DNS, use tcpd in
paranoid mode (which is questionable anyway, given DNS ttl tweaking).


41480 03-Dec-1998 bde

Fixed long line in previous commit.


41445 01-Dec-1998 dg

Added a -D option to turn on TCP_NODELAY.


38827 05-Sep-1998 jb

Add -lcrypt when building kerberos.


38149 06-Aug-1998 markm

Fix LIBDIR (for aout/ELF).


35728 05-May-1998 rnordier

Replace _exit() with exit()
Pointed out by: Nathan Torkington <gnat@prometheus.frii.com> PR 5585


31837 18-Dec-1997 charnier

Typo.


31490 02-Dec-1997 charnier

No \n in syslog() strings. Add man page to Xrefs. Change null byte to NUL byte.


29917 28-Sep-1997 markm

Changes for the new KTH Kerberos4.
Also make -Wall a bit quieter


27516 18-Jul-1997 wosch

Rshd print to much information if a user does not exists.


25674 10-May-1997 davidn

login_getclass() -> login_getpwclass().


25099 23-Apr-1997 davidn

Added login.conf support.


24379 29-Mar-1997 peter

Be a bit more careful about what port number we are using for the
second socket. If we're going to check for reserved ports, we should
do it properly.


24349 28-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


22989 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


22454 09-Feb-1997 imp

Some patches for source routed packets from OpenBSD.
Rev 1.13 deraadt:
do not warn about valid options; invalid options correctly quit
Rev 1.12 deraadt:
need not clear options since bad ones cause exit;
provos@ws1.physnet.uni-hamburg.de
Rev 1.11 deraadt:
IPOPT_LSRR/IPOPT_SSRR must exit() due to tcp sequencing; pointed
out by provos@wserver.physnet.uni-hamburg.de. also another 1-char
buffer overflow.

Reviewed by: Peter Wemm
Obtained from: OpenSBD


22041 27-Jan-1997 joerg

Make even more copies of hostnames obtained by inet_ntoa(). iruserok()
could still clobber the static storage, yielding an error message with
a wrong hostname.


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


21635 13-Jan-1997 wosch

Sort cross references.


19108 22-Oct-1996 scrappy

Fixes:

When an rsh is denied by rshd because the client is lacking appropriate
.rhosts permission, an error message is formatted for syslog which contains
the client's hostname. The hostname portion of the message relies on a pointer
to a field within gethostbyname()'s internal struct hostent which changes state
between when the pointer is initialized and when it is dereferenced to create th
e
message.

Submitted by: skynyrd@opus.cts.cwu.edu


18471 22-Sep-1996 wosch

add forgotten $Id$


18449 21-Sep-1996 pst

Fix some compilation warnings.


17257 23-Jul-1996 adam

consistent presentation of emphasis


14024 11-Feb-1996 markm

#include <kerberosIV/des.h> -> #include <des.h>


13881 03-Feb-1996 markm

Rename des_set_key -> des_set_key_krb. (libdes conflict)


13681 28-Jan-1996 wosch

Section FILES and SEE ALSO completed
Section FILES and SEE ALSO completed


12387 19-Nov-1995 ache

Add missing & in des_set_key argument


12240 12-Nov-1995 peter

Move the setlogin() call a little earlier.. It was being done in the child
process - which would be no longer allowed if the setlogin() changes go
through. Now the parent (the session leader, when started by inetd) does it.


10401 28-Aug-1995 mpp

Check for expired passwords before allowing access to the system.


4715 20-Nov-1994 wollman

Add distribution=krb for P-HK


3197 29-Sep-1994 csgr

First level of changes for bringing in eBones (kerberos).
- Get rid of inverse logic (NOKERBEROS and NOEBONES) in src/makefile,
and replace with MAKE_KERBEROS and MAKE_EBONES. (Far fewer contortions,
and both default to off.) IF YOU WANT KERBEROS, YOU HAVE TO EXPLICITLY
DEFINE ONE OF THESE.
- Make Makefiles kerberos-aware.


1875 05-Aug-1994 wollman

Update to new make macros and disable Kerberos because we haven't got it
set up right yet.


1593 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1592,
which included commits to RCS files with non-trunk default branches.