aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-security/samhain/files/samhain-cross-compile.patch
blob: 7f80a5c61f34a22319ec0ff7c286d2a4f1eb37c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From f63908427b2adb1792c59edbe38618e14ef5bc7b Mon Sep 17 00:00:00 2001
From: Jackie Huang <jackie.huang@windriver.com>
Date: Fri, 15 Jan 2016 00:48:58 -0500
Subject: [PATCH] Enable obfuscating binaries natively.

Enable obfuscating binaries natively.

The samhain build process involves an obfuscation step that attempts to
defeat decompilation or other binary analysis techniques which might reveal
secret information that should be known only to the system administrator.
The obfuscation step builds several applications which run on the build host
and then generate target code, which is then built into target binaries.

This patch creates a basic infrastructure that supports building the
obfuscation binaries natively then cross-compiling the target code by adding
a special configure option.  In the absence of this option the old behaviour
is preserved.

Upstream-Status: Inappropriate [cross compile specific]
    
Signed-off-by: Aws Ismail <aws.ismail@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 Makefile.in | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 684e92b..fb090e2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -54,7 +54,7 @@ selectconfig = @selectconfig@
 top_builddir = .
 
 INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL@ -s -m 700
+INSTALL_PROGRAM = @INSTALL@ -m 700
 INSTALL_SHELL = @INSTALL@ -m 700
 INSTALL_DATA = @INSTALL@ -m 600
 INSTALL_MAN = @INSTALL@ -m 644
@@ -525,8 +525,6 @@ install-program: $(PROGRAMS) sstrip
 	      echo " $(INSTALL_PROGRAM) $$p $$target"; \
 	      $(INSTALL_PROGRAM) $$p $$target; \
 	      chmod 0700 $$target; \
-	      echo " ./sstrip $$target"; \
-	      ./sstrip $$target; \
 	    else \
 	      echo " $(INSTALL_SHELL) $$p $$target"; \
 	      $(INSTALL_SHELL) $$p $$target; \
-- 
1.9.1