关于安全加固参数相关问题 #4301
Zeno-sole
started this conversation in
Developer Discussion | 开发者讨论
关于安全加固参数相关问题
#4301
Replies: 2 comments 5 replies
-
若项目有覆盖默认参数的需求,那么所有安全加固以及优化参数的覆盖都应当在 rules 文件中进行,而不应当在项目 CMakeLists 文件中进行。对吧?是的话应该需要统计下目前在项目工程文件中指定此类参数的有哪些,然后由各个项目的维护人员去掉这些硬编码的额外参数。 |
Beta Was this translation helpful? Give feedback.
3 replies
-
PIE参数默认不开启,如果需要打开 需要在rules 设置 export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
发行版的包管理器一般都是默认添加了一些安全加固参数 deepin v23的参数如下图,各个项目中的cmakelist makefile等编译配置文件中就不用添加这些参数

也可以自行修改指定其他参数,rules文件中添加
参考链接:
https://wiki.debian.org/HardeningWalkthrough#Selecting_security_hardening_options
https://wiki.debian.org/Hardening
Beta Was this translation helpful? Give feedback.
All reactions