makefile patch
Subsystems (2)
In the post-install script of my selinux-policy-default package I have the following:
make -s -C /etc/selinux install
make -s -C /etc/selinux load || true
This results in the policy being compiled twice when using the NSA Makefile, I've attached a patch to fix this.
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
Makefile renamed from tmp/policy/Makefile +4 -5
@@ -46,10 +46,8 @@ $(POLICYVER): tmp policy.conf $(CHECKPOLICY) $(CHECKPOLICY) -o $@ policy.conf -tmp: - mkdir tmp - -initrd-$(POLICYVER): tmp initrd-policy.conf $(CHECKPOLICY) +initrd-$(POLICYVER): initrd-policy.conf $(CHECKPOLICY) + mkdir -p tmp $(CHECKPOLICY) -o tmp/$@ initrd-policy.conf gzip -c tmp/$@ > $@
@@ -81,7 +79,8 @@ load: tmp/load -policy.conf: tmp $(POLICYFILES) +policy.conf: $(POLICYFILES) + mkdir -p tmp m4 -Imacros -s $(POLICYFILES) > policy.conf install-src:
Quoted 7 lines · Russell Coker
In the post-install script of my selinux-policy-default package I have the following:
make -s -C/etc/selinuxinstall
make -s -C/etc/selinuxload || trueThis results in the policy being compiled twice when using the NSA
Makefile, I've attached a patch to fix this.
This breaks if you don't already have a tmp directory pre-created. Try removing your tmp directory and doing a make (or a make policy.conf).
--
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.
Quoted 11 lines · Stephen Smalley
Quoted 7 lines · Russell Coker
In the post-install script of my selinux-policy-default package I have the following:
make -s -C/etc/selinuxinstall
make -s -C/etc/selinuxload || trueThis results in the policy being compiled twice when using the NSA
Makefile, I've attached a patch to fix this.This breaks if you don't already have a tmp directory pre-created. Try removing your tmp directory and doing a make (or a make policy.conf).
Right: I added the "mkdir -p tmp" line in the following to solve that.
Basically I just put in a "mkdir -p tmp" wherever it is used when it might not have been created.
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 ) > $@
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
--
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.