From owner-freebsd-security Tue Jun 12 2: 9:40 2001 Delivered-To: freebsd-security@freebsd.org Received: from ringworld.nanolink.com (diskworld.nanolink.com [195.24.48.189]) by hub.freebsd.org (Postfix) with SMTP id D220D37B401 for ; Tue, 12 Jun 2001 02:09:07 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 10703 invoked by uid 1000); 12 Jun 2001 09:07:40 -0000 Date: Tue, 12 Jun 2001 12:07:40 +0300 From: Peter Pentchev To: Cyrille Lefevre Cc: jseger@FreeBSD.org, security@FreeBSD.org Subject: Re: SGID make Message-ID: <20010612120740.A819@ringworld.oblivion.bg> Mail-Followup-To: Cyrille Lefevre , jseger@FreeBSD.org, security@FreeBSD.org References: <009501c0ef65$23482580$0600a8c0@ibmka.internethelp.ru> <20010607114714.R1832@superconductor.rush.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from clefevre-lists@noos.fr on Tue, Jun 12, 2001 at 04:09:44AM +0200 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jun 12, 2001 at 04:09:44AM +0200, Cyrille Lefevre wrote: > Alfred Perlstein writes: > > > * Nickolay A. Kritsky [010607 11:19] wrote: > > > Can anybody tell me why /usr/local/bin/make in FreeBSD 4.2 is SGID > > > kmem? I thought that make is intended only for compiling huge C > > > programs, isnt it? > > > > > > #ls -l /usr/local/bin/make > > > -rwxr-sr-x 1 root kmem 445486 May 14 15:58 /usr/local/bin/make > > > > As people have stated this isn't our make, it's most likely GNU make > > installed without using the port. > > > > The reason for the sgid'ness is most likely so that the binary can > > query the system load average to optimize parrallel compliation > > without overwhelming the system. > > > > Although, this is sort of silly as the info should be available via > > sysctl in FreeBSD. > > Justin, are you willing to update gmake for using sysctl instead of > reading kmem ? if no, I'll do it when I'll have some time. The devel/gmake port already clears the setgid bit of the gmake executable in its post-install target - gmake uses the getloadavg(3) function, which does not require any privileges, but the autoconf getloadavg-setgid'ness detection logic is not quite up-to-date. G'luck, Peter -- I am not the subject of this sentence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message