From owner-trustedbsd-cvs@FreeBSD.ORG Tue Oct 31 19:45:58 2006 Return-Path: X-Original-To: trustedbsd-cvs@freebsd.org Delivered-To: trustedbsd-cvs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D203B16A415 for ; Tue, 31 Oct 2006 19:45:58 +0000 (UTC) (envelope-from owner-perforce@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3516743D64 for ; Tue, 31 Oct 2006 19:45:34 +0000 (GMT) (envelope-from owner-perforce@freebsd.org) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by cyrus.watson.org (Postfix) with ESMTP id 55C5A46DE4 for ; Tue, 31 Oct 2006 14:45:31 -0500 (EST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 88F0014C070; Tue, 31 Oct 2006 19:39:19 +0000 (GMT) (envelope-from owner-perforce@freebsd.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 45E0416A4C2; Tue, 31 Oct 2006 19:39:18 +0000 (UTC) X-Original-To: perforce@freebsd.org 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 162FA16A573 for ; Tue, 31 Oct 2006 19:39:18 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D98843E29 for ; Tue, 31 Oct 2006 19:37:44 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9VJbT7r085651 for ; Tue, 31 Oct 2006 19:37:29 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9VJbT5j085648 for perforce@freebsd.org; Tue, 31 Oct 2006 19:37:29 GMT (envelope-from millert@freebsd.org) Date: Tue, 31 Oct 2006 19:37:29 GMT Message-Id: <200610311937.k9VJbT5j085648@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 108850 for review X-BeenThere: trustedbsd-cvs@FreeBSD.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: TrustedBSD CVS and Perforce commit message list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2006 19:45:58 -0000 http://perforce.freebsd.org/chv.cgi?CH=108850 Change 108850 by millert@millert_g5tower on 2006/10/31 19:36:53 Use setfiles to relabel /var/run after we recreate it in /etc/rc Affected files ... .. //depot/projects/trustedbsd/sedarwin8/darwin/launchd/src/Makefile.postamble#2 edit .. //depot/projects/trustedbsd/sedarwin8/darwin/launchd/src/Makefile.preamble#2 edit .. //depot/projects/trustedbsd/sedarwin8/darwin/launchd/src/rc#2 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/darwin/launchd/src/Makefile.postamble#2 (text+ko) ==== @@ -102,3 +102,6 @@ install-man-page: install -d $(DSTROOT)/usr/share/man/man8 install -c -m 444 launchd.8 $(DSTROOT)/usr/share/man/man8/launchd.8 + +install-rc: + install -c -m 644 rc $(DSTROOT)/private/etc/rc ==== //depot/projects/trustedbsd/sedarwin8/darwin/launchd/src/Makefile.preamble#2 (text+ko) ==== @@ -1,4 +1,4 @@ OTHER_GENERATED_OFILES = $(VERS_OFILE) BEFORE_BUILD += bootstrap.h OTHER_OFILES = bootstrapServer.o -AFTER_INSTALL += install-man-page +AFTER_INSTALL += install-man-page install-rc ==== //depot/projects/trustedbsd/sedarwin8/darwin/launchd/src/rc#2 (text+ko) ==== @@ -133,6 +133,9 @@ touch -t 198501010000 /var/run/sudo/* fi +# Set labels on /var/run +/usr/bin/setfiles /etc/sedarwin/refpolicy/contexts/files/file_contexts /var/run + # Clear utmp (who is logged on). touch /var/run/utmp /var/run/utmpx