From owner-cvs-all Sat Jul 14 22:29:42 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6BA2037B401; Sat, 14 Jul 2001 22:29:38 -0700 (PDT) (envelope-from gad@FreeBSD.org) Received: (from gad@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6F5TcH49427; Sat, 14 Jul 2001 22:29:38 -0700 (PDT) (envelope-from gad) Message-Id: <200107150529.f6F5TcH49427@freefall.freebsd.org> From: Garance A Drosehn Date: Sat, 14 Jul 2001 22:29:38 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/lpr/common_source ctlinfo.c ctlinfo.h Makefile src/usr.sbin/lpr/lpd recvjob.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG gad 2001/07/14 22:29:38 PDT Modified files: usr.sbin/lpr/common_source Makefile usr.sbin/lpr/lpd recvjob.c Added files: usr.sbin/lpr/common_source ctlinfo.c ctlinfo.h Log: Change lpd to perform sanity and safety checks on control files as it receives them from other hosts. This is meant to protect from both nefarious users (which maybe broke into some remote host that we accept print jobs from), and broken implementations of lpr on other platforms. This is done by changing recvjob.c to call the new ctl_renametf() routine in the new common_source/ctlinfo.[ch] files. This will not affect jobs coming via lpr on the local machine. Reviewed by: freebsd-print@bostonradio.org & freebsd-audit MFC after: 16 days Revision Changes Path 1.6 +3 -3 src/usr.sbin/lpr/common_source/Makefile 1.22 +8 -5 src/usr.sbin/lpr/lpd/recvjob.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message