From nobody@FreeBSD.org  Fri Jan 11 14:17:55 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id AB54737B416
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Jan 2002 14:17:54 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g0BMHs965888;
	Fri, 11 Jan 2002 14:17:54 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201112217.g0BMHs965888@freefall.freebsd.org>
Date: Fri, 11 Jan 2002 14:17:54 -0800 (PST)
From: Lyndon Nerenberg <lyndon@atg.aciworldwide.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] quakeserver questionable file ownerships
X-Send-Pr-Version: www-1.0

>Number:         33795
>Category:       ports
>Synopsis:       [PATCH] quakeserver questionable file ownerships
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 11 14:20:02 PST 2002
>Closed-Date:    Tue Apr 02 08:08:47 PST 2002
>Last-Modified:  Tue Apr 02 08:08:47 PST 2002
>Originator:     Lyndon Nerenberg
>Release:        4.5-RC1
>Organization:
>Environment:
Tested against 4.5-RC1 and -CURRENT, both on i386.
     
>Description:
/usr/ports/games/quakeserver-1.0 is set up to run the server as 'nobody'
at boot time, presumably to avoid running as a user with write access
to anything. However, the port installs its files as the user
nobody, bypassing any possible protection from running as the
nobody user.
>How-To-Repeat:
Install the port, then cd into /usr/local/quakeserver and
'ls -ld' and 'ls -l'.
>Fix:
I have patched the port to 1) Install with default root:wheel ownerships
where possible, 2) use group membership to provide write access to
the few things that need it, and 3) create a specific runtime user
and group for the server.

Patches are available at 

  ftp://atg.aciworldwide.com/lyndon/freebsd/ports/quakeserver-runtimeuser.patch
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Tue Apr 2 08:08:29 PST 2002 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33795 
>Unformatted:
