wok-next view truecrypt/stuff/patches/no-exec-stack.patch @ rev 20036

Fix truecrypt. Although cryptography is not easy. Use it at your own risk.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Oct 22 19:31:48 2017 +0300 (2017-10-22)
parents
children
line source
1 --- Crypto/Aes_hw_cpu.asm.old 2011-06-01 17:12:53.078000001 -0400
2 +++ Crypto/Aes_hw_cpu.asm 2011-06-01 17:12:53.080000002 -0400
3 @@ -328,3 +328,12 @@
6 %endif ; __BITS__ != 16
7 + %ifidn __OUTPUT_FORMAT__,elf
8 + section .note.GNU-stack noalloc noexec nowrite progbits
9 + %endif
10 + %ifidn __OUTPUT_FORMAT__,elf32
11 + section .note.GNU-stack noalloc noexec nowrite progbits
12 + %endif
13 + %ifidn __OUTPUT_FORMAT__,elf64
14 + section .note.GNU-stack noalloc noexec nowrite progbits
15 + %endif
16 --- Crypto/AesSmall_x86.asm.old 2011-06-01 17:12:53.084000002 -0400
17 +++ Crypto/AesSmall_x86.asm 2011-06-01 17:12:53.086000002 -0400
18 @@ -1442,3 +1442,12 @@
19 db v8(0xe1),v8(0x69),v8(0x14),v8(0x63),v8(0x55),v8(0x21),v8(0x0c),v8(0x7d)
21 %endif
22 + %ifidn __OUTPUT_FORMAT__,elf
23 + section .note.GNU-stack noalloc noexec nowrite progbits
24 + %endif
25 + %ifidn __OUTPUT_FORMAT__,elf32
26 + section .note.GNU-stack noalloc noexec nowrite progbits
27 + %endif
28 + %ifidn __OUTPUT_FORMAT__,elf64
29 + section .note.GNU-stack noalloc noexec nowrite progbits
30 + %endif
31 --- Crypto/Aes_x64.asm.old 2011-06-01 17:12:53.090000002 -0400
32 +++ Crypto/Aes_x64.asm 2011-06-01 17:12:53.092000002 -0400
33 @@ -905,3 +905,12 @@
34 %endif
36 %endif
37 + %ifidn __OUTPUT_FORMAT__,elf
38 + section .note.GNU-stack noalloc noexec nowrite progbits
39 + %endif
40 + %ifidn __OUTPUT_FORMAT__,elf32
41 + section .note.GNU-stack noalloc noexec nowrite progbits
42 + %endif
43 + %ifidn __OUTPUT_FORMAT__,elf64
44 + section .note.GNU-stack noalloc noexec nowrite progbits
45 + %endif
46 --- Crypto/Aes_x86.asm.old 2011-06-01 17:12:53.096000002 -0400
47 +++ Crypto/Aes_x86.asm 2011-06-01 17:12:53.097000002 -0400
48 @@ -644,3 +644,12 @@
49 do_exit
51 %endif
52 + %ifidn __OUTPUT_FORMAT__,elf
53 + section .note.GNU-stack noalloc noexec nowrite progbits
54 + %endif
55 + %ifidn __OUTPUT_FORMAT__,elf32
56 + section .note.GNU-stack noalloc noexec nowrite progbits
57 + %endif
58 + %ifidn __OUTPUT_FORMAT__,elf64
59 + section .note.GNU-stack noalloc noexec nowrite progbits
60 + %endif