Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2002 14:15:56 -0700 (PDT)
From:      Brian Feldman <green@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 18886 for review
Message-ID:  <200210072115.g97LFuku068102@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18886

Change 18886 by green@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@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210072115.g97LFuku068102>