Skip to contentSkip to conversation

stripped static binaries

PATCH Carsten Grohmann 2 participants 2 messages Nov 9, 2003 – Nov 10, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

I think, we should strip the static binaries like load_policy. Thru this we could save space in the initrd. The patch for the policycoreutils is attached.

What do you think about it?

load_policy/Makefile +5 -1
diff -ur policycoreutils-1.2.orig/load_policy/Makefile policycoreutils-1.2/load_policy/Makefile
@@ -11,7 +11,7 @@
 
 TARGETS=$(patsubst %.c,%,$(wildcard *.c))
 
-all: $(TARGETS)
+all: $(TARGETS) strip
 
 install: all
 	-mkdir -p $(SBINDIR)
@@ -22,3 +22,7 @@
 
 relabel:
 	setfilecon system_u:object_r:load_policy_exec_t $(SBINDIR)/load_policy 
+
+strip:
+	strip $(TARGETS)
+ 
#1 lore raw
Quoted 5 lines · Carsten Grohmann

I think, we should strip the static binaries like load_policy. Thru this we could save space in the initrd. The patch for the policycoreutils is attached.

What do you think about it?

With Dan's patched init program, it is not necessary to perform the load from an initrd.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
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.