PERFORCE change 108850 for review
Todd Miller
millert at FreeBSD.org
Tue Oct 31 19:45:58 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=108850
Change 108850 by millert at 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
More information about the trustedbsd-cvs
mailing list