Commit Graph

34 Commits

Author SHA1 Message Date
thorpej d65c17674f In callit() and logit(), set a slightly informative proctitle to make
it easier to determine where large numbers of wedged portmap processes
are coming from.
2000-01-27 16:28:32 +00:00
drochner b2fa2f59f4 improve logging: tell whether a request was declined by the loopback
security check
2000-01-23 15:54:31 +00:00
abs 918a3dbacc small grammar fix 2000-01-21 11:10:51 +00:00
mason 164b1b9275 Fixed grammatical error. "Allows to call" -> "Allows calls to" 1999-09-13 19:04:35 +00:00
bouyer 08713441c4 xref hosts_access and hosts_options in section 5, not 3. 1999-08-02 16:05:40 +00:00
thorpej bcd4659148 Use pidfile(3). 1999-06-06 03:27:35 +00:00
drochner fe2da22c81 correct an error message 1999-04-12 17:29:31 +00:00
garbled d1407362ba 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.
1999-03-22 18:43:46 +00:00
christos d961b8d40f PR/7133 Mathias Drohner: Add insecure flag.
Also use err() and __progname instead of argv[0] and correct usage
string.
1999-03-12 18:06:12 +00:00
drochner d884fbb6b7 fix logging without libwrap: introduce a syslog facility/severity
variable independantly of the LIBWRAP definition
1999-01-20 14:12:18 +00:00
drochner e755eb28ce fix the use of the libwrap methods:
-fromhost() doesn't work because the file descriptor isn't available
 at this point, see PR bin/6813
-it needs some initialization for libwrap to grok the IP address and/or
 host names in its rule files (see PR bin/6831 by Andreas Wrede
 <andreas@planix.com>, the fix is different)
Needless to say that libwrap's interface sucks.
1999-01-18 19:47:36 +00:00
hannken c2ed19ee97 Fix is_loopback() to return 1 for a loopback addr as intended. 1999-01-16 20:59:05 +00:00
mjacob b81c39082c recover from errno.h changes- how tiresome 1999-01-13 01:01:26 +00:00
jwise 2badef4d79 Add four big changes:
* portmap is now tcp-wrapped (i.e. obeys hosts.{allow,deny})
	  both for lookups (as `portmap') and for forwarded calls to
	  specific services.

	* the new -l flag, analagous to inetd -l, logs all connections
	  to portmap.

	* the new -s flag causes portmap to suid to the user daemon
	  after binding it's port, so that outgoing connections do
	  not come from privileged ports.  This prevents users from
	  using portmap to get a free privileged port.

	* portmap now _only_ accepts SETs and UNSETs on the loopback
	  interface.  In the past, anyone in the world could do all
	  sorts of nasty things to your portmap tables.  Note that
	  our libc already_only_ uses the loopback interface to
	  register rpc ports.

This work is modeled after/partially taken from Wietse Venema's tcp-
wrapped version of the BSD 4.3 portmap.  It has benefitted greatly from my
discussions with Luke, Matt and many others.
1999-01-11 20:51:09 +00:00
lukem e2d55944f4 minor knf 1998-02-10 07:04:21 +00:00
lukem 2cd3ac027a use emset instead of bzero 1997-10-18 11:06:08 +00:00
lukem 1dc35d9949 getopt returns -1 not EOF, minor cleanup 1997-10-17 12:01:19 +00:00
mrg 4c8ecdc3eb oops, didn't mean part of last merge. 1997-10-17 05:40:16 +00:00
mrg 68136a9566 merge lite-2 1997-10-17 05:37:32 +00:00
pk 2d32cc7658 Only reap children that are ready to be reaped from the SIGCHILD handler
(PR#4143; Uwe Arndt).
1997-09-24 13:22:06 +00:00
lukem b9aadef1e0 cleanup for WARNS?=1. as a side effect, close [bin/4036] 1997-08-25 22:44:40 +00:00
cgd dc6fe8f1a8 second argument to xdr_long must be a "long *", which means that the
'out' arg to svc_sendreply must point to a long if outproc is
xdr_long.  It was pointing to an 'int', and that was crashing on the
alpha, due to bad alignment.
1996-05-01 18:10:26 +00:00
cgd 06a9330f3a casts to quite compiler. 1994-12-23 16:44:22 +00:00
cgd d8806814a6 specify man pages the new way. 1994-12-22 11:32:57 +00:00
deraadt bb627c6f25 work around two obscure bugs 1994-06-29 06:24:39 +00:00
cgd 5b823d2a09 don't need -lutil 1994-01-28 00:52:03 +00:00
deraadt ad97f8aac0 should bzero automatic sockaddr's before use 1993-12-05 13:58:43 +00:00
mycroft 319b21f7c1 Make encap_parms->arglen a u_int to match other RPC code. 1993-12-03 10:01:06 +00:00
cgd a4f95e1816 no more librpc 1993-10-08 01:33:33 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 3731815919 Add RCS identifiers. 1993-07-30 20:50:20 +00:00
mrg c78c6a22ab 4.4BSD-Lite2 1993-06-06 20:58:02 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00