Home | History | Annotate | only in /src/usr.sbin/rpc.bootparamd
History log of /src/usr.sbin/rpc.bootparamd
RevisionDateAuthorComments
 1.27 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.26 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.25 28-May-2007  tls branches: 1.25.76;
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
 1.24 06-Jan-2003  thorpej Need to -I${RPC_XDIR} now, since we don't generate the .h file
locally anymore.
 1.23 05-Jan-2003  sommerfeld Use <bsd.rpc.mk>
 1.22 11-Sep-2002  christos Add a simple test to see if the whoami functionality works.
 1.21 22-Mar-2002  thorpej Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.
 1.20 02-Feb-2002  tv Move CLEANFILES up so it is actually used. Noted by Bernd Ernesti.
 1.19 31-Jan-2002  tv Make sure DESTDIR is set before using it in a dependency.
 1.18 25-Jul-2000  cgd ${RPCGEN}, not hard-coded rpcgen
 1.17 12-Jun-2000  mycroft Make the rpcsvc dependencies work a bit better.
 1.16 06-Jun-1999  thorpej branches: 1.16.6;
Use pidfile(3).
 1.15 25-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.14 17-Oct-1997  lukem branches: 1.14.2;
WARNSify; generate ansi c code with rpcgen, cleanup manpage
 1.13 31-May-1997  cjs Back out BUILDDIR and NOINSTALL changes.
 1.12 26-May-1997  cjs These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
 1.11 30-Aug-1996  thorpej RCS id police.
 1.10 24-Jun-1995  pk Conform to rpcgen generated names and prototypes.
The server-side worker routines now have "_svc" appended to avoid
conflict with client-side prototypes.
 1.9 12-Apr-1995  jtc fix typo
 1.8 12-Apr-1995  jtc Install manpage as both bootparamd(8) and rpc.bootparamd(8).
Changed manpage so both bootparamd and rpc.bootparamd are mentioned in NAME
section.
 1.7 22-Dec-1994  cgd specify man pages the new way.
 1.6 03-Oct-1994  gwr Add a man page and a link for bootparamd(8).
 1.5 28-Jan-1994  cgd don't need -lutil
 1.4 17-Jan-1994  deraadt whoops. typo.
 1.3 14-Jan-1994  deraadt remove two links before recreating them
 1.2 10-Jan-1994  deraadt improved parser by <roland@frob.com> to handle \-continuation and YP.
 1.1 08-Jan-1994  deraadt rpc.bootparamd written by Klas Heggemann <klas@nada.kth.se>
(yes, it belongs in usr.sbin, not libexec)
 1.14.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.16.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.25.76.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.48 22-Apr-2020  joerg _rpcpmstart is defined by rpcgen, so externalize it here
 1.47 15-Aug-2019  kamil Stop defining _rpcsvcdirty in bss and data

_rpcsvcdirty is already defined in the generated code from rpcgen(1).

Detected during the build with Address Sanitizer (MKSANITIZER).
 1.46 30-Aug-2011  joerg branches: 1.46.42; 1.46.44;
ANSIFy + static + __dead
 1.45 18-Apr-2009  lukem Fix -Wshadow and -Wcast-qual issues
 1.44 30-Oct-2004  dsl branches: 1.44.34;
Add (unsigned char) cast to ctype functions
 1.43 07-Sep-2004  jrf Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
 1.42 25-Dec-2003  wiz bootparams, not bootparms.
 1.41 26-Jun-2003  itojun make it possible to obtain default router address from any interface (-i).
-r might be sufficient.
http://pc.2ch.net/test/read.cgi/unix/1050823044/377
 1.40 22-Mar-2002  thorpej Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.
 1.39 11-Apr-2001  jhawk Improve error messages; instead of "getfile failed", now:
getfile can't resolve client %s
getfile can't resolve server %s for %s
getfile lookup failed for %s
(the second condition had me chasing my tail for a while recently...)
 1.38 19-Feb-2001  cgd convert to use getprogname()
 1.37 11-Jan-2001  lukem use explicit name rather than __progname in openlog
 1.36 20-Jul-2000  thorpej If we don't get direct match on the token, only attempt to canonicalize
the token if it does not contain globbing characters, and just skip onto
the next line if it does.
 1.35 04-Jul-2000  enami If the line wasn't for the client we are looking for, skip it.
While I'm here, I indented the continuation line properly.
 1.34 28-Jun-2000  thorpej Add support for globbing when matching the host name in the
bootparams(5) file, a'la Solaris. This is extremely useful
for configuring Jumpstart servers.

From Dan Mercer <dmercer@zembu.com>.
 1.33 14-Jun-2000  tron branches: 1.33.2;
Add comment to prevent further bogus commits.
 1.32 14-Jun-2000  explorer Ok, back out previous change. It seems wrong that 'rm -rf /usr/include/*' doesn't DTRT...
 1.31 14-Jun-2000  explorer Use %lu since BOOTPARAMVERS is defined as ((u_long)1)
 1.30 08-Jun-2000  dan back out previous. I tried hard to make sure that i had up to date
rpcgen and headers so that I didn't do something stupid, but somehow
I still did something stupid.
 1.29 08-Jun-2000  dan tidy up a warning - format specifier for a u_long parameter
 1.28 06-Jun-2000  cjs Revert last change; one needs a new rpcgen and has to do a bit of other
magic described in current-users by fvdl.
 1.27 06-Jun-2000  cjs BOOTPARAMVERS is apparently a long, so use %lu rather than %u to print it.
 1.26 04-Jun-2000  veego Back out the last commit. It seems that your includes are out of date.
 1.25 04-Jun-2000  perry BOOTPARAMVERS is an unsigned long now, it seems
 1.24 03-Jun-2000  fvdl Fix printf argument mismatch for version number.
 1.23 27-Apr-2000  itojun branches: 1.23.2;
net/if.h is necessary for IFF_LOOPBACK.
accept lo[0-9] or lo$ if we check if_name.
 1.22 14-Apr-2000  itojun declare new function for getting my IPv4 address.
get_myaddress() is not usable any more for security reasons.
the change addresses PR8119.
 1.21 23-Aug-1999  christos add better debugging info
 1.20 06-Jun-1999  thorpej Use pidfile(3).
 1.19 26-Apr-1999  abs If -s and/or -d set, report invalid host entries in bootparams when parsed.
Currently an invalid entry will cause any subsequent entries to fail
if hostlookups take take several seconds (This can happen with DNS).
Now we can more easily detect this situation.
 1.18 24-Mar-1999  nathanw Avoid using a long to store an IP address and simplify slightly.
Makes this work on the Alpha.
(What, nobody's netbooted a sun from an alpha before?)
 1.17 12-Feb-1998  lukem revert; we can't break the existing ABI and API
 1.16 10-Feb-1998  lukem use %d instead of %ld to print rpc version
 1.15 18-Oct-1997  lukem use memcmp/memset/memmove instead of bcmp/bzero/bcopy
 1.14 23-Sep-1997  mrg be safe with buffers, from dholland@eecs.harvard.edu in pr#4138
 1.13 08-Sep-1997  mikel kill excess newlines in debug output; from Enami Tsugutomo in PR bin/4076
 1.12 28-Jul-1997  thorpej Fix a bunch of compiler warnings.
 1.11 08-Dec-1996  mycroft Eliminate local variable `progname'.
 1.10 08-Dec-1996  mycroft Use daemon() corrently.
Use err*(3) and warn*(3).
 1.9 14-Oct-1996  cgd If gethostbyaddr() fails, use inet_ntoa() to turn the IP address into
a dotted-quad string. Make this compile with -Wunused and -Wnested-externs.
Kill unnecessary and trivial-to-remove global variables.
 1.8 04-Oct-1996  cgd compare client names case-insensitively, since hostnames are case-insensitive.
 1.7 30-Aug-1996  thorpej RCS id police.
 1.6 30-Mar-1996  mark Use an integer instead of a char to store the getopt() return value in
order to match the function prototype and to work with compilers that
default to unsigned chars.
Compare the getopt() return value with -1 instead of EOF.
 1.5 24-Jun-1995  pk Conform to rpcgen generated names and prototypes.
The server-side worker routines now have "_svc" appended to avoid
conflict with client-side prototypes.
 1.4 29-Nov-1994  glass bin/595 fixed. reported and fix provided by Chuck Silvers <chs@cs.cmu.edu>
 1.3 23-Jan-1994  deraadt fix from roland
 1.2 10-Jan-1994  deraadt improved parser by <roland@frob.com> to handle \-continuation and YP.
 1.1 08-Jan-1994  deraadt rpc.bootparamd written by Klas Heggemann <klas@nada.kth.se>
(yes, it belongs in usr.sbin, not libexec)
 1.23.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.33.2.3 07-Aug-2000  enami Pull up rev. 1.36 (approved by thorpej):
date: 2000/07/20 06:21:51; author: thorpej; state: Exp; lines: +19 -16
If we don't get direct match on the token, only attempt to canonicalize
the token if it does not contain globbing characters, and just skip onto
the next line if it does.
 1.33.2.2 05-Jul-2000  enami Pull up rev. 1.35 (approved by releng-1-5):
date: 2000/07/04 08:18:44; author: enami; state: Exp; lines: +5 -4
If the line wasn't for the client we are looking for, skip it.
While I'm here, I indented the continuation line properly.
 1.33.2.1 03-Jul-2000  thorpej Pull up rev. 1.34:
Add support for globbing when matching the host name in the
bootparams(5) file, a'la Solaris. This is extremely useful
for configuring Jumpstart servers.

>From Dan Mercer <dmercer@zembu.com>.
 1.44.34.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.46.44.1 16-Aug-2019  martin Pull up following revision(s) (requested by kamil in ticket #70):

usr.sbin/rpc.statd/statd.c: revision 1.33
usr.sbin/rpc.lockd/lockd.c: revision 1.13
usr.sbin/rpc.bootparamd/bootparamd.c: revision 1.47

Stop defining _rpcsvcdirty in bss and data

_rpcsvcdirty is already defined in the generated code from rpcgen(1).

Detected during the build with Address Sanitizer (MKSANITIZER).
 1.46.42.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.11 28-Feb-2002  lukem provide "gateway" example "file"
 1.10 03-Apr-2001  wiz Add section to a .Xr.
 1.9 28-Jun-2000  thorpej Add support for globbing when matching the host name in the
bootparams(5) file, a'la Solaris. This is extremely useful
for configuring Jumpstart servers.

From Dan Mercer <dmercer@zembu.com>.
 1.8 06-Apr-1999  cgd branches: 1.8.8;
change:
.Sh "SEE ALSO"
to:
.Sh SEE ALSO
The doc macros check for the latter (actually just for 'SEE' as the first
argument to .Sh) to set the section header SEE ALSO flag, which modifies
some behaviour (e.g. references done with .Rs/.Re).
 1.7 17-Oct-1997  lukem WARNSify; generate ansi c code with rpcgen, cleanup manpage
 1.6 23-Apr-1997  mrg expand a bit on the sematics required.
 1.5 30-Aug-1996  thorpej RCS id police.
 1.4 18-Jun-1996  briggs Minor formatting update.
 1.3 18-Jun-1996  briggs paths are specified as server:/path and the server and path are both
returned.
 1.2 03-Oct-1994  gwr Fix SEE ALSO and FILES.
 1.1 03-Oct-1994  gwr Add a man page and a link for bootparamd(8).
 1.8.8.2 04-Apr-2001  he Pull up revision 1.10 (requested by wiz):
Add section to a .Xr.
 1.8.8.1 03-Jul-2000  thorpej Pull up rev. 1.9:
Add support for globbing when matching the host name in the
bootparams(5) file, a'la Solaris. This is extremely useful
for configuring Jumpstart servers.

>From Dan Mercer <dmercer@zembu.com>.
 1.2 30-Aug-1996  thorpej RCS id police.
 1.1 10-Jan-1994  deraadt improved parser by <roland@frob.com> to handle \-continuation and YP.
 1.17 08-Nov-2008  reed Be consistent (like the other rpc* manual pages) and have the
Document Title match the filename.
Now this is correct alphabetically for the man0 generation.
 1.16 20-Aug-2003  tsutsui Fix Typo.
 1.15 26-Jun-2003  itojun make it possible to obtain default router address from any interface (-i).
-r might be sufficient.
http://pc.2ch.net/test/read.cgi/unix/1050823044/377
 1.14 14-Feb-2003  grant The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
 1.13 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.12 02-Feb-2002  wiz Sort sections, use standard headers, drop a .Pp.
 1.11 12-Sep-1999  kleink Use full month names with .Dd, as per mdoc.samples(7).
 1.10 06-Apr-1999  cgd change:
.Sh "SEE ALSO"
to:
.Sh SEE ALSO
The doc macros check for the latter (actually just for 'SEE' as the first
argument to .Sh) to set the section header SEE ALSO flag, which modifies
some behaviour (e.g. references done with .Rs/.Re).
 1.9 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.8 17-Oct-1997  lukem WARNSify; generate ansi c code with rpcgen, cleanup manpage
 1.7 19-Aug-1997  mikel eliminate extra dashes before option arguments; from Enami Tsugutomo
in PR bin/4000.
also add xref to syslog(3) and fix some typos.
 1.6 30-Aug-1996  thorpej RCS id police.
 1.5 12-Apr-1995  jtc Install manpage as both bootparamd(8) and rpc.bootparamd(8).
Changed manpage so both bootparamd and rpc.bootparamd are mentioned in NAME
section.
 1.4 24-Oct-1994  deraadt document that YP works
 1.3 03-Oct-1994  gwr Fix SEE ALSO and FILES.
 1.2 21-Jan-1994  jtc rpc.bootparamd lives in /usr/sbin, not /usr/libexec.
 1.1 08-Jan-1994  deraadt rpc.bootparamd written by Klas Heggemann <klas@nada.kth.se>
(yes, it belongs in usr.sbin, not libexec)
 1.4 30-Aug-2011  joerg ANSIFy + static + __dead
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 05-Jan-2004  jmmv branches: 1.2.30;
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
 1.1 11-Sep-2002  christos Add a simple test to see if the whoami functionality works.
 1.2.30.1 18-May-2008  yamt sync with head.

RSS XML Feed