Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 1 | From f63908427b2adb1792c59edbe38618e14ef5bc7b Mon Sep 17 00:00:00 2001 |
| 2 | From: Jackie Huang <jackie.huang@windriver.com> |
| 3 | Date: Fri, 15 Jan 2016 00:48:58 -0500 |
| 4 | Subject: [PATCH] Enable obfuscating binaries natively. |
| 5 | |
| 6 | Enable obfuscating binaries natively. |
| 7 | |
| 8 | The samhain build process involves an obfuscation step that attempts to |
| 9 | defeat decompilation or other binary analysis techniques which might reveal |
| 10 | secret information that should be known only to the system administrator. |
| 11 | The obfuscation step builds several applications which run on the build host |
| 12 | and then generate target code, which is then built into target binaries. |
| 13 | |
| 14 | This patch creates a basic infrastructure that supports building the |
| 15 | obfuscation binaries natively then cross-compiling the target code by adding |
| 16 | a special configure option. In the absence of this option the old behaviour |
| 17 | is preserved. |
| 18 | |
| 19 | Upstream-Status: Inappropriate [cross compile specific] |
| 20 | |
| 21 | Signed-off-by: Aws Ismail <aws.ismail@windriver.com> |
| 22 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| 23 | --- |
| 24 | Makefile.in | 4 +--- |
| 25 | 1 file changed, 1 insertion(+), 3 deletions(-) |
| 26 | |
| 27 | diff --git a/Makefile.in b/Makefile.in |
| 28 | index 684e92b..fb090e2 100644 |
| 29 | --- a/Makefile.in |
| 30 | +++ b/Makefile.in |
| 31 | @@ -54,7 +54,7 @@ selectconfig = @selectconfig@ |
| 32 | top_builddir = . |
| 33 | |
| 34 | INSTALL = @INSTALL@ |
| 35 | -INSTALL_PROGRAM = @INSTALL@ -s -m 700 |
| 36 | +INSTALL_PROGRAM = @INSTALL@ -m 700 |
| 37 | INSTALL_SHELL = @INSTALL@ -m 700 |
| 38 | INSTALL_DATA = @INSTALL@ -m 600 |
| 39 | INSTALL_MAN = @INSTALL@ -m 644 |
| 40 | @@ -525,8 +525,6 @@ install-program: $(PROGRAMS) sstrip |
| 41 | echo " $(INSTALL_PROGRAM) $$p $$target"; \ |
| 42 | $(INSTALL_PROGRAM) $$p $$target; \ |
| 43 | chmod 0700 $$target; \ |
| 44 | - echo " ./sstrip $$target"; \ |
| 45 | - ./sstrip $$target; \ |
| 46 | else \ |
| 47 | echo " $(INSTALL_SHELL) $$p $$target"; \ |
| 48 | $(INSTALL_SHELL) $$p $$target; \ |
| 49 | -- |
| 50 | 1.9.1 |
| 51 | |