From owner-freebsd-security@FreeBSD.ORG Mon Apr 11 15:37:08 2005 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA41E16A4CE for ; Mon, 11 Apr 2005 15:37:08 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id E810343D39 for ; Mon, 11 Apr 2005 15:37:07 +0000 (GMT) (envelope-from jilles@stack.nl) Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010::132]) by mailhost.stack.nl (Postfix) with ESMTP id F22EA1F0C2; Mon, 11 Apr 2005 17:37:06 +0200 (CEST) Received: by turtle.stack.nl (Postfix, from userid 1677) id DD0E91DAC1; Mon, 11 Apr 2005 17:37:06 +0200 (CEST) Date: Mon, 11 Apr 2005 17:37:06 +0200 From: Jilles Tjoelker To: Jan Grant Message-ID: <20050411153706.GA62233@stack.nl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 5.3-RELEASE-p5 i386 User-Agent: Mutt/1.5.6i cc: freebsd-security@freebsd.org Subject: Re: /etc/rc.bsdextended: am I misunderstanding this..? X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2005 15:37:08 -0000 On Mon, Apr 11, 2005 at 02:45:31PM +0100, Jan Grant wrote: > Can someone clear something up for me? > [[[ > # For apache to read user files, the ruleadd must give > # it permissions by default. > #### > ${CMD} add subject uid 80 object not uid 80 mode rxws; > ${CMD} add subject gid 80 object not gid 80 mode rxws; > ]]] > Doesn't the above mean that an apache user (eg, user-supplied CGI > process, PHP script, etc) has the ability to read (and write!) anything > in the filesystem? MAC restrictions apply in addition to normal restrictions, i.e. an access is allowed only if both the normal filesystem permissions and ugidfw permit it. -- Jilles Tjoelker