From owner-p4-projects Mon Sep 23 15:28:54 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id CD5B237B404; Mon, 23 Sep 2002 15:28:51 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F73337B401 for ; Mon, 23 Sep 2002 15:28:51 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CE8F43E77 for ; Mon, 23 Sep 2002 15:28:51 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8NMSoCo053841 for ; Mon, 23 Sep 2002 15:28:51 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8NMSoYm053838 for perforce@freebsd.org; Mon, 23 Sep 2002 15:28:50 -0700 (PDT) Date: Mon, 23 Sep 2002 15:28:50 -0700 (PDT) Message-Id: <200209232228.g8NMSoYm053838@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 18021 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18021 Change 18021 by rwatson@rwatson_tislabs on 2002/09/23 15:28:05 Further tweaks on instructions and labels to use with XFree86 and MLS. Affected files ... .. //depot/projects/trustedbsd/misc/demo-20020725/x11_with_mls.txt#2 edit Differences ... ==== //depot/projects/trustedbsd/misc/demo-20020725/x11_with_mls.txt#2 (text+ko) ==== @@ -1,12 +1,13 @@ Labeling requirements: -(1) /dev/mem and /dev/kmem must be read-write for the X server. Errors - mmap'ing these devices will be reported as errors mmap'ing /dev/vga, - for reasons unknown to me and possibly known only to the authors - of XFree86. To work around this on a system where the security - issues associated with the work-around are not a problem, use: +(1) /dev/mem, /dev/kmem, /dev/io, /dev/ttyv8, and /dev/sysmouse must be + read-write for the X server. Errors mmap'ing these devices will be + reported as errors mmap'ing /dev/vga, for reasons unknown to me and + possibly known only to the authors of XFree86. To work around this + on a system where the security issues associated with the work-around + are not a problem, use: - setfmac mls/equal /dev/mem /dev/kmem + setfmac mls/equal /dev/mem /dev/kmem /dev/io /dev/ttyv8 /dev/sysmouse Note: this will bypass MLS protection of the devices, and is not a good idea. @@ -22,14 +23,9 @@ Some applications may also require /tmp/.ICE-unix which should be similarly labeled. -(3) XFree86 maintains logfiles in /var/log. Generation of these - logfiles must be pointed at a directory writable by the X - server. At lack of this, /var/log may also be changed to - an MLS bypass label: +(3) XFree86 maintains logfiles in /var/log. Either point X11 at + a per-label/user directory for logging, or disable logging by + creating a symlink from /var/log/XFree86.0.log to /dev/null. + - setfmac mls/equal /var/log - Note that the X server may fail to rotate previous logs because - it attempts to rename these files. A better tactic is to - force the X server to store the logs somewhere else, perhaps - a per-user directory. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message