Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Sep 2002 06:30:04 -0700 (PDT)
From:      Frerich Raabe <frerich.raabe@gmx.de>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/42980: devel/distcc: distccd can't be started by users with gid 0
Message-ID:  <200209231330.g8NDU41N019526@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/42980; it has been noted by GNATS.

From: Frerich Raabe <frerich.raabe@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org, rael@vectorstar.net
Cc:  
Subject: Re: ports/42980: devel/distcc: distccd can't be started by users with gid 0
Date: Mon, 23 Sep 2002 15:14:05 +0200

 --Boundary-00=_dOxj9MkKMbVJdgy
 Content-Type: Text/Plain;
   charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 Content-Description: clearsigned data
 Content-Disposition: inline
 
 =2D----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 This patch updates the port devel/distcc from version 0.10.1 to 0.10.1_1,=20
 fixing the bug as described in ports/42980. Patch was approved by the distc=
 c=20
 author and is already in distcc's CVS.
 
 =2D - Frerich
 =2D----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.7 (FreeBSD)
 
 iD8DBQE9jxOhKrbzRexv2VkRAj/CAKCUBoM+9qUgWPLiBGM3Z0Zo1xtKbwCgilR0
 Gf1F8PH4YKjPvRRxne+WZZ0=3D
 =3DSAyo
 =2D----END PGP SIGNATURE-----
 
 --Boundary-00=_dOxj9MkKMbVJdgy
 Content-Type: text/x-diff;
   charset="us-ascii";
   name="distcc.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment; filename="distcc.diff"
 
 diff -ruN distcc.orig/Makefile distcc/Makefile
 --- distcc.orig/Makefile	Mon Sep 23 11:47:54 2002
 +++ distcc/Makefile	Mon Sep 23 11:52:21 2002
 @@ -7,6 +7,7 @@
  
  PORTNAME=	distcc
  PORTVERSION=	0.10.1
 +PORTREVISION=	1
  CATEGORIES=	devel
  MASTER_SITES=	http://distcc.samba.org/ftp/distcc/
  
 diff -ruN distcc.orig/files/patch-src::daemon.c distcc/files/patch-src::daemon.c
 --- distcc.orig/files/patch-src::daemon.c	Thu Jan  1 01:00:00 1970
 +++ distcc/files/patch-src::daemon.c	Mon Sep 23 11:49:52 2002
 @@ -0,0 +1,26 @@
 +Index: src/daemon.c
 +===================================================================
 +RCS file: /cvsroot/distcc/src/daemon.c,v
 +retrieving revision 1.74
 +retrieving revision 1.75
 +diff -u -3 -p -r1.74 -r1.75
 +--- src/daemon.c	18 Sep 2002 11:36:09 -0000	1.74
 ++++ src/daemon.c	23 Sep 2002 04:56:41 -0000	1.75
 +@@ -1,7 +1,7 @@
 + /* -*- c-file-style: "java"; indent-tabs-mode: nil -*-
 +  * 
 +  * distcc -- A simple distributed compiler system
 +- * $Header: /cvsroot/distcc/src/daemon.c,v 1.74 2002/09/18 11:36:09 mbp Exp $ 
 ++ * $Header: /cvsroot/distcc/src/daemon.c,v 1.75 2002/09/23 04:56:41 mbp Exp $ 
 +  *
 +  * Copyright (C) 2002 by Martin Pool <mbp@samba.org>
 +  *
 +@@ -170,7 +170,7 @@ static int dcc_inetd_server(void)
 + 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;
 +     }
 
 --Boundary-00=_dOxj9MkKMbVJdgy--
 

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




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