From owner-freebsd-doc@FreeBSD.ORG Tue Jul 27 07:20:02 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5821F106567A for ; Tue, 27 Jul 2010 07:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1C5148FC47 for ; Tue, 27 Jul 2010 07:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6R7K1Oc077711 for ; Tue, 27 Jul 2010 07:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6R7K1i5077710; Tue, 27 Jul 2010 07:20:01 GMT (envelope-from gnats) Resent-Date: Tue, 27 Jul 2010 07:20:01 GMT Resent-Message-Id: <201007270720.o6R7K1i5077710@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thomas BRETHOME Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2BC21065673 for ; Tue, 27 Jul 2010 07:11:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B8B748FC18 for ; Tue, 27 Jul 2010 07:11:22 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o6R7BMXU000586 for ; Tue, 27 Jul 2010 07:11:22 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o6R7BLSe000585; Tue, 27 Jul 2010 07:11:21 GMT (envelope-from nobody) Message-Id: <201007270711.o6R7BLSe000585@www.freebsd.org> Date: Tue, 27 Jul 2010 07:11:21 GMT From: Thomas BRETHOME To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/148984: Mistake in section 16.15.4 of the handbook X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2010 07:20:02 -0000 >Number: 148984 >Category: docs >Synopsis: Mistake in section 16.15.4 of the handbook >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 27 07:20:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Thomas BRETHOME >Release: 8.1 >Organization: CS >Environment: >Description: The example file /etc/policy.contexts (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mac-implementing.html) appears to be bad or outdated, the policy is'nt applied correctly by setfsmac. >How-To-Repeat: >Fix: The example file should be replaced by something like : --- # This is the default BIBA policy for this system. # System: /var/run biba/equal /var/run/.* biba/equal /dev biba/equal /dev/.* biba/equal /var biba/equal /var/spool biba/equal /var/spool/.* biba/equal /var/log biba/equal /var/log/.* biba/equal /tmp biba/equal /tmp/.* biba/equal /var/tmp biba/equal /var/tmp/.* biba/equal /var/spool/mqueue biba/equal /var/spool/clientmqueue biba/equal # For Nagios: /usr/local/etc/nagios biba/10 /usr/local/etc/nagios/.* biba/10 /var/spool/nagios biba/10 /var/spool/nagios/.* biba/10 # For apache /usr/local/etc/apache biba/10 /usr/local/etc/apache/.* biba/10 --- Or (less verbose) : --- # This is the default BIBA policy for this system. # System: /var/run(/.*)? biba/equal /dev(/.*)? biba/equal /var biba/equal /var/spool(/.*)? biba/equal /var/log(/.*)? biba/equal /tmp(/.*)? biba/equal /var/tmp(/.*)? biba/equal /var/spool/mqueue biba/equal /var/spool/clientmqueue biba/equal # For Nagios: /usr/local/etc/nagios(/.*)? biba/10 /var/spool/nagios(/.*)? biba/10 # For apache /usr/local/etc/apache(/.*)? biba/10 >Release-Note: >Audit-Trail: >Unformatted: