Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2000 12:20:16 GMT
From:      Bob Bishop <rb@seagoon.gid.co.uk>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/16745: Kernel Makefile doesn't sanitise PATH [PATCH]
Message-ID:  <200002161220.MAA31001@seagoon.gid.co.uk>

next in thread | raw e-mail | index | archive | help

>Number:         16745
>Category:       kern
>Synopsis:       Kernel Makefile doesn't sanitise PATH [PATCH]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 16 04:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Bob Bishop
>Release:        FreeBSD 3.4-RELEASE i386
>Organization:
GID ltd
>Environment:

	Any

>Description:

	Makefile in /sys/compile/<system> doesn't sanitise
	PATH (cf /usr/src/Makefile).  This can result in wrong
	tools being used.

>How-To-Repeat:

	sh
	echo "echo You must be joking" >/tmp/lex
	chmod +x /tmp/lex
	PATH=/tmp:$PATH export PATH
	cd /sys/i386/conf
	config GENERIC
	cd ../../compile GENERIC
	make depend; make

>Fix:

Something along the lines of:
	
--- /sys/i386/conf/Makefile.i386.orig  Wed Feb 16 12:13:07 2000
+++ /sys/i386/conf/Makefile.i386       Wed Feb 16 12:13:44 2000
@@ -19,6 +19,8 @@
 # Which version of config(8) is required.
 %VERSREQ=      300009

+PATH=   /sbin:/bin:/usr/sbin:/usr/bin
+
 KERNFORMAT?=   elf

 STD8X16FONT?=  iso


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002161220.MAA31001>