PERFORCE change 18886 for review

Brian Feldman green at freebsd.org
Mon Oct 7 21:15:56 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18886

Change 18886 by green at green_laptop_2 on 2002/10/07 14:15:16

	Perform the labeling on all "multilabel" ufs mounts currently in
	use, not just /.

Affected files ...

.. //depot/projects/trustedbsd/mac/contrib/sebsd/policy/Makefile#5 edit

Differences ...

==== //depot/projects/trustedbsd/mac/contrib/sebsd/policy/Makefile#5 (text+ko) ====

@@ -1,11 +1,14 @@
 CHECKPOLICY = /sbin/sebsd_checkpolicy
 SETFILES = /sbin/sebsd_setfiles
-M4 = m4 -Imacros -s
+M4 = /usr/bin/m4 -Imacros -s
 
 INSTALLDIR = /etc/security/sebsd
 #FLASKDIR = $(INSTALLDIR)/flask
 FLASKDIR = flask
 
+MULTILABELMOUNTS != /sbin/mount -t ufs -p | \
+	/usr/bin/awk '{if (match($$4, "multilabel")) {print $$2}}'
+
 POLICYVER := policy.$(shell $(CHECKPOLICY) -V)
 
 LOADPATH = $(INSTALLDIR)/$(POLICYVER)
@@ -64,7 +67,7 @@
 	cat $> > $@
 
 relabel: $(FC)
-	$(SETFILES) $(FC) /
+	$(SETFILES) $(FC) $(MULTILABELMOUNTS)
 
 $(FC): $(FCFILES)
 	cat $> > $@
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list