From owner-freebsd-ports Fri Sep 20 0: 0:22 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8C7537B404 for ; Fri, 20 Sep 2002 00:00:19 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4AA343E77 for ; Fri, 20 Sep 2002 00:00:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8K70ICo053184 for ; Fri, 20 Sep 2002 00:00:18 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8K70IXJ053182; Fri, 20 Sep 2002 00:00:18 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74C7037B401 for ; Thu, 19 Sep 2002 23:59:43 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36A2F43E3B for ; Thu, 19 Sep 2002 23:59:43 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g8K6xg7R012413 for ; Thu, 19 Sep 2002 23:59:42 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g8K6xgxF012412; Thu, 19 Sep 2002 23:59:42 -0700 (PDT) Message-Id: <200209200659.g8K6xgxF012412@www.freebsd.org> Date: Thu, 19 Sep 2002 23:59:42 -0700 (PDT) From: Juan Salaverria To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/42980: devel/distcc: distccd can't be started by users with gid 0 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42980 >Category: ports >Synopsis: devel/distcc: distccd can't be started by users with gid 0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 20 00:00:18 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Juan Salaverria >Release: 4.6.2-RELEASE >Organization: >Environment: FreeBSD arokh.trantor.org 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Thu Sep 5 23:15:21 ART 2002 rael@arokh.trantor.org:/usr/src/sys/compile/GENERIC_SND i386 >Description: According to the documentation the daemon cannot be started by a root user for security reasons. In the sources this is accomplished by refusing to run distccd from a user with uid=0 and gid=0. In Linux the gid 0 belongs to the root group, but in FreeBSD this is the gid of the wheel group. >How-To-Repeat: Run distccd from any user with default login group 0 >Fix: --- src/daemon.c.ori Thu Aug 15 10:52:41 2002 +++ src/daemon.c Sun Sep 15 15:33:59 2002 @@ -169,7 +169,7 @@ int dcc_refuse_root(void) { /* Just be careful */ - if (getuid() == 0 || geteuid() == 0 || getgid() == 0 || getegid() == 0) { + if (getuid() == 0 || geteuid() == 0) { rs_log_crit("distccd must not be run as root!"); return EXIT_DISTCC_FAILED; } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message