History log of /freebsd-10-stable/usr.sbin/bootparamd/bootparamd/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
320780 07-Jul-2017 asomers

MFC r318790, r319336

r318790:
Fix a buffer overflow in bootparamd(8)

If /etc/bootparams contains a line with an excessively long pathname, and a
client asks for that path, then bootparamd will overflow a buffer and crash
while parsing that line. This is not remotely exploitable since it requires
a malformed /etc/bootparams file.

Reported by: Coverity
CID: 1305954
Sponsored by: Spectra Logic Corp

r319336:
Fix uninitialized variable in bootparamd.c

Restore line that was accidentally deleted in change 318790

Reported by: Coverity
CID: 1375855
X-MFC-With: 318790
Sponsored by: Spectra Logic Corp

291042 19-Nov-2015 ngie

MFC r290645:

Fix some trivial warnings with bootparamd/main.c

- Convert K&R to something a bit less ancient
- Remove an incorrect, duplicate prototype for bootparamprog_1(..)

PR: 71667
Submitted by: bcran
Sponsored by: EMC / Isilon Storage Division

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


250582 12-May-2013 joel

mdoc sweep.


233510 26-Mar-2012 joel

mdoc: terminate quoted strings.

Reviewed by: brueffer


231118 07-Feb-2012 dim

Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor
set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp.

MFC after: 1 week


229403 03-Jan-2012 ed

Replace index() and rindex() calls with strchr() and strrchr().

The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.

This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.


228990 30-Dec-2011 uqs

Spelling fixes for usr.sbin/


201521 04-Jan-2010 ed

Unbreak bootparamd when setting WITHOUT_NIS.

Submitted by: bf1783 googlemail com


181143 02-Aug-2008 cognet

Remove a useless cast.

Spotted out by: stefanf


181125 01-Aug-2008 cognet

Char is unsigned on arm, so is not suitable to store the return value of
getopt(). Use an int instead.

Submitted by: Matthew Luckie
MFC after: 3 days


175823 30-Jan-2008 rink

Fix bootparamd on 64 bit platforms - at least amd64 was broken due to the
code believing long == 64 bits and using it to store/compare IPv4 addresses.

PR: bin/112163
Submitted by: Tyler Spivey <tspivey@pcdesk.net>
Reviewed by: imp
Approved by: imp (mentor)
MFC after: 1 week


173412 07-Nov-2007 kevlo

Cleanup of userland __P use


156813 17-Mar-2006 ru

Reimplementation of world/kernel build options. For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)


140442 18-Jan-2005 ru

Sort sections.


137675 13-Nov-2004 bz

Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on no NIS support and related programs will be built.

Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il>
PR: bin/68303
No objections: des, gshapiro, nectar
Reviewed by: ru
Approved by: rwatson (mentor)
MFC after: 2 weeks


130243 08-Jun-2004 stefanf

- Don't use argv[i] when i is uninitialised.
- Cast isdigit's argument to unsigned char.
- Remove the now unused variable i.

Approved by: das (mentor)


121554 26-Oct-2003 peter

Make this compile cleanly. Switch to using rpcgen to generate
code that can be compiled on an ansi-C compiler, so that it puts the
xdrproc_t casts in. This also implies a slight function name change.


99968 14-Jul-2002 charnier

The .Nm utility


81298 08-Aug-2001 sheldonh

can not -> cannot


80203 23-Jul-2001 kris

s/adress/address/

Inspired by: OpenBSD
MFC After: 1 week


80029 20-Jul-2001 obrien

Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


74816 26-Mar-2001 ru

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


71573 24-Jan-2001 ru

mdoc(7) police: Remove the debug line that prevents hyphenation
for the purposes of spelling checking that left in after my last
visit to this file.


70008 14-Dec-2000 ru

Mdoc(7)ify.


69870 11-Dec-2000 wilko

Add a workaround in the EXAMPLE section for booting diskless SPARC/SunOS
Xkernel machines. Might save people some hair pulling..

Submitted by: rene@tcja.nl


57673 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


50479 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48791 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


36917 12-Jun-1998 peter

#include <arpa/inet.h> for inet_* definitions.


36794 09-Jun-1998 imp

o be careful about buffer overflows
o Use snprintf rather than sprintf

This is only lightly tested.


35891 09-May-1998 bde

Fixed `make -j9' by putting generated headers in ${SRCS}. Removed bogus
dependencies of generated .c files on generated headers (these made
`make -JN' work provided `depend' was made first). Sorted sources lists.


34809 23-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.


32160 01-Jan-1998 bde

Restored xref to diskless(8). diskless(8) existed but was not installed.

PR: 2153


30570 19-Oct-1997 joerg

Fix a number of buffer overflow conditions.

PR: bin/4610
Submitted by: David Holland (dholland@burgundy.eecs.harvard.edu)


29102 04-Sep-1997 charnier

Use err(3). Add usage and prototypes. Remove Xref: Diskless(8) does not
exist. Use An/Aq macros for Author.


26826 23-Jun-1997 steve

Show the real revision date and not the date that this
manpage is being viewed.


24428 31-Mar-1997 imp

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


22997 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


22954 20-Feb-1997 mpp

#include <string.h> to help silence -Wall.


21880 20-Jan-1997 wosch

Sort cross references.


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.


20827 23-Dec-1996 mpp

Convert to mdoc format.


19953 25-Nov-1996 msmith

Correct the syntax of the example to reflect reality, and note that the
'host:' element is mandatory.
A better fix would involve reworking bootparamd not to require a ':'
in the response string.


15126 07-Apr-1996 mpp

Change references from rpc.bootparamd to bootparamd.


14890 28-Mar-1996 joerg

Add bootparams.5.

Obtained from: NetBSD


13123 30-Dec-1995 peter

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


9718 25-Jul-1995 wpaul

main.c:
- use daemon() to daemonify ourselves
- the 'Usage' printf() was missing an argument
- remove declaration of rindex and #include <string.h> instead

bootparam.c:
- get rid of local declarations of YP functions and include headers
from /usr/include/rpcsvc instead.


9394 04-Jul-1995 bde

Add a dependency on the .x source file and avoid copying it.

bootparam_prot.x was changed for nfsv3 but bootparamd and callbootd
kept using the old version which fortunately failed at build time.
Copying hasn't been necessary since path handling was fixed in
rpcgen/rpc_main.c some time ago.


8857 30-May-1995 rgrimes

Remove trailing whitespace.


6843 02-Mar-1995 wpaul

Took out .include "../../Makefile.inc" which shouldn't be needed now that I
put a proper Makefile.inc in the top level of the bootparam heirarchy.
(Someday I'll learn. *sigh*)


6805 01-Mar-1995 jkh

My patch this morning was not complete. I never tested make install - stupidly
thinking that it would work :( The install program never get a destination
directory. Here is another patch that should also be added. I think this
should be the last one for these makefiles :)

[Note: I realize that there are more things wrong than this, but this should
at least get the tree compiling again! -jkh]

Submitted by: John Hay <jhay@mikom.csir.co.za>


6798 01-Mar-1995 phk

The current bootparamd makefiles break if you do a make obj first. It does
work if you don't have the obj link. Here is a patch for it. It will still
work if you don't have an obj link:)

(I stuck a ${DESTDIR} in front of the absolute path to /usr/include... /phk)
Reviewed by: phk
Submitted by: John Hay <jhay@mikom.csir.co.za>


6752 26-Feb-1995 wpaul

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