History log of /freebsd-12.1/usr.sbin/bootparamd/bootparamd/bootparamd.c (Results 1 – 19 of 19)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0, release/10.4.0
# c78c36cd 17-Aug-2017 Enji Cooper <[email protected]>

Don't leak bpf on early return when YP isn't defined (NIS support)

MFC after: 1 week
Reported by: cppcheck


Revision tags: release/11.1.0
# 43a251d6 31-May-2017 Alan Somers <[email protected]>

Fix uninitialized variable in bootparamd.c

Restore line that was accidentally deleted in change 318790

Reported by: Coverity
CID: 1375855
MFC after: 1 week
X-MFC-With: 318790
Sponsored by: Spectra

Fix uninitialized variable in bootparamd.c

Restore line that was accidentally deleted in change 318790

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

show more ...


# 6e3c3063 24-May-2017 Alan Somers <[email protected]>

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 p

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
MFC after: 1 week
Sponsored by: Spectra Logic Corp

show more ...


Revision tags: release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0
# b3608ae1 03-Jan-2012 Ed Schouten <[email protected]>

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 revisi

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.

show more ...


Revision tags: release/7.4.0, release/8.2.0, release/8.1.0, release/7.3.0
# 24cb3af5 04-Jan-2010 Ed Schouten <[email protected]>

Unbreak bootparamd when setting WITHOUT_NIS.

Submitted by: bf1783 googlemail com


Revision tags: release/8.0.0, release/7.2.0, release/7.1.0, release/6.4.0, release/7.0.0
# 3640040a 30-Jan-2008 Rink Springer <[email protected]>

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 <tsp

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 <[email protected]>
Reviewed by: imp
Approved by: imp (mentor)
MFC after: 1 week

show more ...


Revision tags: release/6.3.0
# 784bddbc 07-Nov-2007 Kevin Lo <[email protected]>

Cleanup of userland __P use


Revision tags: release/6.2.0, release/5.5.0, release/6.1.0, release/6.0.0, release/5.4.0, release/4.11.0
# 6c58990d 13-Nov-2004 Bjoern A. Zeeb <[email protected]>

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.

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

show more ...


Revision tags: release/5.3.0, release/4.10.0, release/5.2.1, release/5.2.0, release/4.9.0
# 88b30ea6 26-Oct-2003 Peter Wemm <[email protected]>

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 chang

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.

show more ...


Revision tags: release/5.1.0, release/4.8.0, release/5.0.0, release/4.6.2, release/4.3.0
# 97d92980 28-Aug-1999 Peter Wemm <[email protected]>

$Id$ -> $FreeBSD$


# fff30125 09-Jun-1998 Warner Losh <[email protected]>

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

This is only lightly tested.


# e9172771 19-Oct-1997 Joerg Wunsch <[email protected]>

Fix a number of buffer overflow conditions.

PR: bin/4610
Submitted by: David Holland ([email protected])


# 112eace2 04-Sep-1997 Philippe Charnier <[email protected]>

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


# 476602a9 22-Feb-1997 Peter Wemm <[email protected]>

Revert $FreeBSD$ to $Id$


# 90ac6cd4 20-Feb-1997 Mike Pritchard <[email protected]>

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


# 1130b656 14-Jan-1997 Jordan K. Hubbard <[email protected]>

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

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.

show more ...


# 3ad4ec7c 25-Jul-1995 Bill Paul <[email protected]>

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 declaratio

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.

show more ...


# 709e8f9a 30-May-1995 Rodney W. Grimes <[email protected]>

Remove trailing whitespace.


# b9fefab7 26-Feb-1995 Bill Paul <[email protected]>

Obtained from: The Xkernel source distribution

I hope I'm doing this right.

This is an initial version of bootparamd for FreeBSD based on a public
domain rpc.bootparamd implementation by a gentlema

Obtained from: The Xkernel source distribution

I hope I'm doing this right.

This is an initial version of bootparamd for FreeBSD based on a public
domain rpc.bootparamd implementation by a gentleman named Klas Heggemann.
This program has apparently been around for a while. The README explicitly
lists the code as public domain, so I guess it's safe to use.

This program is needed for booting diskless SunOS and Solaris machines.
rarpd is also required, but that's in the works too.

I have made two changes to this code:

- Implemented NIS lookups. If /etc/bootparams contains a '+' then the
bootparams map is consulted.

- Allow 0.0.0.0 as a user-specified router address. The SunOS rpc.bootparamd
returns this value in many cases.

show more ...