From owner-cvs-usrsbin Sun Apr 21 12:48:18 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA02643 for cvs-usrsbin-outgoing; Sun, 21 Apr 1996 12:48:18 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA02623 Sun, 21 Apr 1996 12:48:08 -0700 (PDT) Date: Sun, 21 Apr 1996 12:48:08 -0700 (PDT) From: Paul Traina Message-Id: <199604211948.MAA02623@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/sendmail/smrsh Makefile smrsh.8 smrsh.c src/usr.sbin/sendmail Makefile Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/04/21 12:48:08 Modified: usr.sbin/sendmail Makefile usr.sbin/sendmail/smrsh Makefile smrsh.8 smrsh.c Log: Enable proper installation of sendmail restricted shell smrsh(8). This program is a wrapper for the prog mailer in sendmail. It does shell meta character masking and restricts the list of executables to those found in /usr/libexec/sm.bin. The default sendmail.cf file does not use this tool, however you can enable it by either changing /bin/sh to /usr/libexec/smrsh or adding the line FEATURE(smrsh) into your sendmail .mc file and rebuilding your .cf file. For more info, RTFMP. Revision Changes Path 1.4 +1 -1 src/usr.sbin/sendmail/Makefile 1.2 +2 -2 src/usr.sbin/sendmail/smrsh/Makefile 1.2 +7 -8 src/usr.sbin/sendmail/smrsh/smrsh.8 1.2 +4 -4 src/usr.sbin/sendmail/smrsh/smrsh.c From owner-cvs-usrsbin Sun Apr 21 12:50:53 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA02810 for cvs-usrsbin-outgoing; Sun, 21 Apr 1996 12:50:53 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA02789 Sun, 21 Apr 1996 12:50:47 -0700 (PDT) Date: Sun, 21 Apr 1996 12:50:47 -0700 (PDT) From: Paul Traina Message-Id: <199604211950.MAA02789@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/sendmail/cf/feature smrsh.m4 Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/04/21 12:50:47 Modified: usr.sbin/sendmail/cf/feature smrsh.m4 Log: Find official home of smrsh Revision Changes Path 1.2 +1 -1 src/usr.sbin/sendmail/cf/feature/smrsh.m4 From owner-cvs-usrsbin Sun Apr 21 23:34:48 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA15020 for cvs-usrsbin-outgoing; Sun, 21 Apr 1996 23:34:48 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA15000 Sun, 21 Apr 1996 23:34:40 -0700 (PDT) Date: Sun, 21 Apr 1996 23:34:40 -0700 (PDT) From: Paul Traina Message-Id: <199604220634.XAA15000@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/sendmail/cf/feature smrsh.m4 src/usr.sbin/sendmail/smrsh Makefile smrsh.8 smrsh.c src/usr.sbin/sendmail Makefile Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/04/21 23:34:40 Branch: usr.sbin/sendmail RELENG_2_1_0 usr.sbin/sendmail/cf/feature RELENG_2_1_0 usr.sbin/sendmail/smrsh RELENG_2_1_0 Modified: usr.sbin/sendmail Makefile usr.sbin/sendmail/cf/feature smrsh.m4 usr.sbin/sendmail/smrsh Makefile smrsh.8 smrsh.c Log: Bring in changes from head. Build and install smrsh. Revision Changes Path 1.1.1.1.6.3 +1 -1 src/usr.sbin/sendmail/Makefile 1.1.1.1.2.1 +1 -1 src/usr.sbin/sendmail/cf/feature/smrsh.m4 1.1.1.1.2.1 +2 -2 src/usr.sbin/sendmail/smrsh/Makefile 1.1.1.1.2.1 +7 -8 src/usr.sbin/sendmail/smrsh/smrsh.8 1.1.1.1.2.1 +4 -4 src/usr.sbin/sendmail/smrsh/smrsh.c From owner-cvs-usrsbin Mon Apr 22 13:19:32 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA04366 for cvs-usrsbin-outgoing; Mon, 22 Apr 1996 13:19:32 -0700 (PDT) Received: from luke.pmr.com (luke.pmr.com [206.224.65.132]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id NAA04355 Mon, 22 Apr 1996 13:19:26 -0700 (PDT) Received: (from bob@localhost) by luke.pmr.com (8.7.5/8.6.9) id PAA07676; Mon, 22 Apr 1996 15:19:12 -0500 (CDT) From: Bob Willcox Message-Id: <199604222019.PAA07676@luke.pmr.com> Subject: Re: cvs commit: src/usr.sbin/sendmail/cf/feature smrsh.m4 src/usr.sbin/sendmail/smrsh Makefile smrsh.8 smrsh.c src/usr.sbin/sendmai To: pst@freefall.freebsd.org (Paul Traina) Date: Mon, 22 Apr 1996 15:19:12 -0500 (CDT) Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrsbin@freefall.freebsd.org In-Reply-To: <199604220634.XAA15000@freefall.freebsd.org> from Paul Traina at "Apr 21, 96 11:34:40 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Paul Traina wrote: > pst 96/04/21 23:34:40 > > Branch: usr.sbin/sendmail RELENG_2_1_0 > usr.sbin/sendmail/cf/feature RELENG_2_1_0 > usr.sbin/sendmail/smrsh RELENG_2_1_0 > Modified: usr.sbin/sendmail Makefile > usr.sbin/sendmail/cf/feature smrsh.m4 > usr.sbin/sendmail/smrsh Makefile smrsh.8 smrsh.c > Log: > Bring in changes from head. Build and install smrsh. This change seems to have broken the 2.1-stable build of sendmail. I get: ===> usr.sbin/sendmail/shmrsh cd: can't cd to /usr/src/usr.sbin/sendmail/shmrsh *** Error code 2 Stop. -- Bob Willcox bob@luke.pmr.com Austin, TX From owner-cvs-usrsbin Mon Apr 22 13:30:25 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05426 for cvs-usrsbin-outgoing; Mon, 22 Apr 1996 13:30:25 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05400 Mon, 22 Apr 1996 13:30:11 -0700 (PDT) Date: Mon, 22 Apr 1996 13:30:11 -0700 (PDT) From: Paul Traina Message-Id: <199604222030.NAA05400@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/sendmail Makefile Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/04/22 13:30:11 Modified: usr.sbin/sendmail Makefile Log: typo shmrsh -> smrsh Revision Changes Path 1.5 +1 -1 src/usr.sbin/sendmail/Makefile From owner-cvs-usrsbin Mon Apr 22 13:31:43 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05586 for cvs-usrsbin-outgoing; Mon, 22 Apr 1996 13:31:43 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05528 Mon, 22 Apr 1996 13:31:20 -0700 (PDT) Date: Mon, 22 Apr 1996 13:31:20 -0700 (PDT) From: Paul Traina Message-Id: <199604222031.NAA05528@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/sendmail Makefile Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/04/22 13:31:19 Branch: usr.sbin/sendmail RELENG_2_1_0 Modified: usr.sbin/sendmail Makefile Log: Typo shmrsh -> smrsh Revision Changes Path 1.1.1.1.6.4 +1 -1 src/usr.sbin/sendmail/Makefile From owner-cvs-usrsbin Tue Apr 23 09:46:57 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA16905 for cvs-usrsbin-outgoing; Tue, 23 Apr 1996 09:46:57 -0700 (PDT) Received: (from nate@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA16890 Tue, 23 Apr 1996 09:46:50 -0700 (PDT) Date: Tue, 23 Apr 1996 09:46:50 -0700 (PDT) From: Nate Williams Message-Id: <199604231646.JAA16890@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/pccard/pccardd cardd.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk nate 96/04/23 09:46:50 Modified: usr.sbin/pccard/pccardd cardd.c Log: - Make pccardd release it's allocated io space and sets the mem.cardaddr even if DEBUG is not set. - #ifdef protect DEBUG printf's Submitted by: sos Revision Changes Path 1.9 +23 -5 src/usr.sbin/pccard/pccardd/cardd.c From owner-cvs-usrsbin Wed Apr 24 13:18:40 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA17277 for cvs-usrsbin-outgoing; Wed, 24 Apr 1996 13:18:40 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA17245 Wed, 24 Apr 1996 13:18:29 -0700 (PDT) Date: Wed, 24 Apr 1996 13:18:29 -0700 (PDT) From: Paul Traina Message-Id: <199604242018.NAA17245@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/sliplogin sliplogin.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/04/24 13:18:28 Modified: usr.sbin/sliplogin sliplogin.c Log: Close a security hole in sliplogin. If you use sliplogin as a user shell (in /etc/passwd) upgrade to this version. Reviewed by: bde, peter Submitted by: AUS CERT Obtained from: Linux sliplogin-2.02 Revision Changes Path 1.6 +9 -0 src/usr.sbin/sliplogin/sliplogin.c From owner-cvs-usrsbin Wed Apr 24 13:20:24 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA17645 for cvs-usrsbin-outgoing; Wed, 24 Apr 1996 13:20:24 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA17502 Wed, 24 Apr 1996 13:20:05 -0700 (PDT) Date: Wed, 24 Apr 1996 13:20:05 -0700 (PDT) From: Paul Traina Message-Id: <199604242020.NAA17502@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/sliplogin sliplogin.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/04/24 13:20:04 Branch: usr.sbin/sliplogin RELENG_2_1_0 Modified: usr.sbin/sliplogin sliplogin.c Log: Bring in security fix from -current. Revision Changes Path 1.3.4.2 +9 -0 src/usr.sbin/sliplogin/sliplogin.c From owner-cvs-usrsbin Sat Apr 27 21:16:12 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA03413 for cvs-usrsbin-outgoing; Sat, 27 Apr 1996 21:16:12 -0700 (PDT) Received: (from wpaul@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA03396 Sat, 27 Apr 1996 21:16:07 -0700 (PDT) Date: Sat, 27 Apr 1996 21:16:07 -0700 (PDT) From: Bill Paul Message-Id: <199604280416.VAA03396@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/yp_mkdb - Imported sources Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/04/27 21:16:06 src/usr.sbin/yp_mkdb - Imported sources Update of /home/ncvs/src/usr.sbin/yp_mkdb In directory freefall.freebsd.org:/a/wpaul/import/yp_mkdb Revision/Branch: 1.1.1 Log Message: Import the new yp_mkdb. This one does what the old one does, but is hopefully less grotty. Differences include: - An extra flag, -c, for sending a YPPROC_CLEAR to ypserv(8) (which will become useful once I merge in the DB handle caching mods I've been working on). - Checks for and signals duplicate keys. - Handles line continuations. As of now, there is no more GNU YP code in the tree. Status: Vendor Tag: WPAUL Release Tags: yp_mkdb_1_0 N src/usr.sbin/yp_mkdb/Makefile N src/usr.sbin/yp_mkdb/yp_mkdb.8 N src/usr.sbin/yp_mkdb/yp_mkdb.c No conflicts created by this import From owner-cvs-usrsbin Sat Apr 27 21:39:10 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA04235 for cvs-usrsbin-outgoing; Sat, 27 Apr 1996 21:39:10 -0700 (PDT) Received: (from wpaul@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA04204 Sat, 27 Apr 1996 21:38:57 -0700 (PDT) Date: Sat, 27 Apr 1996 21:38:57 -0700 (PDT) From: Bill Paul Message-Id: <199604280438.VAA04204@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/ypserv mkaliases Makefile Makefile.yp yp_access.c yp_dblookup.c yp_extern.h yp_main.c yp_server.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/04/27 21:38:56 Modified: usr.sbin/ypserv Makefile Makefile.yp yp_access.c yp_dblookup.c yp_extern.h yp_main.c yp_server.c Added: usr.sbin/ypserv mkaliases Log: Performance enhancements (I hope) and new stuff: yp_dblookup.c: - Implement database handle caching. What this means is that instead of opening and closing map databases for each request, we open a database and save the handle (and, if requested, the key index) in an array. This saves a bit of overhead on things like repeated YPPROC_NEXT calls, such as you'd get from getpwent(). Normally, each YPPROC_NEXT would require open()ing the database, seeking to the location supplied by the caller (which is time consuming with hash databases as the R_CURSOR flag doesn't work), reading the data, close()ing the database and then shipping the data off to the caller. The system call overhead is prohibitive, especially with very large maps. By caching the handle to an open database, we elimitate at least the open()/close() system calls, as well as the associated DB setup and tear-down operations, for a large percentage of the time. This improves performance substantially at the cost of consuming a little more memory than before. Note that all the caching support is surrounded by #ifdef DB_CACHE so that this same source module can still be used by other programs that don't need it. - Make yp_open_db() call yp_validdomain(). Doing it here saves cycles when caching is enabled since a hit on the map cache list by definition means that the domain being referenced is valid. - Also make yp_open_db() check for exhaustion of file descriptors, just in case. yp_server.c: - Reorganize things a little to take advantage of the database handle caching. Add a call to yp_flush_all() in ypproc_clear_2_svc(). - Remove calls to yp_validdomain() from some of the service procedures. yp_validdomain() is called inside yp_open_db() now, so procedures that call into the database package don't need to use yp_validdomain() themselves. - Fix a bogosity in ypproc_maplist_2_svc(): don't summarily initiallize the result.maps pointer to NULL. This causes yp_maplist_free() to fail and leaks memory. - Make ypproc_master_2_svc() copy the string it gets from the database package into a private static buffer before trying to NUL terminate it. This is necessary with the DB handle caching: stuffing a NUL into the data returned by DB package will goof it up internally. yp_main.c: - Stuff for DB handle caching: call yp_init_dbs() to clear the handle array and add call to yp_flush_all() to the SIGHUP signal handler. Makefile.yp: - Reorganize to deal with database caching. yp_mkdb(8) can now be used to send a YPPROC_CLEAR signal to ypserv(8). Call it after each map is created to refresh ypserv's cache. - Add support for mail.alias map. Contributed by Mike Murphy (mrm@sceard.com). - Make default location for the netgroups source file be /var/yp/netgroup instead of /etc/netgroup. mkaliases: - New file: script to generate mail.alias map. Contributed by Mike Murphy (mrm@sceard.com). Makefile: - Install Makefile.yp as /var/yp/Makefile.dist and link it to /var/yp/Makefile only if /var/yp/Makefile doesn't already exist. Suggested by Peter Wemm. - Install new mkaliases script in /usr/libexec along with mknetid. - Use somewhat saner approach to generating rpcgen-dependent files as suggested by Garrett Wollman. Revision Changes Path 1.4 +18 -10 src/usr.sbin/ypserv/Makefile 1.4 +130 -54 src/usr.sbin/ypserv/Makefile.yp 1.7 +13 -11 src/usr.sbin/ypserv/yp_access.c 1.5 +292 -31 src/usr.sbin/ypserv/yp_dblookup.c 1.4 +6 -3 src/usr.sbin/ypserv/yp_extern.h 1.5 +8 -3 src/usr.sbin/ypserv/yp_main.c 1.9 +83 -102 src/usr.sbin/ypserv/yp_server.c From owner-cvs-usrsbin Sat Apr 27 22:04:20 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA05441 for cvs-usrsbin-outgoing; Sat, 27 Apr 1996 22:04:20 -0700 (PDT) Received: from precipice.shockwave.com (precipice.shockwave.com [171.69.108.33]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id WAA05435 Sat, 27 Apr 1996 22:04:18 -0700 (PDT) Received: from shockwave.com (localhost.shockwave.com [127.0.0.1]) by precipice.shockwave.com (8.7.5/8.7.3) with ESMTP id WAA27846; Sat, 27 Apr 1996 22:03:34 -0700 (PDT) Message-Id: <199604280503.WAA27846@precipice.shockwave.com> X-Mailer: exmh version 1.6.6 3/24/96 To: Bill Paul cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrsbin@freefall.freebsd.org Subject: Re: cvs commit: src/usr.sbin/yp_mkdb - Imported sources In-reply-to: Your message of "Sat, 27 Apr 1996 21:16:07 PDT." <199604280416.VAA03396@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 27 Apr 1996 22:03:31 -0700 From: Paul Traina Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Congratulations ! From owner-cvs-usrsbin Sat Apr 27 22:49:50 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA06955 for cvs-usrsbin-outgoing; Sat, 27 Apr 1996 22:49:50 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA06928 Sat, 27 Apr 1996 22:49:34 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id XAA25419; Sat, 27 Apr 1996 23:49:33 -0600 Date: Sat, 27 Apr 1996 23:49:33 -0600 From: Nate Williams Message-Id: <199604280549.XAA25419@rocky.sri.MT.net> To: Bill Paul Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrsbin@freefall.freebsd.org Subject: Re: cvs commit: src/usr.sbin/yp_mkdb - Imported sources In-Reply-To: <199604280416.VAA03396@freefall.freebsd.org> References: <199604280416.VAA03396@freefall.freebsd.org> Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > As of now, there is no more GNU YP code in the tree. Yay! Um, Bill. Have you ever thought of building a compiler/assembler/loader set? *grin* Nate