fix: add hardening build flags to debian/rules#332
Merged
Conversation
Added several security hardening build flags to the Debian package build configuration: 1. Set DEB_BUILD_MAINT_OPTIONS to enable all hardening features 2. Added -Wall warning flag for both C and C++ compilers 3. Added linker flags for security features including RELRO, immediate binding, noexecstack, and export dynamic These changes improve the security of the resulting binary by enabling various compiler and linker protections against common exploitation techniques fix: 在 debian/rules 中添加安全加固构建标志 在 Debian 软件包构建配置中添加了多个安全加固构建标志: 1. 设置 DEB_BUILD_MAINT_OPTIONS 以启用所有加固功能 2. 为 C 和 C++ 编译器添加 -Wall 警告标志 3. 添加链接器标志以实现安全功能,包括 RELRO、立即绑定、noexecstack 和导 出动态 这些更改通过启用各种编译器和链接器保护来防止常见利用技术,从而提高生成二 进制文件的安全性
Reviewer's GuideThis PR enhances the Debian package build by updating debian/rules to enable full hardening features, enforce compiler warnings, and apply security-focused linker flags. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review在
综上所述,这些更改有助于提高软件的安全性和质量,但需要确保团队成员了解这些选项的含义和配置方法,并进行充分的测试以确保兼容性和性能。 |
18202781743
approved these changes
Jul 3, 2025
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
Author
|
/forcemerge |
|
This pr force merged! (status: blocked) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added several security hardening build flags to the Debian package build configuration:
These changes improve the security of the resulting binary by enabling various compiler and linker protections against common exploitation techniques
fix: 在 debian/rules 中添加安全加固构建标志
在 Debian 软件包构建配置中添加了多个安全加固构建标志:
这些更改通过启用各种编译器和链接器保护来防止常见利用技术,从而提高生成二
进制文件的安全性
Summary by Sourcery
Enable compiler and linker security hardening flags in the Debian package build
Build: