History log of /freebsd-10.1-release/usr.sbin/ppp/id.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-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

# 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


# 202192 13-Jan-2010 ed

Port ppp(8) to utmpx.

A nice thing about utmpx is that it makes it very easy to log sessions
that don't use TTYs. This is because the file is not indexed by TTY
slots anymore.

Silence from: brian


# 98243 15-Jun-2002 brian

Remove whitespace at the end of lines.


# 97360 27-May-2002 brian

Coerce pid_t to long rather than int for better portability.

Suggested by: Theo de Raadt <deraadt@openbsd.org>


# 91681 05-Mar-2002 brian

Don't drop the last character from ut_line in ID0logout().

PR: 35531
MFC after: 2 weeks


# 64698 16-Aug-2000 brian

setproctitle() doesn't need to be called with root privs, so move
it from id.c into defs.c


# 64451 09-Aug-2000 brian

If the first character of the ``set title'' argument is `-',
put it into the format string, supporting ps's tweak to
setproctitle().


# 55530 07-Jan-2000 brian

include stdlib.h (setproctitle() is prototyped there in OpenBSD)


# 53535 21-Nov-1999 brian

Call MkSockNode() as uid 0

Forgotten by: julian


# 53298 17-Nov-1999 brian

Fix ``set proctitle'' by using setproctitle().


# 53241 16-Nov-1999 brian

Use modfind() to check if a kld is already loaded.

Submitted mostly by: green


# 52487 25-Oct-1999 brian

Don't (unnecessarily) parse wtmp, force ID0logout() to DTRT instead.


# 51525 21-Sep-1999 brian

Do a kldload() if we get ENXIO trying to open /dev/tun0

Originally submitted by: green


# 50479 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 37210 27-Jun-1998 brian

o Fix remaining sizeof problems for 64 bit machines.
o Allow ``set ....'' when we have multiple links but aren't in
multilink mode.
o Do a TLS when we receive a ``Open'' event in ``Closed'' state,
despite the rfc state transition table. This is clearly an
error in the RFC as TLS cannot have yet been called (without
TLF) in the ``Closed'' state.
I've posted a message to comp.protocols.ppp for confirmation.


# 36467 29-May-1998 brian

o If there's a session leader left running for a descriptor
that we're now closing, manually HUP that session leader
so that the tty is fully released.
o Always restart our carrier detect timer in the receiving
process if it was running in the sending process (as we
now *always* pass the descriptor).
o Tweak argv when we go into pause() mode to keep our session
so that ps can see what's going on (without checking for a
`pause' state in `ps -l').


# 36450 28-May-1998 brian

o Don't forget to close our transfer socket if we cannot
generate the data to transfer.
o Transfer uucp lock ownership for the transferred device.
o Don't assume we know the correct values of dev_is_modem and
mbits after the transfer.


# 36285 21-May-1998 brian

MFMP: Make ppp multilink capable.
See the file README.changes, and re-read the man page.


# 33603 19-Feb-1998 brian

MFMP: Allow 8 character login names.
Do the login()/logwtmp()/logout() as id 0.


# 32663 21-Jan-1998 brian

Remove unused #includes.
Make various bits static.
Remove unused variables.
Submitted by: eivind


# 32025 27-Dec-1997 brian

Write to the routing socket as uid 0. It's not good enough
to just open it as uid 0 under OpenBSD.


# 31921 21-Dec-1997 brian

Add (BSD) copyright headers.


# 31343 22-Nov-1997 brian

Fix prototypes.
Remove extraneous decls.
Add ``const'' to several places.
Allow ``make NOALIAS=1'' to remove IP aliasing.
Merge with OpenBSD - only the Makefiles vary.

We can now survive a compile with
-Wall -Wbad-function-cast -Wcast-align -Wcast-qual
-Winline -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wredundant-decls
-Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts
(although the Makefile just contains -Wall).


# 31159 13-Nov-1997 brian

Use seteuid() instead of setreuid().
The setreuid() page says seteuid is better !


# 31061 09-Nov-1997 brian

Introduce ID0 logging.
Stay as the invoking uid as much as possible.
Execution as a normal user is still forbidden for now,
so these changes are pretty ineffective.
The next commit will implement the modifications suggested
on -hackers a number of days ago.