Skip to contentSkip to conversation

patch to remove initrd support

PATCH Russell Coker 2 participants 2 messages Sep 26, 2002 – Sep 27, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The attached patch removes initrd support from policy/Makefile as it's just been obsoleted by Steve's recent kernel patches.

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
Makefile.new renamed from Makefile +1 -29
@@ -34,28 +34,18 @@
 POLICYFILES += rbac users constraints
 POLICYFILES += initial_sid_contexts fs_use genfs_contexts net_contexts
 
-INITRDPOLICYFILES = $(subst users, initrd-domains/users,$(subst all.te,initrd_all.te,$(POLICYFILES)))
-
 FC = file_contexts/file_contexts
 FCFILES=file_contexts/types.fc $(patsubst domains/program/%.te,file_contexts/program/%.fc, $(wildcard domains/program/*.te))
 
 
 install: $(LOADPATH)
 
-install-initrd: $(LOADPATH).initrd
-
 $(LOADPATH):  $(POLICYCONF) $(CHECKPOLICY)
 	mkdir -p $(INSTALLDIR)
 	$(CHECKPOLICY) -o $@ $(POLICYCONF)
 # Note: Can't use install, so not sure how to deal with mode, user, and group
 #	other than by default.
 
-$(LOADPATH).initrd:  $(POLICYCONF).initrd $(CHECKPOLICY)
-	mkdir -p $(INSTALLDIR)
-	$(CHECKPOLICY) -o $@ $(POLICYCONF).initrd
-# Note: Can't use install, so not sure how to deal with mode, user, and group
-#	other than by default.
-
 policy: $(POLICYVER)
 
 $(POLICYVER):  policy.conf $(CHECKPOLICY)
@@ -65,10 +55,6 @@
 	mkdir -p $(SRCINSTALLDIR)
 	install -m 644 -o root -g root policy.conf $@
 
-$(POLICYCONF).initrd: policy.conf.initrd
-	mkdir -p $(SRCINSTALLDIR)
-	install -m 644 -o root -g root policy.conf.initrd $@
-
 reload tmp/load: $(LOADPATH)
 	$(BINDIR)/load_policy $(LOADPATH)
 	touch tmp/load
@@ -83,26 +69,15 @@
 	mkdir -p $(SRCINSTALLDIR)/policy
 	cp -R . $(SRCINSTALLDIR)/policy
 
-policy.conf.initrd: $(INITRDPOLICYFILES) 
-	m4 -Imacros -s $(INITRDPOLICYFILES) > $@
-
 ALLTEFILES := attrib.te tmp/program_used_flags.te tmp/all_macros.te tmp/all_types.te tmp/all_domains.te assert.te 
 
 tmp/all.te: $(ALLTEFILES)
 	cat $^ > $@
 
-INITRD_ALLTEFILES := attrib.te tmp/initrd_program_used_flags.te tmp/all_macros.te tmp/all_types.te tmp/all_initrd_domains.te assert.te 
-
-tmp/initrd_all.te: $(INITRD_ALLTEFILES)
-	cat $^ > $@
-
 tmp/program_used_flags.te: $(wildcard domains/program/*.te) domains/program
 	mkdir -p tmp
 	( cd domains/program/ ; for n in *.te ; do echo "define(\`$$n')"; done ) > $@
 
-tmp/initrd_program_used_flags.te: $(wildcard initrd-domains/*.te) initrd-domains
-	( cd initrd-domains ; for n in *.te ; do echo "define(\`$$n')"; done ) > $@
-
 tmp/all_macros.te:  macros $(wildcard macros/*.te) tmp/all_program_macros.te
 	cat $(wildcard macros/*.te) tmp/all_program_macros.te > $@
 
@@ -115,9 +90,6 @@
 tmp/all_domains.te: $(wildcard domains/*.te domains/misc/*.te domains/program/*.te) domains domains/misc domains/program
 	cat domains/*.te domains/misc/*.te domains/program/*.te > $@
 
-tmp/all_initrd_domains.te: $(wildcard initrd-domains/*.te) initrd-domains
-	cat initrd-domains/*.te > $@
-
 relabel:  $(FC) $(SETFILES)
 	$(SETFILES) $(FC) `mount | awk '/(ext[23]|reiserfs)/{print $$3}'`
 
@@ -128,7 +100,7 @@
 	cat $(FCFILES) > $@
 
 clean:
-	rm -f policy.conf policy.conf.initrd
+	rm -f policy.conf
 	rm -f tmp/*
 	rm -f $(FC)
  
#1 lore raw
Quoted 2 lines · Russell Coker

The attached patch removes initrd support from policy/Makefile as it's just been obsoleted by Steve's recent kernel patches.

Thanks, merged.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.