Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2002 11:08:27 -0700 (PDT)
From:      Chris Vance <cvance@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 14050 for review
Message-ID:  <200207101808.g6AI8RrS016802@freefall.freebsd.org>

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

Change 14050 by cvance@cvance_korben on 2002/07/10 11:07:52

	Add a target to re-label the filesystem 

Affected files ...

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

Differences ...

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

@@ -1,4 +1,5 @@
 CHECKPOLICY = /sbin/sebsd_checkpolicy
+SETFILES = /sbin/sebsd_setfiles
 M4 = m4 -Imacros -s
 
 INSTALLDIR = /etc/security/sebsd
@@ -25,6 +26,9 @@
 PROGRAMFILES != ls domains/program/*.te
 TYPEFILES != ls types/*.te
 
+FC = file_contexts/file_contexts
+FCFILES != ls file_contexts/*.fc file_contexts/program/*.fc
+
 ALLTEFILES := macros/global_macros.te attrib.te tmp/all_types.te tmp/all_program_macros.te tmp/all_domains.te assert.te 
 
 ALLDOMAINS != ls domains/*.te domains/misc/*.te domains/program/*.te
@@ -59,5 +63,11 @@
 tmp/all_domains.te: $(ALLDOMAINS)
 	cat $> > $@
 
+relabel: $(FC)
+	$(SETFILES) $(FC) /
+
+$(FC): $(FCFILES)
+	cat $> > $@
+
 clean:
 	rm -f policy.11 policy.conf tmp/*

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?200207101808.g6AI8RrS016802>