From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 15 09:10:46 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82B6216A4E0 for ; Sat, 15 Jul 2006 09:10:46 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42E8943D79 for ; Sat, 15 Jul 2006 09:10:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6F9AMC6096497 for ; Sat, 15 Jul 2006 09:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6F9AM62096496; Sat, 15 Jul 2006 09:10:22 GMT (envelope-from gnats) Resent-Date: Sat, 15 Jul 2006 09:10:22 GMT Resent-Message-Id: <200607150910.k6F9AM62096496@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Dr. Markus Waldeck" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F40ED16A4DA for ; Sat, 15 Jul 2006 09:02:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9480243D49 for ; Sat, 15 Jul 2006 09:02:52 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6F92qqO032563 for ; Sat, 15 Jul 2006 09:02:52 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k6F92q2g032562; Sat, 15 Jul 2006 09:02:52 GMT (envelope-from nobody) Message-Id: <200607150902.k6F92q2g032562@www.freebsd.org> Date: Sat, 15 Jul 2006 09:02:52 GMT From: "Dr. Markus Waldeck" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/100332: SUBoptimal sudo configuration X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jul 2006 09:10:46 -0000 >Number: 100332 >Category: ports >Synopsis: SUBoptimal sudo configuration >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 15 09:10:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dr. Markus Waldeck >Release: 6.1 >Organization: >Environment: FreeBSD fb 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: According to the CHANGES file (#432) in the sudo source code "env_reset" is normally default! sudo -V shows that there is no "Reset the environment to a default set of variables", but only "Ignore '.' in $PATH". This is NOT sufficient and will fail in following test case (see "How to repeat"). >How-To-Repeat: % echo 'echo BULLSHIT' > date % chmod +x date % date % export PATH=.:$PATH % date % sudo date % sudo sh # date >Fix: Use the default "env_reset" instead of "ignore_dot"! >Release-Note: >Audit-Trail: >Unformatted: