Commit 7a02ddf
committed
fix: add security hardening flags to build configuration
1. Added DEB_BUILD_MAINT_OPTIONS with hardening=+all for comprehensive
security protections
2. Included -Wall flag in C/C++ compiler flags for additional warnings
3. Set linker flags with security features: RELRO, NOW binding,
noexecstack, and export dynamic
4. These changes improve binary security by enabling modern protection
mechanisms
fix: 在构建配置中添加安全加固标志
1. 添加 DEB_BUILD_MAINT_OPTIONS 并设置 hardening=+all 以实现全面的安全
保护
2. 在 C/C++ 编译器标志中包含 -Wall 以获取额外警告
3. 设置包含安全特性的链接器标志:RELRO、NOW 绑定、noexecstack 和导出动态
4. 这些更改通过启用现代保护机制来提高二进制安全性1 parent 37dff8c commit 7a02ddf
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| |||
0 commit comments