From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 10 18:00:10 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1286510656A5 for ; Fri, 10 Sep 2010 18:00:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B9E328FC14 for ; Fri, 10 Sep 2010 18:00:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8AI090X046181 for ; Fri, 10 Sep 2010 18:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8AI09vU046176; Fri, 10 Sep 2010 18:00:09 GMT (envelope-from gnats) Resent-Date: Fri, 10 Sep 2010 18:00:09 GMT Resent-Message-Id: <201009101800.o8AI09vU046176@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, Maxim Ignatenko Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84CAD1065672 for ; Fri, 10 Sep 2010 17:52:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 732908FC08 for ; Fri, 10 Sep 2010 17:52:22 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o8AHqMYp096654 for ; Fri, 10 Sep 2010 17:52:22 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o8AHqMi2096653; Fri, 10 Sep 2010 17:52:22 GMT (envelope-from nobody) Message-Id: <201009101752.o8AHqMi2096653@www.freebsd.org> Date: Fri, 10 Sep 2010 17:52:22 GMT From: Maxim Ignatenko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/150478: security/sudo 1.7.4.4 - option SHELL_SETS_HOME is always on 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: Fri, 10 Sep 2010 18:00:10 -0000 >Number: 150478 >Category: ports >Synopsis: security/sudo 1.7.4.4 - option SHELL_SETS_HOME is always on >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 10 18:00:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Maxim Ignatenko >Release: 8-STABLE >Organization: Kiev National Taras Shevchenko University >Environment: >Description: After updating sudo to version 1.7.4.4 I've noticed that it behaves like if option SHELL_SETS_HOME was enabled during build. [20:47:43|imax@kitty:~]% printenv HOME /home/imax [20:47:50|imax@kitty:~]% sudo -s kitty# printenv HOME /root kitty# [20:48:10|imax@kitty:~]% grep SHELL_SETS_HOME /var/db/ports/sudo/options WITHOUT_SHELL_SETS_HOME=true [20:48:26|imax@kitty:~]% pkg_info|grep sudo sudo-1.7.4.4 Allow others to run commands as root I've tried to manually run sudo's ./configure with "--disable-shell-sets-home" and build it - result was the same, so it's probably problem of sudo itself, not FreeBSD port. >How-To-Repeat: 1) update sudo to 1.7.4.4 2) execute "sudo -s" >Fix: >Release-Note: >Audit-Trail: >Unformatted: